package.json 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "name": "@sv443-network/userutils",
  3. "version": "3.0.0",
  4. "description": "Library with various utilities for userscripts - register listeners for when CSS selectors exist, intercept events, manage persistent user configurations, modify the DOM more easily and more",
  5. "main": "dist/index.js",
  6. "module": "dist/index.mjs",
  7. "types": "dist/lib/index.d.ts",
  8. "scripts": {
  9. "lint": "tsc --noEmit && eslint .",
  10. "build-types": "tsc --emitDeclarationOnly --declaration --outDir dist",
  11. "build-common": "tsup lib/index.ts --format cjs,esm --clean --treeshake",
  12. "build-global": "tsup lib/index.ts --format cjs,esm,iife --treeshake --onSuccess \"npm run post-build-global && echo Finished building.\"",
  13. "build": "npm run build-common -- && npm run build-types",
  14. "post-build-global": "npm run node-ts -- ./tools/post-build-global.mts",
  15. "dev": "npm run build-common -- --sourcemap --watch --onSuccess \"npm run build-types && echo Finished building.\"",
  16. "publish-package": "changeset publish",
  17. "node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm",
  18. "test-serve": "npm run node-ts -- ./test/TestPage/server.mts",
  19. "test-dev": "cd test/TestScript && npm run dev",
  20. "test": "concurrently \"npm run test-serve\" \"npm run test-dev\""
  21. },
  22. "repository": {
  23. "type": "git",
  24. "url": "git+https://github.com/Sv443-Network/UserUtils.git"
  25. },
  26. "keywords": [
  27. "userscript",
  28. "utilities"
  29. ],
  30. "author": {
  31. "name": "Sv443",
  32. "url": "https://github.com/Sv443"
  33. },
  34. "license": "MIT",
  35. "bugs": {
  36. "url": "https://github.com/Sv443-Network/UserUtils/issues"
  37. },
  38. "homepage": "https://github.com/Sv443-Network/UserUtils",
  39. "devDependencies": {
  40. "@changesets/cli": "^2.26.2",
  41. "@types/express": "^4.17.19",
  42. "@types/greasemonkey": "^4.0.4",
  43. "@types/node": "^20.5.9",
  44. "@typescript-eslint/eslint-plugin": "^6.2.1",
  45. "@typescript-eslint/parser": "^6.2.1",
  46. "concurrently": "^8.2.1",
  47. "eslint": "^8.46.0",
  48. "express": "^4.18.2",
  49. "ts-node": "^10.9.1",
  50. "tslib": "^2.6.1",
  51. "tsup": "^7.1.0",
  52. "typescript": "^5.1.6"
  53. },
  54. "files": [
  55. "/dist/index.js",
  56. "/dist/index.mjs",
  57. "/dist/index.global.js",
  58. "/dist/lib/**.d.ts",
  59. "/package.json",
  60. "/README.md",
  61. "/CHANGELOG.md",
  62. "/LICENSE.txt"
  63. ]
  64. }