package.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "name": "@sv443-network/userutils",
  3. "version": "1.1.0",
  4. "description": "Library with various utilities for userscripts - register listeners for when CSS selectors exist, intercept events, manage persistent user configurations, modify the DOM more easily and more",
  5. "main": "dist/index.js",
  6. "module": "dist/index.mjs",
  7. "types": "dist/lib/index.d.ts",
  8. "scripts": {
  9. "lint": "tsc --noEmit && eslint .",
  10. "build-types": "tsc --emitDeclarationOnly --declaration --outDir dist",
  11. "build-common": "tsup lib/index.ts --format cjs,esm --clean --treeshake",
  12. "build-global": "tsup lib/index.ts --format cjs,esm,iife --treeshake --onSuccess \"npm run post-build-global\"",
  13. "build": "npm run build-common -- --minify && npm run build-types",
  14. "post-build-global": "npm run node-ts -- ./tools/post-build-global.mts",
  15. "dev": "npm run build-common -- --sourcemap --watch --onSuccess \"npm run build-types\"",
  16. "publish-package": "npm run build && changeset publish",
  17. "node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm"
  18. },
  19. "repository": {
  20. "type": "git",
  21. "url": "git+https://github.com/Sv443-Network/UserUtils.git"
  22. },
  23. "keywords": [
  24. "userscript",
  25. "utilities"
  26. ],
  27. "author": {
  28. "name": "Sv443",
  29. "url": "https://github.com/Sv443"
  30. },
  31. "license": "MIT",
  32. "bugs": {
  33. "url": "https://github.com/Sv443-Network/UserUtils/issues"
  34. },
  35. "homepage": "https://github.com/Sv443-Network/UserUtils",
  36. "devDependencies": {
  37. "@changesets/cli": "^2.26.2",
  38. "@types/greasemonkey": "^4.0.4",
  39. "@types/node": "^20.5.9",
  40. "@typescript-eslint/eslint-plugin": "^6.2.1",
  41. "@typescript-eslint/parser": "^6.2.1",
  42. "eslint": "^8.46.0",
  43. "ts-node": "^10.9.1",
  44. "tslib": "^2.6.1",
  45. "tsup": "^7.2.0",
  46. "typescript": "^5.1.6"
  47. },
  48. "files": [
  49. "/dist/index.js",
  50. "/dist/index.mjs",
  51. "/dist/index.global.js",
  52. "/dist/lib/**.d.ts",
  53. "/package.json",
  54. "/README.md",
  55. "/CHANGELOG.md",
  56. "/LICENSE.txt"
  57. ]
  58. }