package.json 2.6 KB

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