1
0

package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. "name": "@sv443-network/userutils",
  3. "libName": "UserUtils",
  4. "version": "9.0.0",
  5. "description": "Lightweight library with various utilities for userscripts - register listeners for when CSS selectors exist, intercept events, create persistent & synchronous data stores, modify the DOM more easily and much more",
  6. "main": "dist/index.js",
  7. "module": "dist/index.js",
  8. "types": "dist/lib/index.d.ts",
  9. "exports": {
  10. ".": {
  11. "browser": "./dist/index.global.js",
  12. "types": "./dist/lib/index.d.ts",
  13. "require": "./dist/index.cjs",
  14. "import": "./dist/index.js"
  15. }
  16. },
  17. "type": "module",
  18. "scripts": {
  19. "lint": "eslint . && tsc --noEmit",
  20. "build-types": "tsc --emitDeclarationOnly --declaration --outDir dist && node --import tsx ./tools/fix-dts.mts",
  21. "build-common": "tsup lib/index.ts --format cjs,esm --clean --treeshake",
  22. "build-all": "tsup lib/index.ts --format cjs,esm,iife --treeshake --onSuccess \"pnpm build-types && pnpm post-build-global\"",
  23. "build": "pnpm build-common -- && pnpm build-types",
  24. "post-build-global": "node --import tsx ./tools/post-build-global.mts",
  25. "dev": "pnpm build-common -- --sourcemap --watch --onSuccess \"pnpm build-types\"",
  26. "dev-all": "pnpm build-all -- --watch",
  27. "update-jsr-version": "node --import tsx ./tools/update-jsr-version.mts",
  28. "publish-package": "changeset publish",
  29. "publish-package-jsr": "pnpm update-jsr-version && npx jsr publish --allow-dirty",
  30. "change": "changeset",
  31. "test-serve": "node --import tsx ./test/TestPage/server.mts",
  32. "test-dev": "cd test/TestScript && pnpm dev",
  33. "test": "concurrently \"pnpm test-serve\" \"pnpm test-dev\""
  34. },
  35. "repository": {
  36. "type": "git",
  37. "url": "git+https://github.com/Sv443-Network/UserUtils.git"
  38. },
  39. "keywords": [
  40. "userscript",
  41. "utilities"
  42. ],
  43. "author": {
  44. "name": "Sv443",
  45. "url": "https://github.com/Sv443"
  46. },
  47. "license": "MIT",
  48. "bugs": {
  49. "url": "https://github.com/Sv443-Network/UserUtils/issues"
  50. },
  51. "homepage": "https://github.com/Sv443-Network/UserUtils",
  52. "dependencies": {
  53. "nanoevents": "^9.1.0"
  54. },
  55. "devDependencies": {
  56. "@changesets/cli": "^2.27.11",
  57. "@eslint/eslintrc": "^3.2.0",
  58. "@types/express": "^4.17.21",
  59. "@types/greasemonkey": "^4.0.7",
  60. "@types/node": "^22.10.5",
  61. "@types/tx2": "^1.0.3",
  62. "@typescript-eslint/eslint-plugin": "^8.21.0",
  63. "@typescript-eslint/parser": "^8.21.0",
  64. "@typescript-eslint/utils": "^8.21.0",
  65. "concurrently": "^8.2.2",
  66. "eslint": "^9.18.0",
  67. "express": "^4.21.2",
  68. "globals": "^15.14.0",
  69. "kleur": "^4.1.5",
  70. "tslib": "^2.8.1",
  71. "tsup": "^8.3.5",
  72. "tsx": "^4.19.2",
  73. "typescript": "^5.7.3"
  74. },
  75. "files": [
  76. "/dist/index.js",
  77. "/dist/index.cjs",
  78. "/dist/index.mjs",
  79. "/dist/index.global.js",
  80. "/dist/index.umd.js",
  81. "/dist/lib/**.d.ts",
  82. "/package.json",
  83. "/README-summary.md",
  84. "/CHANGELOG.md",
  85. "/LICENSE.txt"
  86. ]
  87. }