package.json 2.3 KB

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