1
0

package.json 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "name": "@sv443-network/userutils",
  3. "libName": "UserUtils",
  4. "version": "9.0.2",
  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. "check-jsr": "npx jsr publish --allow-dirty --dry-run",
  31. "change": "changeset",
  32. "test-serve": "node --import tsx ./test/TestPage/server.mts",
  33. "test-dev": "cd test/TestScript && pnpm dev",
  34. "test": "concurrently \"pnpm test-serve\" \"pnpm test-dev\""
  35. },
  36. "repository": {
  37. "type": "git",
  38. "url": "git+https://github.com/Sv443-Network/UserUtils.git"
  39. },
  40. "keywords": [
  41. "userscript",
  42. "utilities"
  43. ],
  44. "author": {
  45. "name": "Sv443",
  46. "url": "https://github.com/Sv443"
  47. },
  48. "license": "MIT",
  49. "bugs": {
  50. "url": "https://github.com/Sv443-Network/UserUtils/issues"
  51. },
  52. "homepage": "https://github.com/Sv443-Network/UserUtils",
  53. "dependencies": {
  54. "nanoevents": "^9.1.0"
  55. },
  56. "devDependencies": {
  57. "@changesets/cli": "^2.27.11",
  58. "@eslint/eslintrc": "^3.2.0",
  59. "@types/express": "^4.17.21",
  60. "@types/greasemonkey": "^4.0.7",
  61. "@types/node": "^22.10.5",
  62. "@types/tx2": "^1.0.3",
  63. "@typescript-eslint/eslint-plugin": "^8.21.0",
  64. "@typescript-eslint/parser": "^8.21.0",
  65. "@typescript-eslint/utils": "^8.21.0",
  66. "concurrently": "^8.2.2",
  67. "eslint": "^9.18.0",
  68. "express": "^4.21.2",
  69. "globals": "^15.14.0",
  70. "kleur": "^4.1.5",
  71. "tslib": "^2.8.1",
  72. "tsup": "^8.3.5",
  73. "tsx": "^4.19.2",
  74. "typescript": "^5.7.3"
  75. },
  76. "files": [
  77. "/dist/index.js",
  78. "/dist/index.cjs",
  79. "/dist/index.mjs",
  80. "/dist/index.global.js",
  81. "/dist/index.umd.js",
  82. "/dist/lib/**.d.ts",
  83. "/package.json",
  84. "/README-summary.md",
  85. "/CHANGELOG.md",
  86. "/LICENSE.txt"
  87. ]
  88. }