package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "name": "betterytm",
  3. "userscriptName": "BetterYTM",
  4. "version": "2.0.0",
  5. "description": "Lots of configurable layout and user experience improvements for YouTube Music™ and YouTube™",
  6. "homepage": "https://github.com/Sv443/BetterYTM",
  7. "main": "./src/index.ts",
  8. "type": "module",
  9. "scripts": {
  10. "dev": "concurrently \"nodemon --exec npm run build-dev\" \"npm run serve\"",
  11. "serve": "npm run node-ts -- ./src/tools/serve.ts",
  12. "lint": "tsc --noEmit && eslint .",
  13. "build": "rollup -c",
  14. "build-dev": "rollup -c --config-mode development --config-host github --config-branch develop --config-assetSource=local",
  15. "build-preview": "rollup -c --config-mode development --config-host github --config-branch develop",
  16. "preview": "npm run build-preview && npm run serve -- --auto-exit=3",
  17. "build-prod": "npm run build-prod-gh && npm run build-prod-gf && npm run build-prod-oujs",
  18. "build-prod-base": "rollup -c --config-mode production --config-branch main",
  19. "build-prod-gh": "npm run build-prod-base -- --config-host github",
  20. "build-prod-gf": "npm run build-prod-base -- --config-host greasyfork --config-suffix _gf",
  21. "build-prod-oujs": "npm run build-prod-base -- --config-host openuserjs --config-suffix _oujs",
  22. "post-build": "npm run node-ts -- ./src/tools/post-build.ts",
  23. "tr-progress": "npm run node-ts -- ./src/tools/tr-progress.ts",
  24. "tr-format": "npm run node-ts -- ./src/tools/tr-format.ts",
  25. "tr-prep": "npm run tr-format -- -p",
  26. "gen-readme": "npm run node-ts -- ./src/tools/gen-readme.ts",
  27. "node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm",
  28. "invisible": "node --enable-source-maps src/tools/run-invisible.mjs",
  29. "test": "npm run node-ts -- ./test.ts",
  30. "knip": "knip"
  31. },
  32. "engines": {
  33. "node": ">=18 <22",
  34. "npm": ">=8"
  35. },
  36. "repository": {
  37. "type": "git",
  38. "url": "git+https://github.com/Sv443/BetterYTM.git"
  39. },
  40. "author": {
  41. "name": "Sv443",
  42. "url": "https://github.com/Sv443"
  43. },
  44. "license": "AGPL-3.0-only",
  45. "bugs": {
  46. "url": "https://github.com/Sv443/BetterYTM/issues"
  47. },
  48. "funding": {
  49. "type": "github",
  50. "url": "https://github.com/sponsors/Sv443"
  51. },
  52. "hosts": {
  53. "github": "https://github.com/Sv443/BetterYTM",
  54. "greasyfork": "https://greasyfork.org/en/scripts/475682-betterytm",
  55. "openuserjs": "https://openuserjs.org/scripts/Sv443/BetterYTM"
  56. },
  57. "updates": {
  58. "github": "https://github.com/Sv443/BetterYTM/releases",
  59. "greasyfork": "https://greasyfork.org/en/scripts/475682-betterytm",
  60. "openuserjs": "https://openuserjs.org/scripts/Sv443/BetterYTM"
  61. },
  62. "dependencies": {
  63. "@sv443-network/userutils": "^6.3.0",
  64. "compare-versions": "^6.1.0",
  65. "fuse.js": "^7.0.0",
  66. "marked": "^12.0.0",
  67. "nanoevents": "^9.0.0"
  68. },
  69. "devDependencies": {
  70. "@rollup/plugin-json": "^6.0.1",
  71. "@rollup/plugin-node-resolve": "^15.2.3",
  72. "@rollup/plugin-terser": "^0.4.4",
  73. "@rollup/plugin-typescript": "^11.1.5",
  74. "@types/express": "^4.17.17",
  75. "@types/greasemonkey": "^4.0.4",
  76. "@types/node": "^20.12.12",
  77. "@typescript-eslint/eslint-plugin": "^6.7.4",
  78. "@typescript-eslint/parser": "^6.7.4",
  79. "concurrently": "^8.1.0",
  80. "dotenv": "^16.4.1",
  81. "eslint": "^8.51.0",
  82. "eslint-plugin-require-extensions": "^0.1.3",
  83. "express": "^4.18.2",
  84. "knip": "^5.15.1",
  85. "nodemon": "^3.0.1",
  86. "rollup": "^4.6.0",
  87. "rollup-plugin-execute": "^1.1.1",
  88. "rollup-plugin-import-css": "^3.3.5",
  89. "ts-node": "^10.9.1",
  90. "tslib": "^2.5.2",
  91. "typescript": "^5.4.5"
  92. },
  93. "browserslist": [
  94. "last 1 version",
  95. "> 1%",
  96. "not dead"
  97. ],
  98. "nodemonConfig": {
  99. "watch": [
  100. "src/**",
  101. "assets/**",
  102. "rollup.config.mjs",
  103. ".env",
  104. "changelog.md",
  105. "package.json"
  106. ],
  107. "ext": "ts,mts,js,jsx,mjs,json,html,css,svg,png",
  108. "ignore": [
  109. "dist/*",
  110. "dev/*"
  111. ]
  112. }
  113. }