package.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "name": "@sv443-network/userutils",
  3. "libName": "UserUtils",
  4. "version": "8.4.0",
  5. "description": "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 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. "@types/express": "^4.17.21",
  58. "@types/greasemonkey": "^4.0.7",
  59. "@types/node": "^22.10.5",
  60. "@typescript-eslint/eslint-plugin": "^6.21.0",
  61. "@typescript-eslint/parser": "^6.21.0",
  62. "concurrently": "^8.2.2",
  63. "eslint": "^8.57.1",
  64. "express": "^4.21.2",
  65. "tslib": "^2.8.1",
  66. "tsup": "^8.3.5",
  67. "tsx": "^4.19.2",
  68. "typescript": "^5.7.3"
  69. },
  70. "files": [
  71. "/dist/index.js",
  72. "/dist/index.cjs",
  73. "/dist/index.mjs",
  74. "/dist/index.global.js",
  75. "/dist/index.umd.js",
  76. "/dist/lib/**.d.ts",
  77. "/package.json",
  78. "/README-summary.md",
  79. "/CHANGELOG.md",
  80. "/LICENSE.txt"
  81. ]
  82. }