Repository: electron/electron
Pull request: build: use @electron-ci/dev-root for package.json default

Backport of #49154

See that PR for details.


Notes: none


Changed files:
filename: package.json
patch: @@ -1,5 +1,5 @@
 {
-  "name": "electron",
+  "name": "@electron-ci/dev-root",
   "version": "0.0.0-development",
   "repository": "https://github.com/electron/electron",
   "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",

filename: script/release/bin/publish-to-npm.ts
patch: @@ -13,6 +13,7 @@ import { createGitHubTokenStrategy } from '../github-token';
 import { ELECTRON_ORG, ELECTRON_REPO, ElectronReleaseRepo, NIGHTLY_REPO } from '../types';
 
 const rootPackageJson = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../../package.json'), 'utf-8'));
+rootPackageJson.name = 'electron';
 
 if (!process.env.ELECTRON_NPM_OTP) {
   console.error('Please set ELECTRON_NPM_OTP');

filename: yarn.lock
patch: @@ -432,6 +432,70 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@electron-ci/dev-root@workspace:.":
+  version: 0.0.0-use.local
+  resolution: "@electron-ci/dev-root@workspace:."
+  dependencies:
+    "@azure/storage-blob": "npm:^12.25.0"
+    "@datadog/datadog-ci": "npm:^4.1.2"
+    "@electron/asar": "npm:^3.2.13"
+    "@electron/docs-parser": "npm:^2.0.0"
+    "@electron/fiddle-core": "npm:^1.3.4"
+    "@electron/github-app-auth": "npm:^3.2.0"
+    "@electron/lint-roller": "npm:^3.1.1"
+    "@electron/typescript-definitions": "npm:^9.1.2"
+    "@octokit/rest": "npm:^20.0.2"
+    "@primer/octicons": "npm:^10.0.0"
+    "@types/minimist": "npm:^1.2.5"
+    "@types/node": "npm:^22.7.7"
+    "@types/semver": "npm:^7.5.8"
+    "@types/stream-json": "npm:^1.7.7"
+    "@types/temp": "npm:^0.9.4"
+    "@typescript-eslint/eslint-plugin": "npm:^8.32.1"
+    "@typescript-eslint/parser": "npm:^8.7.0"
+    "@xmldom/xmldom": "npm:^0.8.11"
+    buffer: "npm:^6.0.3"
+    chalk: "npm:^4.1.0"
+    check-for-leaks: "npm:^1.2.1"
+    eslint: "npm:^8.57.1"
+    eslint-config-standard: "npm:^17.1.0"
+    eslint-plugin-import: "npm:^2.32.0"
+    eslint-plugin-markdown: "npm:^5.1.0"
+    eslint-plugin-mocha: "npm:^10.5.0"
+    eslint-plugin-n: "npm:^16.6.2"
+    eslint-plugin-node: "npm:^11.1.0"
+    eslint-plugin-promise: "npm:^6.6.0"
+    events: "npm:^3.2.0"
+    folder-hash: "npm:^2.1.1"
+    got: "npm:^11.8.5"
+    husky: "npm:^9.1.7"
+    lint-staged: "npm:^16.1.0"
+    markdownlint-cli2: "npm:^0.18.0"
+    minimist: "npm:^1.2.8"
+    node-gyp: "npm:^11.4.2"
+    null-loader: "npm:^4.0.1"
+    pre-flight: "npm:^2.0.0"
+    process: "npm:^0.11.10"
+    remark-cli: "npm:^12.0.1"
+    remark-preset-lint-markdown-style-guide: "npm:^4.0.0"
+    semver: "npm:^7.6.3"
+    stream-json: "npm:^1.8.0"
+    tap-xunit: "npm:^2.4.1"
+    temp: "npm:^0.9.4"
+    timers-browserify: "npm:1.4.2"
+    ts-loader: "npm:^8.0.2"
+    ts-node: "npm:6.2.0"
+    typescript: "npm:^5.6.2"
+    url: "npm:^0.11.4"
+    webpack: "npm:^5.95.0"
+    webpack-cli: "npm:^5.1.4"
+    wrapper-webpack-plugin: "npm:^2.2.0"
+  dependenciesMeta:
+    abstract-socket:
+      built: true
+  languageName: unknown
+  linkType: soft
+
 "@electron-ci/echo@npm:*, @electron-ci/echo@workspace:spec/fixtures/native-addon/echo":
   version: 0.0.0-use.local
   resolution: "@electron-ci/echo@workspace:spec/fixtures/native-addon/echo"
@@ -4517,70 +4581,6 @@ __metadata:
   languageName: node
   linkType: hard
 
-"electron@workspace:.":
-  version: 0.0.0-use.local
-  resolution: "electron@workspace:."
-  dependencies:
-    "@azure/storage-blob": "npm:^12.25.0"
-    "@datadog/datadog-ci": "npm:^4.1.2"
-    "@electron/asar": "npm:^3.2.13"
-    "@electron/docs-parser": "npm:^2.0.0"
-    "@electron/fiddle-core": "npm:^1.3.4"
-    "@electron/github-app-auth": "npm:^3.2.0"
-    "@electron/lint-roller": "npm:^3.1.1"
-    "@electron/typescript-definitions": "npm:^9.1.2"
-    "@octokit/rest": "npm:^20.0.2"
-    "@primer/octicons": "npm:^10.0.0"
-    "@types/minimist": "npm:^1.2.5"
-    "@types/node": "npm:^22.7.7"
-    "@types/semver": "npm:^7.5.8"
-    "@types/stream-json": "npm:^1.7.7"
-    "@types/temp": "npm:^0.9.4"
-    "@typescript-eslint/eslint-plugin": "npm:^8.32.1"
-    "@typescript-eslint/parser": "npm:^8.7.0"
-    "@xmldom/xmldom": "npm:^0.8.11"
-    buffer: "npm:^6.0.3"
-    chalk: "npm:^4.1.0"
-    check-for-leaks: "npm:^1.2.1"
-    eslint: "npm:^8.57.1"
-    eslint-config-standard: "npm:^17.1.0"
-    eslint-plugin-import: "npm:^2.32.0"
-    eslint-plugin-markdown: "npm:^5.1.0"
-    eslint-plugin-mocha: "npm:^10.5.0"
-    eslint-plugin-n: "npm:^16.6.2"
-    eslint-plugin-node: "npm:^11.1.0"
-    eslint-plugin-promise: "npm:^6.6.0"
-    events: "npm:^3.2.0"
-    folder-hash: "npm:^2.1.1"
-    got: "npm:^11.8.5"
-    husky: "npm:^9.1.7"
-    lint-staged: "npm:^16.1.0"
-    markdownlint-cli2: "npm:^0.18.0"
-    minimist: "npm:^1.2.8"
-    node-gyp: "npm:^11.4.2"
-    null-loader: "npm:^4.0.1"
-    pre-flight: "npm:^2.0.0"
-    process: "npm:^0.11.10"
-    remark-cli: "npm:^12.0.1"
-    remark-preset-lint-markdown-style-guide: "npm:^4.0.0"
-    semver: "npm:^7.6.3"
-    stream-json: "npm:^1.8.0"
-    tap-xunit: "npm:^2.4.1"
-    temp: "npm:^0.9.4"
-    timers-browserify: "npm:1.4.2"
-    ts-loader: "npm:^8.0.2"
-    ts-node: "npm:6.2.0"
-    typescript: "npm:^5.6.2"
-    url: "npm:^0.11.4"
-    webpack: "npm:^5.95.0"
-    webpack-cli: "npm:^5.1.4"
-    wrapper-webpack-plugin: "npm:^2.2.0"
-  dependenciesMeta:
-    abstract-socket:
-      built: true
-  languageName: unknown
-  linkType: soft
-
 "emoji-regex@npm:^10.2.1, emoji-regex@npm:^10.3.0":
   version: 10.4.0
   resolution: "emoji-regex@npm:10.4.0"