package.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "name": "@sv443-network/userutils",
  3. "version": "2.0.1",
  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": "npm run node-ts -- ./test/server.mts"
  19. },
  20. "repository": {
  21. "type": "git",
  22. "url": "git+https://github.com/Sv443-Network/UserUtils.git"
  23. },
  24. "keywords": [
  25. "userscript",
  26. "utilities"
  27. ],
  28. "author": {
  29. "name": "Sv443",
  30. "url": "https://github.com/Sv443"
  31. },
  32. "license": "MIT",
  33. "bugs": {
  34. "url": "https://github.com/Sv443-Network/UserUtils/issues"
  35. },
  36. "homepage": "https://github.com/Sv443-Network/UserUtils",
  37. "devDependencies": {
  38. "@changesets/cli": "^2.26.2",
  39. "@types/express": "^4.17.19",
  40. "@types/greasemonkey": "^4.0.4",
  41. "@types/node": "^20.5.9",
  42. "@typescript-eslint/eslint-plugin": "^6.2.1",
  43. "@typescript-eslint/parser": "^6.2.1",
  44. "eslint": "^8.46.0",
  45. "express": "^4.18.2",
  46. "ts-node": "^10.9.1",
  47. "tslib": "^2.6.1",
  48. "tsup": "^7.2.0",
  49. "typescript": "^5.1.6"
  50. },
  51. "files": [
  52. "/dist/index.js",
  53. "/dist/index.mjs",
  54. "/dist/index.global.js",
  55. "/dist/lib/**.d.ts",
  56. "/package.json",
  57. "/README.md",
  58. "/CHANGELOG.md",
  59. "/LICENSE.txt"
  60. ]
  61. }