@depup/nx 22.6.4-depup.1 → 22.6.5-depup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +5 -7
  2. package/changes.json +4 -12
  3. package/package.json +21 -29
  4. package/src/ai/set-up-ai-agents/set-up-ai-agents.d.ts.map +1 -1
  5. package/src/ai/set-up-ai-agents/set-up-ai-agents.js +19 -7
  6. package/src/command-line/generate/generate.d.ts.map +1 -1
  7. package/src/command-line/generate/generate.js +15 -2
  8. package/src/command-line/init/implementation/add-nx-to-monorepo.d.ts.map +1 -1
  9. package/src/command-line/init/implementation/add-nx-to-monorepo.js +19 -9
  10. package/src/command-line/init/implementation/add-nx-to-nest.d.ts.map +1 -1
  11. package/src/command-line/init/implementation/add-nx-to-nest.js +19 -9
  12. package/src/command-line/init/implementation/add-nx-to-npm-repo.d.ts.map +1 -1
  13. package/src/command-line/init/implementation/add-nx-to-npm-repo.js +19 -9
  14. package/src/command-line/init/implementation/angular/index.d.ts.map +1 -1
  15. package/src/command-line/init/implementation/angular/index.js +11 -3
  16. package/src/command-line/init/implementation/angular/legacy-angular-versions.d.ts.map +1 -1
  17. package/src/command-line/init/implementation/angular/legacy-angular-versions.js +11 -5
  18. package/src/command-line/init/implementation/utils.d.ts +1 -0
  19. package/src/command-line/init/implementation/utils.d.ts.map +1 -1
  20. package/src/command-line/init/implementation/utils.js +8 -1
  21. package/src/command-line/init/init-v2.d.ts.map +1 -1
  22. package/src/command-line/init/init-v2.js +53 -7
  23. package/src/command-line/migrate/migrate.d.ts +1 -1
  24. package/src/command-line/migrate/migrate.d.ts.map +1 -1
  25. package/src/command-line/migrate/migrate.js +58 -7
  26. package/src/command-line/nx-cloud/connect/connect-to-nx-cloud.d.ts +2 -2
  27. package/src/command-line/nx-cloud/connect/connect-to-nx-cloud.d.ts.map +1 -1
  28. package/src/command-line/nx-cloud/connect/connect-to-nx-cloud.js +18 -5
  29. package/src/command-line/nx-cloud/connect/view-logs.js +1 -1
  30. package/src/command-line/release/version/test-utils.d.ts.map +1 -1
  31. package/src/command-line/release/version/test-utils.js +5 -15
  32. package/src/core/graph/main.js +1 -1
  33. package/src/daemon/client/client.d.ts +1 -1
  34. package/src/daemon/client/client.d.ts.map +1 -1
  35. package/src/daemon/client/client.js +23 -17
  36. package/src/native/nx.wasm32-wasi.debug.wasm +0 -0
  37. package/src/native/nx.wasm32-wasi.wasm +0 -0
  38. package/src/plugins/js/lock-file/npm-parser.d.ts.map +1 -1
  39. package/src/plugins/js/lock-file/npm-parser.js +15 -3
  40. package/src/plugins/js/lock-file/utils/package-json.d.ts +1 -1
  41. package/src/plugins/js/lock-file/utils/package-json.d.ts.map +1 -1
  42. package/src/plugins/js/lock-file/utils/package-json.js +3 -1
  43. package/src/plugins/js/package-json/create-package-json.d.ts.map +1 -1
  44. package/src/plugins/js/package-json/create-package-json.js +30 -0
  45. package/src/project-graph/plugins/get-plugins.d.ts +1 -0
  46. package/src/project-graph/plugins/get-plugins.d.ts.map +1 -1
  47. package/src/project-graph/plugins/get-plugins.js +17 -9
  48. package/src/project-graph/plugins/isolation/isolated-plugin.d.ts.map +1 -1
  49. package/src/project-graph/plugins/isolation/isolated-plugin.js +35 -33
  50. package/src/project-graph/plugins/isolation/plugin-worker.js +8 -14
  51. package/src/tasks-runner/running-tasks/batch-process.d.ts.map +1 -1
  52. package/src/tasks-runner/running-tasks/batch-process.js +5 -2
  53. package/src/tasks-runner/task-env.d.ts +6 -3
  54. package/src/tasks-runner/task-env.d.ts.map +1 -1
  55. package/src/tasks-runner/task-env.js +6 -5
  56. package/src/tasks-runner/task-orchestrator.d.ts.map +1 -1
  57. package/src/tasks-runner/task-orchestrator.js +8 -0
  58. package/src/utils/ab-testing.d.ts +14 -33
  59. package/src/utils/ab-testing.d.ts.map +1 -1
  60. package/src/utils/ab-testing.js +5 -4
  61. package/src/utils/dotenv.d.ts.map +1 -1
  62. package/src/utils/dotenv.js +4 -6
  63. package/src/utils/package-json.d.ts +9 -0
  64. package/src/utils/package-json.d.ts.map +1 -1
  65. package/src/utils/package-json.js +16 -1
  66. package/src/utils/wait-for-socket-connection.d.ts +16 -0
  67. package/src/utils/wait-for-socket-connection.d.ts.map +1 -0
  68. package/src/utils/wait-for-socket-connection.js +53 -0
package/README.md CHANGED
@@ -13,25 +13,23 @@ npm install @depup/nx
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [nx](https://www.npmjs.com/package/nx) @ 22.6.4 |
17
- | Processed | 2026-04-02 |
16
+ | Original | [nx](https://www.npmjs.com/package/nx) @ 22.6.5 |
17
+ | Processed | 2026-04-10 |
18
18
  | Smoke test | failed |
19
- | Deps updated | 30 |
19
+ | Deps updated | 28 |
20
20
 
21
21
  ## Dependency Changes
22
22
 
23
23
  | Dependency | From | To |
24
24
  |------------|------|-----|
25
- | @napi-rs/wasm-runtime | 0.2.4 | ^1.1.2 |
25
+ | @napi-rs/wasm-runtime | 0.2.4 | ^1.1.3 |
26
26
  | @yarnpkg/parsers | 3.0.2 | ^3.0.3 |
27
27
  | @zkochan/js-yaml | 0.0.7 | ^0.0.11 |
28
- | axios | 1.12.0 | ^1.14.0 |
29
28
  | cli-cursor | 3.1.0 | ^5.0.0 |
30
29
  | cli-spinners | 2.6.1 | ^3.4.0 |
31
30
  | cliui | ^8.0.1 | ^9.0.1 |
32
- | dotenv | ~16.4.5 | ^17.4.0 |
31
+ | dotenv | ~16.4.5 | ^17.4.1 |
33
32
  | dotenv-expand | ~11.0.6 | ^12.0.3 |
34
- | ejs | ^3.1.7 | ^5.0.1 |
35
33
  | enquirer | ~2.3.6 | ^2.4.1 |
36
34
  | figures | 3.2.0 | ^6.1.0 |
37
35
  | flat | ^5.0.2 | ^6.0.1 |
package/changes.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "bumped": {
3
3
  "@napi-rs/wasm-runtime": {
4
4
  "from": "0.2.4",
5
- "to": "^1.1.2"
5
+ "to": "^1.1.3"
6
6
  },
7
7
  "@yarnpkg/parsers": {
8
8
  "from": "3.0.2",
@@ -12,10 +12,6 @@
12
12
  "from": "0.0.7",
13
13
  "to": "^0.0.11"
14
14
  },
15
- "axios": {
16
- "from": "1.12.0",
17
- "to": "^1.14.0"
18
- },
19
15
  "picocolors": {
20
16
  "from": "^1.1.0",
21
17
  "to": "^1.1.1"
@@ -34,16 +30,12 @@
34
30
  },
35
31
  "dotenv": {
36
32
  "from": "~16.4.5",
37
- "to": "^17.4.0"
33
+ "to": "^17.4.1"
38
34
  },
39
35
  "dotenv-expand": {
40
36
  "from": "~11.0.6",
41
37
  "to": "^12.0.3"
42
38
  },
43
- "ejs": {
44
- "from": "^3.1.7",
45
- "to": "^5.0.1"
46
- },
47
39
  "enquirer": {
48
40
  "from": "~2.3.6",
49
41
  "to": "^2.4.1"
@@ -121,6 +113,6 @@
121
113
  "to": "^22.0.0"
122
114
  }
123
115
  },
124
- "timestamp": "2026-04-02T00:40:58.043Z",
125
- "totalUpdated": 30
116
+ "timestamp": "2026-04-10T16:28:27.487Z",
117
+ "totalUpdated": 28
126
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depup/nx",
3
- "version": "22.6.4-depup.1",
3
+ "version": "22.6.5-depup.0",
4
4
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration. (with updated dependencies)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,19 +39,19 @@
39
39
  },
40
40
  "homepage": "https://nx.dev",
41
41
  "dependencies": {
42
- "@ltd/j-toml": "^1.38.0",
43
- "@napi-rs/wasm-runtime": "^1.1.2",
42
+ "smol-toml": "1.6.1",
43
+ "@napi-rs/wasm-runtime": "^1.1.3",
44
44
  "@yarnpkg/lockfile": "^1.1.0",
45
45
  "@yarnpkg/parsers": "^3.0.3",
46
46
  "@zkochan/js-yaml": "^0.0.11",
47
- "axios": "^1.14.0",
47
+ "axios": "1.15.0",
48
48
  "picocolors": "^1.1.1",
49
49
  "cli-cursor": "^5.0.0",
50
50
  "cli-spinners": "^3.4.0",
51
51
  "cliui": "^9.0.1",
52
- "dotenv": "^17.4.0",
52
+ "dotenv": "^17.4.1",
53
53
  "dotenv-expand": "^12.0.3",
54
- "ejs": "^5.0.1",
54
+ "ejs": "5.0.1",
55
55
  "enquirer": "^2.4.1",
56
56
  "figures": "^6.1.0",
57
57
  "flat": "^6.0.1",
@@ -89,16 +89,16 @@
89
89
  }
90
90
  },
91
91
  "optionalDependencies": {
92
- "@nx/nx-darwin-arm64": "22.6.4",
93
- "@nx/nx-darwin-x64": "22.6.4",
94
- "@nx/nx-freebsd-x64": "22.6.4",
95
- "@nx/nx-linux-arm-gnueabihf": "22.6.4",
96
- "@nx/nx-linux-arm64-gnu": "22.6.4",
97
- "@nx/nx-linux-arm64-musl": "22.6.4",
98
- "@nx/nx-linux-x64-gnu": "22.6.4",
99
- "@nx/nx-linux-x64-musl": "22.6.4",
100
- "@nx/nx-win32-arm64-msvc": "22.6.4",
101
- "@nx/nx-win32-x64-msvc": "22.6.4"
92
+ "@nx/nx-darwin-arm64": "22.6.5",
93
+ "@nx/nx-darwin-x64": "22.6.5",
94
+ "@nx/nx-freebsd-x64": "22.6.5",
95
+ "@nx/nx-linux-arm-gnueabihf": "22.6.5",
96
+ "@nx/nx-linux-arm64-gnu": "22.6.5",
97
+ "@nx/nx-linux-arm64-musl": "22.6.5",
98
+ "@nx/nx-linux-x64-gnu": "22.6.5",
99
+ "@nx/nx-linux-x64-musl": "22.6.5",
100
+ "@nx/nx-win32-arm64-msvc": "22.6.5",
101
+ "@nx/nx-win32-x64-msvc": "22.6.5"
102
102
  },
103
103
  "nx-migrations": {
104
104
  "migrations": "./migrations.json",
@@ -183,7 +183,7 @@
183
183
  "changes": {
184
184
  "@napi-rs/wasm-runtime": {
185
185
  "from": "0.2.4",
186
- "to": "^1.1.2"
186
+ "to": "^1.1.3"
187
187
  },
188
188
  "@yarnpkg/parsers": {
189
189
  "from": "3.0.2",
@@ -193,10 +193,6 @@
193
193
  "from": "0.0.7",
194
194
  "to": "^0.0.11"
195
195
  },
196
- "axios": {
197
- "from": "1.12.0",
198
- "to": "^1.14.0"
199
- },
200
196
  "picocolors": {
201
197
  "from": "^1.1.0",
202
198
  "to": "^1.1.1"
@@ -215,16 +211,12 @@
215
211
  },
216
212
  "dotenv": {
217
213
  "from": "~16.4.5",
218
- "to": "^17.4.0"
214
+ "to": "^17.4.1"
219
215
  },
220
216
  "dotenv-expand": {
221
217
  "from": "~11.0.6",
222
218
  "to": "^12.0.3"
223
219
  },
224
- "ejs": {
225
- "from": "^3.1.7",
226
- "to": "^5.0.1"
227
- },
228
220
  "enquirer": {
229
221
  "from": "~2.3.6",
230
222
  "to": "^2.4.1"
@@ -302,10 +294,10 @@
302
294
  "to": "^22.0.0"
303
295
  }
304
296
  },
305
- "depsUpdated": 30,
297
+ "depsUpdated": 28,
306
298
  "originalPackage": "nx",
307
- "originalVersion": "22.6.4",
308
- "processedAt": "2026-04-02T00:41:03.701Z",
299
+ "originalVersion": "22.6.5",
300
+ "processedAt": "2026-04-10T16:28:33.808Z",
309
301
  "smokeTest": "failed"
310
302
  }
311
303
  }
@@ -1 +1 @@
1
- {"version":3,"file":"set-up-ai-agents.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/ai/set-up-ai-agents/set-up-ai-agents.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAS7C,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAuB5B,OAAO,EACL,sCAAsC,EACtC,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,oBAAoB,EAAE,CAAC;IACjC,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC,CAAC;AAmCF,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,4BAA4B,EACrC,KAAK,UAAQ,GACZ,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAmC5D;AAaD,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sCAAsC,GAC9C,OAAO,CAAC,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAuQ7C;AAuRD,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"set-up-ai-agents.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/ai/set-up-ai-agents/set-up-ai-agents.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAS7C,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAuB5B,OAAO,EACL,sCAAsC,EACtC,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,oBAAoB,EAAE,CAAC;IACjC,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC,CAAC;AAmCF,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,4BAA4B,EACrC,KAAK,UAAQ,GACZ,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAmC5D;AAaD,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sCAAsC,GAC9C,OAAO,CAAC,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAsR7C;AAkRD,eAAe,sBAAsB,CAAC"}
@@ -5,7 +5,7 @@ exports.setupAiAgentsGeneratorImpl = setupAiAgentsGeneratorImpl;
5
5
  const fs_1 = require("fs");
6
6
  const path_1 = require("path");
7
7
  const semver_1 = require("semver");
8
- const j_toml_1 = require("@ltd/j-toml");
8
+ const smol_toml_1 = require("smol-toml");
9
9
  const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
10
10
  const generate_files_1 = require("../../generators/utils/generate-files");
11
11
  const json_1 = require("../../generators/utils/json");
@@ -209,6 +209,20 @@ async function setupAiAgentsGeneratorImpl(tree, options) {
209
209
  }
210
210
  }
211
211
  }
212
+ // Clean up legacy .gemini/skills that have been migrated to shared .agents/skills.
213
+ // Only delete skills that exist in both locations to preserve user-created skills.
214
+ if (hasAgent('gemini')) {
215
+ const geminiSkillsDir = (0, path_1.join)(options.directory, '.gemini', 'skills');
216
+ const sharedSkillsDir = (0, path_1.join)(options.directory, '.agents', 'skills');
217
+ if (tree.exists(geminiSkillsDir) && tree.exists(sharedSkillsDir)) {
218
+ const sharedSkills = new Set(tree.children(sharedSkillsDir));
219
+ for (const skill of tree.children(geminiSkillsDir)) {
220
+ if (sharedSkills.has(skill)) {
221
+ tree.delete((0, path_1.join)(geminiSkillsDir, skill));
222
+ }
223
+ }
224
+ }
225
+ }
212
226
  (0, ignore_1.addEntryToGitIgnore)(tree, (0, path_1.join)(options.directory, '.gitignore'), '.nx/polygraph');
213
227
  (0, ignore_1.addEntryToGitIgnore)(tree, (0, path_1.join)(options.directory, '.gitignore'), '.claude/worktrees');
214
228
  (0, ignore_1.addEntryToGitIgnore)(tree, (0, path_1.join)(options.directory, '.gitignore'), '.claude/settings.local.json');
@@ -345,7 +359,7 @@ function writeCodexConfig(tree, codexTomlPath, nxVersion, aiConfigRepoPath) {
345
359
  const generatedConfigPath = (0, path_1.join)(aiConfigRepoPath, 'generated', '.codex', 'config.toml');
346
360
  if ((0, fs_1.existsSync)(generatedConfigPath)) {
347
361
  const generatedConfig = (0, fs_1.readFileSync)(generatedConfigPath, 'utf-8');
348
- generated = j_toml_1.default.parse(generatedConfig);
362
+ generated = smol_toml_1.default.parse(generatedConfig);
349
363
  }
350
364
  }
351
365
  if (!generated) {
@@ -366,7 +380,7 @@ function writeCodexConfig(tree, codexTomlPath, nxVersion, aiConfigRepoPath) {
366
380
  let config = {};
367
381
  if (tree.exists(codexTomlPath)) {
368
382
  try {
369
- config = j_toml_1.default.parse(tree.read(codexTomlPath, 'utf-8'));
383
+ config = smol_toml_1.default.parse(tree.read(codexTomlPath, 'utf-8'));
370
384
  }
371
385
  catch {
372
386
  // If existing file can't be parsed, start fresh
@@ -400,10 +414,8 @@ function writeCodexConfig(tree, codexTomlPath, nxVersion, aiConfigRepoPath) {
400
414
  }
401
415
  }
402
416
  // ── Serialize and write ──
403
- const tomlString = j_toml_1.default.stringify(config, {
404
- newlineAround: 'section',
405
- });
406
- tree.write(codexTomlPath, Array.isArray(tomlString) ? tomlString.join('\n') : tomlString);
417
+ const tomlString = smol_toml_1.default.stringify(config);
418
+ tree.write(codexTomlPath, tomlString);
407
419
  }
408
420
  /**
409
421
  * Strip known MCP base command args (["nx", "mcp"] or ["nx-mcp"]) from an
@@ -1 +1 @@
1
- {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/generate/generate.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAwB,MAAM,uBAAuB,CAAC;AAMzE,OAAO,EAEL,OAAO,EACP,MAAM,EACP,MAAM,oBAAoB,CAAC;AAW5B,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,YAAY,CAAC,WAAW,EAAE,UAAU,EAAE,QAUrD;AAwJD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAaA;AAmED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,eAAe,EACrB,MAAM,EAAE,MAAM,EACd,uBAAuB,EAAE,MAAM,EAC/B,OAAO,EAAE,MAAM,EAAE,QAelB;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,mBA2HxD"}
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/generate/generate.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAwB,MAAM,uBAAuB,CAAC;AAOzE,OAAO,EAEL,OAAO,EACP,MAAM,EACP,MAAM,oBAAoB,CAAC;AAW5B,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,YAAY,CAAC,WAAW,EAAE,UAAU,EAAE,QAUrD;AAwJD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAaA;AAmED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,eAAe,EACrB,MAAM,EAAE,MAAM,EACd,uBAAuB,EAAE,MAAM,EAC/B,OAAO,EAAE,MAAM,EAAE,QAelB;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,mBA6IxD"}
@@ -10,6 +10,7 @@ const path_1 = require("path");
10
10
  const configuration_1 = require("../../config/configuration");
11
11
  const tree_1 = require("../../generators/tree");
12
12
  const project_graph_1 = require("../../project-graph/project-graph");
13
+ const retrieve_workspace_files_1 = require("../../project-graph/utils/retrieve-workspace-files");
13
14
  const logger_1 = require("../../utils/logger");
14
15
  const params_1 = require("../../utils/params");
15
16
  const handle_errors_1 = require("../../utils/handle-errors");
@@ -211,8 +212,17 @@ function printGenHelp(opts, schema, normalizedGeneratorName, aliases) {
211
212
  async function generate(args) {
212
213
  return (0, handle_errors_1.handleErrors)(args.verbose, async () => {
213
214
  const nxJsonConfiguration = (0, configuration_1.readNxJson)();
214
- const projectGraph = await (0, project_graph_1.createProjectGraphAsync)();
215
- const projectsConfigurations = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph);
215
+ let projectGraph;
216
+ let projectsConfigurations;
217
+ if (args.skipProjectGraph) {
218
+ const projects = await (0, retrieve_workspace_files_1.retrieveProjectConfigurationsWithoutPluginInference)(workspace_root_1.workspaceRoot);
219
+ projectsConfigurations = { version: 2, projects };
220
+ }
221
+ else {
222
+ projectGraph = await (0, project_graph_1.createProjectGraphAsync)();
223
+ projectsConfigurations =
224
+ (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph);
225
+ }
216
226
  const opts = await convertToGenerateOptions(args, 'generate', projectsConfigurations);
217
227
  const { normalizedGeneratorName, schema, implementationFactory, generatorConfiguration: { aliases, hidden, ['x-deprecated']: deprecated, ['x-use-standalone-layout']: isStandalonePreset, }, } = (0, generator_utils_1.getGeneratorInformation)(opts.collectionName, opts.generatorName, workspace_root_1.workspaceRoot, projectsConfigurations.projects);
218
228
  if (deprecated) {
@@ -256,6 +266,9 @@ async function generate(args) {
256
266
  }
257
267
  }
258
268
  else {
269
+ if (!projectGraph) {
270
+ throw new Error(`Cannot run non-Nx generators with --skipProjectGraph. Remove the flag or use an Nx generator.`);
271
+ }
259
272
  require('../../adapter/compat');
260
273
  return (await Promise.resolve().then(() => require('../../adapter/ngcli-adapter'))).generate(workspace_root_1.workspaceRoot, {
261
274
  ...opts,
@@ -1 +1 @@
1
- {"version":3,"file":"add-nx-to-monorepo.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/init/implementation/add-nx-to-monorepo.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAYtC,KAAK,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC,GAAG;IACvE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,wBAAsB,eAAe,CACnC,OAAO,EAAE,OAAO,EAChB,MAAM,GAAE,OAAc,iBA6FvB"}
1
+ {"version":3,"file":"add-nx-to-monorepo.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/init/implementation/add-nx-to-monorepo.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AActC,KAAK,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC,GAAG;IACvE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,wBAAsB,eAAe,CACnC,OAAO,EAAE,OAAO,EAChB,MAAM,GAAE,OAAc,iBAsGvB"}
@@ -17,7 +17,7 @@ async function addNxToMonorepo(options, guided = true) {
17
17
  let targetDefaults;
18
18
  let cacheableOperations;
19
19
  let scriptOutputs = {};
20
- let useNxCloud;
20
+ let nxCloudChoice;
21
21
  if (options.interactive && scripts.length > 0 && guided) {
22
22
  output_1.output.log({
23
23
  title: '🧑‍🔧 Please answer the following questions about the scripts found in your workspace in order to generate task runner configuration',
@@ -55,27 +55,37 @@ async function addNxToMonorepo(options, guided = true) {
55
55
  },
56
56
  ]))[scriptName];
57
57
  }
58
- useNxCloud =
59
- options.nxCloud ?? (await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)());
58
+ nxCloudChoice =
59
+ options.nxCloud === true
60
+ ? 'yes'
61
+ : options.nxCloud === false
62
+ ? 'skip'
63
+ : await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)();
60
64
  }
61
65
  else {
62
66
  targetDefaults = [];
63
67
  cacheableOperations = options.cacheable ?? [];
64
- useNxCloud =
65
- options.nxCloud ??
66
- (options.interactive
67
- ? await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)()
68
- : false);
68
+ nxCloudChoice =
69
+ options.nxCloud === true
70
+ ? 'yes'
71
+ : options.nxCloud === false
72
+ ? 'skip'
73
+ : options.interactive
74
+ ? await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)()
75
+ : 'skip';
69
76
  }
70
77
  (0, utils_1.createNxJsonFile)(repoRoot, targetDefaults, cacheableOperations, scriptOutputs);
71
78
  (0, utils_1.updateGitIgnore)(repoRoot);
72
79
  (0, utils_1.addDepsToPackageJson)(repoRoot);
73
80
  output_1.output.log({ title: '📦 Installing dependencies' });
74
81
  (0, utils_1.runInstall)(repoRoot);
75
- if (useNxCloud) {
82
+ if (nxCloudChoice === 'yes') {
76
83
  output_1.output.log({ title: '🛠️ Setting up Nx Cloud' });
77
84
  await (0, utils_1.initCloud)('nx-init-monorepo');
78
85
  }
86
+ else if (nxCloudChoice === 'never') {
87
+ (0, utils_1.setNeverConnectToCloud)(repoRoot);
88
+ }
79
89
  }
80
90
  // scanning package.json files
81
91
  function allProjectPackageJsonFiles(repoRoot) {
@@ -1 +1 @@
1
- {"version":3,"file":"add-nx-to-nest.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/init/implementation/add-nx-to-nest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAStC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAa1D,KAAK,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC,CAAC;AAGvE,wBAAsB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,iBAoH3E"}
1
+ {"version":3,"file":"add-nx-to-nest.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/init/implementation/add-nx-to-nest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAStC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAe1D,KAAK,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC,CAAC;AAGvE,wBAAsB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,iBA6H3E"}
@@ -40,7 +40,7 @@ async function addNxToNest(options, packageJson) {
40
40
  });
41
41
  let cacheableOperations;
42
42
  let scriptOutputs = {};
43
- let useNxCloud;
43
+ let nxCloudChoice;
44
44
  if (options.interactive && scripts.length > 0) {
45
45
  output_1.output.log({
46
46
  title: '🧑‍🔧 Please answer the following questions about the scripts found in your package.json in order to generate task runner configuration',
@@ -66,16 +66,23 @@ async function addNxToNest(options, packageJson) {
66
66
  },
67
67
  ]))[scriptName];
68
68
  }
69
- useNxCloud =
70
- options.nxCloud ?? (await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)());
69
+ nxCloudChoice =
70
+ options.nxCloud === true
71
+ ? 'yes'
72
+ : options.nxCloud === false
73
+ ? 'skip'
74
+ : await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)();
71
75
  }
72
76
  else {
73
77
  cacheableOperations = options.cacheable ?? [];
74
- useNxCloud =
75
- options.nxCloud ??
76
- (options.interactive
77
- ? await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)()
78
- : false);
78
+ nxCloudChoice =
79
+ options.nxCloud === true
80
+ ? 'yes'
81
+ : options.nxCloud === false
82
+ ? 'skip'
83
+ : options.interactive
84
+ ? await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)()
85
+ : 'skip';
79
86
  }
80
87
  (0, utils_1.createNxJsonFile)(repoRoot, [], [...cacheableOperations, ...nestCacheableScripts], scriptOutputs);
81
88
  const pmc = (0, package_manager_1.getPackageManagerCommand)();
@@ -91,10 +98,13 @@ async function addNxToNest(options, packageJson) {
91
98
  }
92
99
  output_1.output.log({ title: '📦 Installing dependencies' });
93
100
  (0, utils_1.runInstall)(repoRoot);
94
- if (useNxCloud) {
101
+ if (nxCloudChoice === 'yes') {
95
102
  output_1.output.log({ title: '🛠️ Setting up Nx Cloud' });
96
103
  await (0, utils_1.initCloud)('nx-init-nest');
97
104
  }
105
+ else if (nxCloudChoice === 'never') {
106
+ (0, utils_1.setNeverConnectToCloud)(repoRoot);
107
+ }
98
108
  }
99
109
  function addNestPluginToPackageJson(repoRoot) {
100
110
  const path = (0, path_1.join)(repoRoot, `package.json`);
@@ -1 +1 @@
1
- {"version":3,"file":"add-nx-to-npm-repo.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/init/implementation/add-nx-to-npm-repo.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAetC,KAAK,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC,GAAG;IACvE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,wBAAsB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,GAAE,OAAc,iBAgF5E"}
1
+ {"version":3,"file":"add-nx-to-npm-repo.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/init/implementation/add-nx-to-npm-repo.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAiBtC,KAAK,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC,GAAG;IACvE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,wBAAsB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,GAAE,OAAc,iBAyF5E"}
@@ -13,7 +13,7 @@ async function addNxToNpmRepo(options, guided = true) {
13
13
  output_1.output.log({ title: '🐳 Nx initialization' });
14
14
  let cacheableOperations;
15
15
  let scriptOutputs = {};
16
- let useNxCloud;
16
+ let nxCloudChoice;
17
17
  const packageJson = (0, fileutils_1.readJsonFile)('package.json');
18
18
  const scripts = Object.keys(packageJson.scripts ?? {}).filter((s) => !s.startsWith('pre') && !s.startsWith('post'));
19
19
  if (options.interactive && scripts.length > 0 && guided) {
@@ -42,16 +42,23 @@ async function addNxToNpmRepo(options, guided = true) {
42
42
  },
43
43
  ]))[scriptName];
44
44
  }
45
- useNxCloud =
46
- options.nxCloud ?? (await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)());
45
+ nxCloudChoice =
46
+ options.nxCloud === true
47
+ ? 'yes'
48
+ : options.nxCloud === false
49
+ ? 'skip'
50
+ : await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)();
47
51
  }
48
52
  else {
49
53
  cacheableOperations = options.cacheable ?? [];
50
- useNxCloud =
51
- options.nxCloud ??
52
- (options.interactive
53
- ? await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)()
54
- : false);
54
+ nxCloudChoice =
55
+ options.nxCloud === true
56
+ ? 'yes'
57
+ : options.nxCloud === false
58
+ ? 'skip'
59
+ : options.interactive
60
+ ? await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)()
61
+ : 'skip';
55
62
  }
56
63
  (0, utils_1.createNxJsonFile)(repoRoot, [], cacheableOperations, scriptOutputs);
57
64
  const pmc = (0, package_manager_1.getPackageManagerCommand)();
@@ -65,8 +72,11 @@ async function addNxToNpmRepo(options, guided = true) {
65
72
  }
66
73
  output_1.output.log({ title: '📦 Installing dependencies' });
67
74
  (0, utils_1.runInstall)(repoRoot, pmc);
68
- if (useNxCloud) {
75
+ if (nxCloudChoice === 'yes') {
69
76
  output_1.output.log({ title: '🛠️ Setting up Nx Cloud' });
70
77
  await (0, utils_1.initCloud)('nx-init-npm-repo');
71
78
  }
79
+ else if (nxCloudChoice === 'never') {
80
+ (0, utils_1.setNeverConnectToCloud)(repoRoot);
81
+ }
72
82
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/command-line/init/implementation/angular/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAqB,OAAO,EAAE,MAAM,SAAS,CAAC;AAa1D,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,OAAO,iBAqC3D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/command-line/init/implementation/angular/index.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAqB,OAAO,EAAE,MAAM,SAAS,CAAC;AAc1D,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,OAAO,iBA4C3D"}
@@ -37,16 +37,24 @@ async function addNxToAngularCliRepo(options) {
37
37
  const cacheableOperations = !options.integrated
38
38
  ? await collectCacheableOperations(options)
39
39
  : [];
40
- const useNxCloud = options.nxCloud ??
41
- (options.interactive ? await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)() : false);
40
+ const nxCloudChoice = options.nxCloud === true
41
+ ? 'yes'
42
+ : options.nxCloud === false
43
+ ? 'skip'
44
+ : options.interactive
45
+ ? await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)()
46
+ : 'skip';
42
47
  output_1.output.log({ title: '📦 Installing dependencies' });
43
48
  installDependencies();
44
49
  output_1.output.log({ title: '📝 Setting up workspace' });
45
50
  await setupWorkspace(cacheableOperations, options.integrated);
46
- if (useNxCloud) {
51
+ if (nxCloudChoice === 'yes') {
47
52
  output_1.output.log({ title: '🛠️ Setting up Nx Cloud' });
48
53
  await (0, utils_1.initCloud)('nx-init-angular');
49
54
  }
55
+ else if (nxCloudChoice === 'never') {
56
+ (0, utils_1.setNeverConnectToCloud)(repoRoot);
57
+ }
50
58
  }
51
59
  async function collectCacheableOperations(options) {
52
60
  let cacheableOperations;
@@ -1 +1 @@
1
- {"version":3,"file":"legacy-angular-versions.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/command-line/init/implementation/angular/legacy-angular-versions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAmBvC,wBAAsB,sCAAsC,CAC1D,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAqGrC"}
1
+ {"version":3,"file":"legacy-angular-versions.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/command-line/init/implementation/angular/legacy-angular-versions.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAmBvC,wBAAsB,sCAAsC,CAC1D,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CA0GrC"}
@@ -90,10 +90,13 @@ async function getLegacyMigrationFunctionIfApplicable(repoRoot, options) {
90
90
  }
91
91
  return async () => {
92
92
  output_1.output.log({ title: '🐳 Nx initialization' });
93
- const useNxCloud = options.nxCloud ??
94
- (options.interactive
95
- ? await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)()
96
- : false);
93
+ const nxCloudChoice = options.nxCloud === true
94
+ ? 'yes'
95
+ : options.nxCloud === false
96
+ ? 'skip'
97
+ : options.interactive
98
+ ? await (0, connect_to_nx_cloud_1.connectExistingRepoToNxCloudPrompt)()
99
+ : 'skip';
97
100
  output_1.output.log({ title: '📦 Installing dependencies' });
98
101
  const pmc = (0, package_manager_1.getPackageManagerCommand)();
99
102
  await installDependencies(repoRoot, {
@@ -107,10 +110,13 @@ async function getLegacyMigrationFunctionIfApplicable(repoRoot, options) {
107
110
  stdio: [0, 1, 2],
108
111
  windowsHide: true,
109
112
  });
110
- if (useNxCloud) {
113
+ if (nxCloudChoice === 'yes') {
111
114
  output_1.output.log({ title: '🛠️ Setting up Nx Cloud' });
112
115
  await (0, utils_1.initCloud)('nx-init-angular');
113
116
  }
117
+ else if (nxCloudChoice === 'never') {
118
+ (0, utils_1.setNeverConnectToCloud)(repoRoot);
119
+ }
114
120
  };
115
121
  }
116
122
  async function installDependencies(repoRoot, pkgInfo, pmc) {
@@ -9,6 +9,7 @@ export declare function addDepsToPackageJson(repoRoot: string, additionalPackage
9
9
  export declare function updateGitIgnore(root: string): void;
10
10
  export declare function runInstall(repoRoot: string, pmc?: PackageManagerCommands): void;
11
11
  export declare function initCloud(installationSource: 'nx-init' | 'nx-init-angular' | 'nx-init-monorepo' | 'nx-init-nest' | 'nx-init-npm-repo' | 'nx-init-turborepo'): Promise<void>;
12
+ export declare function setNeverConnectToCloud(repoRoot: string): void;
12
13
  export declare function addVsCodeRecommendedExtensions(repoRoot: string, extensions: string[]): void;
13
14
  export declare function markRootPackageJsonAsNxProjectLegacy(repoRoot: string, cacheableScripts: string[], pmc: PackageManagerCommands): void;
14
15
  export declare function markPackageJsonAsNxProject(packageJsonPath: string): void;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/init/implementation/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAO9D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAEL,sBAAsB,EACvB,MAAM,gCAAgC,CAAC;AASxC,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,kBAAkB,EAAE,MAAM,EAAE,EAC5B,mBAAmB,EAAE,MAAM,EAAE,EAC7B,aAAa,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,QA0C1C;AAED,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC7B,mBAAmB,CA+GrB;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,kBAAkB,CAAC,EAAE,MAAM,EAAE,QAY9B;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,QAuB3C;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,MAAM,EAChB,GAAG,GAAE,sBAAmD,QAOzD;AAED,wBAAsB,SAAS,CAC7B,kBAAkB,EACd,SAAS,GACT,iBAAiB,GACjB,kBAAkB,GAClB,cAAc,GACd,kBAAkB,GAClB,mBAAmB,iBAMxB;AAED,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAAE,GACnB,IAAI,CAiBN;AAED,wBAAgB,oCAAoC,CAClD,QAAQ,EAAE,MAAM,EAChB,gBAAgB,EAAE,MAAM,EAAE,EAC1B,GAAG,EAAE,sBAAsB,QAqB5B;AAED,wBAAgB,0BAA0B,CAAC,eAAe,EAAE,MAAM,QAQjE;AAED,wBAAgB,iBAAiB,CAAC,EAChC,aAAa,EACb,WAAW,GACZ,EAAE;IACD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,GAAG,IAAI,CAUP;AAED,wBAAgB,UAAU,CAAC,WAAW,EAAE,WAAW,WAgBlD"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/init/implementation/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAO9D,OAAO,EAAE,W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gB,UAAU,CAAC,WAAW,EAAE,WAAW,WAgBlD"}
@@ -6,6 +6,7 @@ exports.addDepsToPackageJson = addDepsToPackageJson;
6
6
  exports.updateGitIgnore = updateGitIgnore;
7
7
  exports.runInstall = runInstall;
8
8
  exports.initCloud = initCloud;
9
+ exports.setNeverConnectToCloud = setNeverConnectToCloud;
9
10
  exports.addVsCodeRecommendedExtensions = addVsCodeRecommendedExtensions;
10
11
  exports.markRootPackageJsonAsNxProjectLegacy = markRootPackageJsonAsNxProjectLegacy;
11
12
  exports.markPackageJsonAsNxProject = markPackageJsonAsNxProject;
@@ -191,7 +192,7 @@ function updateGitIgnore(root) {
191
192
  }
192
193
  function runInstall(repoRoot, pmc = (0, package_manager_1.getPackageManagerCommand)()) {
193
194
  (0, child_process_1.execSync)(pmc.install, {
194
- stdio: [0, 1, 2],
195
+ stdio: ['ignore', 'ignore', 'inherit'],
195
196
  cwd: repoRoot,
196
197
  windowsHide: true,
197
198
  });
@@ -202,6 +203,12 @@ async function initCloud(installationSource) {
202
203
  });
203
204
  await (0, connect_to_nx_cloud_1.printSuccessMessage)(token, installationSource);
204
205
  }
206
+ function setNeverConnectToCloud(repoRoot) {
207
+ const nxJsonPath = (0, path_1.join)(repoRoot, 'nx.json');
208
+ const nxJson = (0, fileutils_1.readJsonFile)(nxJsonPath);
209
+ nxJson.neverConnectToCloud = true;
210
+ (0, fileutils_1.writeJsonFile)(nxJsonPath, nxJson);
211
+ }
205
212
  function addVsCodeRecommendedExtensions(repoRoot, extensions) {
206
213
  const vsCodeExtensionsPath = (0, path_1.join)(repoRoot, '.vscode/extensions.json');
207
214
  if ((0, fileutils_1.fileExists)(vsCodeExtensionsPath)) {
@@ -1 +1 @@
1
- {"version":3,"file":"init-v2.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/init/init-v2.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,sBAAsB,CAAC;AAIvE,OAAO,EAAE,WAAW,EAAE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