package.json 2.6 KB

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