package.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. {
  2. "name": "electron",
  3. "version": "0.0.0-development",
  4. "repository": "https://github.com/electron/electron",
  5. "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
  6. "devDependencies": {
  7. "@azure/storage-blob": "^12.9.0",
  8. "@electron/asar": "^3.2.1",
  9. "@electron/docs-parser": "^1.2.0",
  10. "@electron/fiddle-core": "^1.0.4",
  11. "@electron/github-app-auth": "^2.0.0",
  12. "@electron/lint-roller": "^2.3.0",
  13. "@electron/typescript-definitions": "^8.15.2",
  14. "@octokit/rest": "^19.0.7",
  15. "@primer/octicons": "^10.0.0",
  16. "@types/basic-auth": "^1.1.3",
  17. "@types/busboy": "^1.5.0",
  18. "@types/chai": "^4.2.12",
  19. "@types/chai-as-promised": "^7.1.3",
  20. "@types/dirty-chai": "^2.0.2",
  21. "@types/express": "^4.17.13",
  22. "@types/minimist": "^1.2.0",
  23. "@types/mocha": "^7.0.2",
  24. "@types/node": "^20.9.0",
  25. "@types/semver": "^7.3.3",
  26. "@types/send": "^0.14.5",
  27. "@types/split": "^1.0.0",
  28. "@types/stream-json": "^1.5.1",
  29. "@types/temp": "^0.8.34",
  30. "@types/uuid": "^3.4.6",
  31. "@types/w3c-web-serial": "^1.0.3",
  32. "@types/webpack": "^5.28.0",
  33. "@types/webpack-env": "^1.17.0",
  34. "@typescript-eslint/eslint-plugin": "^5.59.7",
  35. "@typescript-eslint/parser": "^5.59.7",
  36. "buffer": "^6.0.3",
  37. "check-for-leaks": "^1.2.1",
  38. "colors": "1.4.0",
  39. "dotenv-safe": "^4.0.4",
  40. "dugite": "^2.3.0",
  41. "eslint": "^8.41.0",
  42. "eslint-config-standard": "^14.1.1",
  43. "eslint-plugin-import": "^2.26.0",
  44. "eslint-plugin-mocha": "^7.0.1",
  45. "eslint-plugin-node": "^11.1.0",
  46. "eslint-plugin-promise": "^4.2.1",
  47. "eslint-plugin-standard": "^4.0.1",
  48. "eslint-plugin-unicorn": "^46.0.1",
  49. "events": "^3.2.0",
  50. "express": "^4.19.2",
  51. "folder-hash": "^2.1.1",
  52. "got": "^11.8.5",
  53. "husky": "^8.0.1",
  54. "lint": "^1.1.2",
  55. "lint-staged": "^10.2.11",
  56. "markdownlint-cli2": "^0.13.0",
  57. "minimist": "^1.2.6",
  58. "null-loader": "^4.0.0",
  59. "pre-flight": "^1.1.0",
  60. "process": "^0.11.10",
  61. "remark-cli": "^10.0.0",
  62. "remark-preset-lint-markdown-style-guide": "^4.0.0",
  63. "semver": "^7.5.2",
  64. "shx": "^0.3.2",
  65. "stream-json": "^1.7.1",
  66. "tap-xunit": "^2.4.1",
  67. "temp": "^0.8.3",
  68. "timers-browserify": "1.4.2",
  69. "ts-loader": "^8.0.2",
  70. "ts-node": "6.2.0",
  71. "typescript": "^5.1.2",
  72. "url": "^0.11.0",
  73. "webpack": "^5.76.0",
  74. "webpack-cli": "^4.10.0",
  75. "wrapper-webpack-plugin": "^2.2.0"
  76. },
  77. "private": true,
  78. "scripts": {
  79. "asar": "asar",
  80. "generate-version-json": "node script/generate-version-json.js",
  81. "lint": "node ./script/lint.js && npm run lint:docs",
  82. "lint:js": "node ./script/lint.js --js",
  83. "lint:clang-format": "python3 script/run-clang-format.py -r -c shell/ || (echo \"\\nCode not formatted correctly.\" && exit 1)",
  84. "lint:clang-tidy": "ts-node ./script/run-clang-tidy.ts",
  85. "lint:cpp": "node ./script/lint.js --cc",
  86. "lint:objc": "node ./script/lint.js --objc",
  87. "lint:py": "node ./script/lint.js --py",
  88. "lint:gn": "node ./script/lint.js --gn",
  89. "lint:docs": "remark docs -qf && npm run lint:js-in-markdown && npm run create-typescript-definitions && npm run lint:ts-check-js-in-markdown && npm run lint:docs-fiddles && npm run lint:docs-relative-links && npm run lint:markdown",
  90. "lint:docs-fiddles": "standard \"docs/fiddles/**/*.js\"",
  91. "lint:docs-relative-links": "lint-roller-markdown-links --root docs \"**/*.md\"",
  92. "lint:markdown": "node ./script/lint.js --md",
  93. "lint:ts-check-js-in-markdown": "lint-roller-markdown-ts-check --root docs \"**/*.md\" --ignore \"breaking-changes.md\"",
  94. "lint:js-in-markdown": "lint-roller-markdown-standard --root docs \"**/*.md\"",
  95. "create-api-json": "node script/create-api-json.js",
  96. "create-typescript-definitions": "npm run create-api-json && electron-typescript-definitions --api=electron-api.json && node spec/ts-smoke/runner.js",
  97. "gn-typescript-definitions": "npm run create-typescript-definitions && shx cp electron.d.ts",
  98. "pre-flight": "pre-flight",
  99. "gn-check": "node ./script/gn-check.js",
  100. "gn-format": "python3 script/run-gn-format.py",
  101. "precommit": "lint-staged",
  102. "preinstall": "node -e 'process.exit(0)'",
  103. "pretest": "npm run create-typescript-definitions",
  104. "prepack": "check-for-leaks",
  105. "prepare": "husky install",
  106. "repl": "node ./script/start.js --interactive",
  107. "start": "node ./script/start.js",
  108. "test": "node ./script/spec-runner.js",
  109. "tsc": "tsc",
  110. "webpack": "webpack"
  111. },
  112. "license": "MIT",
  113. "author": "Electron Community",
  114. "keywords": [
  115. "electron"
  116. ],
  117. "lint-staged": {
  118. "*.{js,ts}": [
  119. "node script/lint.js --js --fix --only --"
  120. ],
  121. "*.{js,ts,d.ts}": [
  122. "ts-node script/gen-filenames.ts"
  123. ],
  124. "*.{cc,mm,c,h}": [
  125. "python3 script/run-clang-format.py -r -c --fix"
  126. ],
  127. "*.md": [
  128. "npm run lint:docs"
  129. ],
  130. "*.{gn,gni}": [
  131. "npm run gn-check",
  132. "npm run gn-format"
  133. ],
  134. "*.py": [
  135. "node script/lint.js --py --fix --only --"
  136. ],
  137. "docs/api/**/*.md": [
  138. "ts-node script/gen-filenames.ts",
  139. "markdownlint-cli2 --config .autofix.markdownlint-cli2.jsonc --fix",
  140. "git add filenames.auto.gni"
  141. ],
  142. "{*.patch,.patches}": [
  143. "node script/lint.js --patches --only --",
  144. "ts-node script/check-patch-diff.ts"
  145. ],
  146. "DEPS": [
  147. "node script/gen-hunspell-filenames.js",
  148. "node script/gen-libc++-filenames.js"
  149. ]
  150. },
  151. "resolutions": {
  152. "nan": "nodejs/nan#e14bdcd1f72d62bca1d541b66da43130384ec213"
  153. }
  154. }