package.json 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "name": "@sv443-network/userutils",
  3. "libName": "UserUtils",
  4. "version": "8.0.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. "exports": {
  9. ".": {
  10. "import": "./dist/index.js",
  11. "require": "./dist/index.cjs",
  12. "browser": "./dist/index.global.js"
  13. }
  14. },
  15. "types": "dist/lib/index.d.ts",
  16. "type": "module",
  17. "scripts": {
  18. "lint": "tsc --noEmit && eslint .",
  19. "build-types": "tsc --emitDeclarationOnly --declaration --outDir dist",
  20. "build-common": "tsup lib/index.ts --format cjs,esm --clean --treeshake",
  21. "build-all": "tsup lib/index.ts --format cjs,esm,iife --treeshake --onSuccess \"npm run build-types && npm run post-build-global && echo Finished building.\"",
  22. "build": "npm run build-common -- && npm run build-types",
  23. "post-build-global": "npm run node-ts -- ./tools/post-build-global.mts",
  24. "dev": "npm run build-common -- --sourcemap --watch --onSuccess \"npm run build-types && echo Finished building.\"",
  25. "dev-all": "npm run build-all -- --watch",
  26. "update-jsr-version": "npm run node-ts -- ./tools/update-jsr-version.mts",
  27. "publish-package": "changeset publish",
  28. "publish-package-jsr": "npm run update-jsr-version && npx jsr publish",
  29. "node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm",
  30. "test-serve": "npm run node-ts -- ./test/TestPage/server.mts",
  31. "test-dev": "cd test/TestScript && npm run dev",
  32. "test": "concurrently \"npm run test-serve\" \"npm run test-dev\""
  33. },
  34. "repository": {
  35. "type": "git",
  36. "url": "git+https://github.com/Sv443-Network/UserUtils.git"
  37. },
  38. "keywords": [
  39. "userscript",
  40. "utilities"
  41. ],
  42. "author": {
  43. "name": "Sv443",
  44. "url": "https://github.com/Sv443"
  45. },
  46. "license": "MIT",
  47. "bugs": {
  48. "url": "https://github.com/Sv443-Network/UserUtils/issues"
  49. },
  50. "homepage": "https://github.com/Sv443-Network/UserUtils",
  51. "dependencies": {
  52. "nanoevents": "^9.0.0"
  53. },
  54. "devDependencies": {
  55. "@changesets/cli": "^2.26.2",
  56. "@types/express": "^4.17.19",
  57. "@types/greasemonkey": "^4.0.4",
  58. "@types/node": "^20.5.9",
  59. "@typescript-eslint/eslint-plugin": "^6.2.1",
  60. "@typescript-eslint/parser": "^6.2.1",
  61. "concurrently": "^8.2.1",
  62. "eslint": "^8.46.0",
  63. "express": "^4.18.2",
  64. "ts-node": "^10.9.1",
  65. "tslib": "^2.6.1",
  66. "tsup": "^7.1.0",
  67. "typescript": "^5.1.6"
  68. },
  69. "files": [
  70. "/dist/index.js",
  71. "/dist/index.mjs",
  72. "/dist/index.global.js",
  73. "/dist/lib/**.d.ts",
  74. "/package.json",
  75. "/README.md",
  76. "/CHANGELOG.md",
  77. "/LICENSE.txt"
  78. ]
  79. }