package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {
  2. "name": "@sv443-network/userutils",
  3. "libName": "UserUtils",
  4. "version": "8.3.1",
  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 --allow-dirty",
  30. "change": "changeset",
  31. "node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm",
  32. "test-serve": "npm run node-ts -- ./test/TestPage/server.mts",
  33. "test-dev": "cd test/TestScript && npm run dev",
  34. "test": "concurrently \"npm run test-serve\" \"npm run 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.0.0"
  55. },
  56. "devDependencies": {
  57. "@changesets/cli": "^2.26.2",
  58. "@types/express": "^4.17.19",
  59. "@types/greasemonkey": "^4.0.4",
  60. "@types/node": "^20.5.9",
  61. "@typescript-eslint/eslint-plugin": "^6.2.1",
  62. "@typescript-eslint/parser": "^6.2.1",
  63. "concurrently": "^8.2.1",
  64. "eslint": "^8.46.0",
  65. "express": "^4.18.2",
  66. "ts-node": "^10.9.1",
  67. "tslib": "^2.6.1",
  68. "tsup": "^7.1.0",
  69. "typescript": "^5.1.6"
  70. },
  71. "files": [
  72. "/dist/index.js",
  73. "/dist/index.mjs",
  74. "/dist/index.global.js",
  75. "/dist/lib/**.d.ts",
  76. "/package.json",
  77. "/README.md",
  78. "/CHANGELOG.md",
  79. "/LICENSE.txt"
  80. ]
  81. }