package.json 2.5 KB

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