1
0

package.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {
  2. "name": "@sv443-network/userutils",
  3. "libName": "UserUtils",
  4. "version": "9.3.0",
  5. "description": "General purpose DOM/GreaseMonkey library that allows you to 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. "engines": {
  18. "pnpm": ">=9",
  19. "npm": "please-use-pnpm",
  20. "yarn": "please-use-pnpm"
  21. },
  22. "type": "module",
  23. "scripts": {
  24. "lint": "eslint . && tsc --noEmit",
  25. "build-types": "tsc --emitDeclarationOnly --declaration --outDir dist && node --import tsx ./tools/fix-dts.mts",
  26. "build-common": "tsup lib/index.ts --format cjs,esm --clean --treeshake",
  27. "build-all": "tsup lib/index.ts --format cjs,esm,iife --treeshake --onSuccess \"pnpm build-types && pnpm post-build-global\"",
  28. "build": "pnpm build-common -- && pnpm build-types",
  29. "post-build-global": "node --import tsx ./tools/post-build-global.mts",
  30. "dev": "pnpm build-common -- --sourcemap --watch --onSuccess \"pnpm build-types\"",
  31. "dev-all": "pnpm build-all -- --watch",
  32. "update-jsr-version": "node --import tsx ./tools/update-jsr-version.mts",
  33. "publish-package": "changeset publish",
  34. "publish-package-jsr": "pnpm update-jsr-version && npx jsr publish --allow-dirty",
  35. "check-jsr": "npx jsr publish --allow-dirty --dry-run",
  36. "change": "changeset",
  37. "test-gm-serve": "node --import tsx ./test/TestPage/server.mts",
  38. "test-gm-dev": "cd test/TestScript && pnpm dev",
  39. "test-gm": "concurrently \"pnpm test-gm-serve\" \"pnpm test-gm-dev\"",
  40. "test": "vitest --passWithNoTests",
  41. "test-coverage": "vitest --passWithNoTests --coverage"
  42. },
  43. "repository": {
  44. "type": "git",
  45. "url": "git+https://github.com/Sv443-Network/UserUtils.git"
  46. },
  47. "keywords": [
  48. "userscript",
  49. "utilities"
  50. ],
  51. "author": {
  52. "name": "Sv443",
  53. "url": "https://github.com/Sv443"
  54. },
  55. "license": "MIT",
  56. "bugs": {
  57. "url": "https://github.com/Sv443-Network/UserUtils/issues"
  58. },
  59. "homepage": "https://github.com/Sv443-Network/UserUtils",
  60. "dependencies": {
  61. "nanoevents": "^9.1.0"
  62. },
  63. "devDependencies": {
  64. "@changesets/cli": "^2.27.11",
  65. "@eslint/eslintrc": "^3.2.0",
  66. "@eslint/js": "^9.23.0",
  67. "@testing-library/dom": "^10.4.0",
  68. "@types/express": "^4.17.21",
  69. "@types/greasemonkey": "^4.0.7",
  70. "@types/node": "^22.10.5",
  71. "@types/tx2": "^1.0.3",
  72. "@typescript-eslint/eslint-plugin": "^8.21.0",
  73. "@typescript-eslint/parser": "^8.21.0",
  74. "@typescript-eslint/utils": "^8.21.0",
  75. "@vitest/coverage-v8": "^3.0.9",
  76. "concurrently": "^8.2.2",
  77. "eslint": "^9.18.0",
  78. "express": "^4.21.2",
  79. "globals": "^15.14.0",
  80. "jsdom": "^26.0.0",
  81. "kleur": "^4.1.5",
  82. "tslib": "^2.8.1",
  83. "tsup": "^8.3.5",
  84. "tsx": "^4.19.2",
  85. "typescript": "^5.7.3",
  86. "vitest": "^3.0.9"
  87. },
  88. "files": [
  89. "/dist/index.js",
  90. "/dist/index.cjs",
  91. "/dist/index.mjs",
  92. "/dist/index.global.js",
  93. "/dist/index.umd.js",
  94. "/dist/lib/**.d.ts",
  95. "/package.json",
  96. "/README-summary.md",
  97. "/CHANGELOG.md",
  98. "/LICENSE.txt"
  99. ]
  100. }