package.json 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "name": "@sv443-network/userutils",
  3. "libName": "UserUtils",
  4. "version": "8.0.2",
  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. "import": "./dist/index.js",
  12. "require": "./dist/index.cjs",
  13. "browser": "./dist/index.global.js",
  14. "types": "./dist/lib/index.d.ts"
  15. }
  16. },
  17. "type": "module",
  18. "scripts": {
  19. "lint": "tsc --noEmit && eslint .",
  20. "build-types": "tsc --emitDeclarationOnly --declaration --outDir dist",
  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 \"npm run build-types && npm run post-build-global && echo Finished building.\"",
  23. "build": "npm run build-common -- && npm run build-types",
  24. "post-build-global": "npm run node-ts -- ./tools/post-build-global.mts",
  25. "dev": "npm run build-common -- --sourcemap --watch --onSuccess \"npm run build-types && echo Finished building.\"",
  26. "dev-all": "npm run build-all -- --watch",
  27. "update-jsr-version": "npm run node-ts -- ./tools/update-jsr-version.mts",
  28. "publish-package": "changeset publish",
  29. "publish-package-jsr": "npm run update-jsr-version && npx jsr publish",
  30. "node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm",
  31. "test-serve": "npm run node-ts -- ./test/TestPage/server.mts",
  32. "test-dev": "cd test/TestScript && npm run dev",
  33. "test": "concurrently \"npm run test-serve\" \"npm run 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.0.0"
  54. },
  55. "devDependencies": {
  56. "@changesets/cli": "^2.26.2",
  57. "@types/express": "^4.17.19",
  58. "@types/greasemonkey": "^4.0.4",
  59. "@types/node": "^20.5.9",
  60. "@typescript-eslint/eslint-plugin": "^6.2.1",
  61. "@typescript-eslint/parser": "^6.2.1",
  62. "concurrently": "^8.2.1",
  63. "eslint": "^8.46.0",
  64. "express": "^4.18.2",
  65. "ts-node": "^10.9.1",
  66. "tslib": "^2.6.1",
  67. "tsup": "^7.1.0",
  68. "typescript": "^5.1.6"
  69. },
  70. "files": [
  71. "/dist/index.js",
  72. "/dist/index.mjs",
  73. "/dist/index.global.js",
  74. "/dist/lib/**.d.ts",
  75. "/package.json",
  76. "/README.md",
  77. "/CHANGELOG.md",
  78. "/LICENSE.txt"
  79. ]
  80. }