package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. "name": "betterytm",
  3. "userscriptName": "BetterYTM",
  4. "version": "1.2.0",
  5. "description": "Configurable layout and user experience improvements for YouTube Music",
  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-watch\" \"npm run serve\"",
  11. "serve": "npm run node-ts -- ./src/tools/serve.ts",
  12. "lint": "tsc --noEmit && eslint .",
  13. "build": "rollup -c",
  14. "build-watch": "rollup -c --config-mode development --config-host github --config-branch develop",
  15. "build-develop": "rollup -c --config-mode production --config-host github --config-branch develop",
  16. "build-prod": "npm run build-prod-gh && npm run build-prod-gf && npm run build-prod-oujs",
  17. "build-prod-base": "rollup -c --config-mode production --config-branch main",
  18. "build-prod-gh": "npm run build-prod-base -- --config-host github",
  19. "build-prod-gf": "npm run build-prod-base -- --config-host greasyfork --config-suffix _gf",
  20. "build-prod-oujs": "npm run build-prod-base -- --config-host openuserjs --config-suffix _oujs",
  21. "post-build": "npm run node-ts -- ./src/tools/post-build.ts",
  22. "tr-progress": "npm run node-ts -- ./src/tools/tr-progress.ts",
  23. "tr-format": "npm run node-ts -- ./src/tools/tr-format.ts",
  24. "node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm",
  25. "invisible": "node src/tools/run-invisible.mjs",
  26. "test": "npm run node-ts -- ./test.ts"
  27. },
  28. "engines": {
  29. "node": ">=18",
  30. "npm": ">=8"
  31. },
  32. "repository": {
  33. "type": "git",
  34. "url": "git+https://github.com/Sv443/BetterYTM.git"
  35. },
  36. "author": {
  37. "name": "Sv443",
  38. "url": "https://github.com/Sv443"
  39. },
  40. "license": "AGPL-3.0-only",
  41. "bugs": {
  42. "url": "https://github.com/Sv443/BetterYTM/issues"
  43. },
  44. "funding": {
  45. "type": "github",
  46. "url": "https://github.com/sponsors/Sv443"
  47. },
  48. "hosts": {
  49. "github": "https://github.com/Sv443/BetterYTM",
  50. "greasyfork": "https://greasyfork.org/en/scripts/475682-betterytm",
  51. "openuserjs": "https://openuserjs.org/scripts/Sv443/BetterYTM"
  52. },
  53. "updates": {
  54. "github": "https://github.com/Sv443/BetterYTM/releases",
  55. "greasyfork": "https://greasyfork.org/en/scripts/475682-betterytm",
  56. "openuserjs": "https://openuserjs.org/scripts/Sv443/BetterYTM"
  57. },
  58. "dependencies": {
  59. "@sv443-network/userutils": "^4.1.0",
  60. "nanoevents": "^9.0.0"
  61. },
  62. "devDependencies": {
  63. "@babel/cli": "^7.23.9",
  64. "@babel/core": "^7.23.9",
  65. "@babel/plugin-transform-class-properties": "^7.23.3",
  66. "@babel/preset-react": "^7.23.3",
  67. "@jackfranklin/rollup-plugin-markdown": "^0.4.0",
  68. "@rollup/plugin-babel": "^6.0.4",
  69. "@rollup/plugin-json": "^6.0.1",
  70. "@rollup/plugin-node-resolve": "^15.2.3",
  71. "@rollup/plugin-replace": "^5.0.5",
  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.2.4",
  77. "@types/react": "^18.2.55",
  78. "@types/react-dom": "^18.2.19",
  79. "@typescript-eslint/eslint-plugin": "^6.7.4",
  80. "@typescript-eslint/parser": "^6.7.4",
  81. "concurrently": "^8.1.0",
  82. "dotenv": "^16.4.1",
  83. "eslint": "^8.51.0",
  84. "eslint-plugin-react": "^7.33.2",
  85. "eslint-plugin-react-hooks": "^4.6.0",
  86. "express": "^4.18.2",
  87. "nodemon": "^3.0.1",
  88. "react": "^18.2.0",
  89. "react-dom": "^18.2.0",
  90. "rollup": "^4.6.0",
  91. "rollup-plugin-commonjs": "^10.1.0",
  92. "rollup-plugin-execute": "^1.1.1",
  93. "rollup-plugin-html": "^0.2.1",
  94. "rollup-plugin-import-css": "^3.3.5",
  95. "ts-node": "^10.9.1",
  96. "tslib": "^2.5.2",
  97. "typescript": "^5.0.4"
  98. },
  99. "browserslist": [
  100. "last 1 version",
  101. "> 1%",
  102. "not dead"
  103. ],
  104. "nodemonConfig": {
  105. "watch": [
  106. "src/**",
  107. "assets/**",
  108. "rollup.config.mjs",
  109. ".env",
  110. "changelog.md",
  111. "package.json"
  112. ],
  113. "ext": "ts,tsx,mts,js,jsx,mjs,json,html,css,svg,png",
  114. "ignore": [
  115. "dist/*",
  116. "dev/*"
  117. ]
  118. }
  119. }