@depup/nx 22.6.2-depup.0 → 22.6.4-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.
- package/README.md +6 -5
- package/changes.json +9 -5
- package/package.json +24 -20
- package/src/command-line/init/command-object.d.ts.map +1 -1
- package/src/command-line/init/command-object.js +46 -3
- package/src/command-line/init/init-v2.d.ts.map +1 -1
- package/src/command-line/init/init-v2.js +17 -0
- package/src/command-line/migrate/command-object.js +0 -1
- package/src/command-line/migrate/migrate.d.ts.map +1 -1
- package/src/command-line/migrate/migrate.js +2 -1
- package/src/command-line/nx-cloud/connect/connect-to-nx-cloud.d.ts.map +1 -1
- package/src/command-line/nx-cloud/connect/connect-to-nx-cloud.js +21 -2
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/native/nx.wasm32-wasi.debug.wasm +0 -0
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/utils/ab-testing.d.ts +19 -1
- package/src/utils/ab-testing.d.ts.map +1 -1
- package/src/utils/ab-testing.js +3 -1
package/README.md
CHANGED
|
@@ -13,19 +13,19 @@ npm install @depup/nx
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [nx](https://www.npmjs.com/package/nx) @ 22.6.
|
|
17
|
-
| Processed | 2026-
|
|
16
|
+
| Original | [nx](https://www.npmjs.com/package/nx) @ 22.6.4 |
|
|
17
|
+
| Processed | 2026-04-01 |
|
|
18
18
|
| Smoke test | failed |
|
|
19
|
-
| Deps updated |
|
|
19
|
+
| Deps updated | 30 |
|
|
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.
|
|
25
|
+
| @napi-rs/wasm-runtime | 0.2.4 | ^1.1.2 |
|
|
26
26
|
| @yarnpkg/parsers | 3.0.2 | ^3.0.3 |
|
|
27
27
|
| @zkochan/js-yaml | 0.0.7 | ^0.0.11 |
|
|
28
|
-
| axios |
|
|
28
|
+
| axios | 1.12.0 | ^1.14.0 |
|
|
29
29
|
| cli-cursor | 3.1.0 | ^5.0.0 |
|
|
30
30
|
| cli-spinners | 2.6.1 | ^3.4.0 |
|
|
31
31
|
| cliui | ^8.0.1 | ^9.0.1 |
|
|
@@ -38,6 +38,7 @@ npm install @depup/nx
|
|
|
38
38
|
| jest-diff | ^30.0.2 | ^30.3.0 |
|
|
39
39
|
| jsonc-parser | 3.2.0 | ^3.3.1 |
|
|
40
40
|
| lines-and-columns | 2.0.3 | ^2.0.4 |
|
|
41
|
+
| minimatch | 10.2.4 | ^10.2.5 |
|
|
41
42
|
| npm-run-path | ^4.0.1 | ^6.0.0 |
|
|
42
43
|
| open | ^8.4.0 | ^11.0.0 |
|
|
43
44
|
| ora | 5.3.0 | ^9.3.0 |
|
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.
|
|
5
|
+
"to": "^1.1.2"
|
|
6
6
|
},
|
|
7
7
|
"@yarnpkg/parsers": {
|
|
8
8
|
"from": "3.0.2",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"to": "^0.0.11"
|
|
14
14
|
},
|
|
15
15
|
"axios": {
|
|
16
|
-
"from": "
|
|
17
|
-
"to": "^1.
|
|
16
|
+
"from": "1.12.0",
|
|
17
|
+
"to": "^1.14.0"
|
|
18
18
|
},
|
|
19
19
|
"picocolors": {
|
|
20
20
|
"from": "^1.1.0",
|
|
@@ -68,6 +68,10 @@
|
|
|
68
68
|
"from": "2.0.3",
|
|
69
69
|
"to": "^2.0.4"
|
|
70
70
|
},
|
|
71
|
+
"minimatch": {
|
|
72
|
+
"from": "10.2.4",
|
|
73
|
+
"to": "^10.2.5"
|
|
74
|
+
},
|
|
71
75
|
"npm-run-path": {
|
|
72
76
|
"from": "^4.0.1",
|
|
73
77
|
"to": "^6.0.0"
|
|
@@ -117,6 +121,6 @@
|
|
|
117
121
|
"to": "^22.0.0"
|
|
118
122
|
}
|
|
119
123
|
},
|
|
120
|
-
"timestamp": "2026-
|
|
121
|
-
"totalUpdated":
|
|
124
|
+
"timestamp": "2026-04-01T20:22:59.546Z",
|
|
125
|
+
"totalUpdated": 30
|
|
122
126
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/nx",
|
|
3
|
-
"version": "22.6.
|
|
3
|
+
"version": "22.6.4-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",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"homepage": "https://nx.dev",
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@ltd/j-toml": "^1.38.0",
|
|
43
|
-
"@napi-rs/wasm-runtime": "^1.1.
|
|
43
|
+
"@napi-rs/wasm-runtime": "^1.1.2",
|
|
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.
|
|
47
|
+
"axios": "^1.14.0",
|
|
48
48
|
"picocolors": "^1.1.1",
|
|
49
49
|
"cli-cursor": "^5.0.0",
|
|
50
50
|
"cli-spinners": "^3.4.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"jest-diff": "^30.3.0",
|
|
61
61
|
"jsonc-parser": "^3.3.1",
|
|
62
62
|
"lines-and-columns": "^2.0.4",
|
|
63
|
-
"minimatch": "10.2.
|
|
63
|
+
"minimatch": "^10.2.5",
|
|
64
64
|
"npm-run-path": "^6.0.0",
|
|
65
65
|
"open": "^11.0.0",
|
|
66
66
|
"ora": "^9.3.0",
|
|
@@ -89,16 +89,16 @@
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
"optionalDependencies": {
|
|
92
|
-
"@nx/nx-darwin-arm64": "22.6.
|
|
93
|
-
"@nx/nx-darwin-x64": "22.6.
|
|
94
|
-
"@nx/nx-freebsd-x64": "22.6.
|
|
95
|
-
"@nx/nx-linux-arm-gnueabihf": "22.6.
|
|
96
|
-
"@nx/nx-linux-arm64-gnu": "22.6.
|
|
97
|
-
"@nx/nx-linux-arm64-musl": "22.6.
|
|
98
|
-
"@nx/nx-linux-x64-gnu": "22.6.
|
|
99
|
-
"@nx/nx-linux-x64-musl": "22.6.
|
|
100
|
-
"@nx/nx-win32-arm64-msvc": "22.6.
|
|
101
|
-
"@nx/nx-win32-x64-msvc": "22.6.
|
|
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"
|
|
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.
|
|
186
|
+
"to": "^1.1.2"
|
|
187
187
|
},
|
|
188
188
|
"@yarnpkg/parsers": {
|
|
189
189
|
"from": "3.0.2",
|
|
@@ -194,8 +194,8 @@
|
|
|
194
194
|
"to": "^0.0.11"
|
|
195
195
|
},
|
|
196
196
|
"axios": {
|
|
197
|
-
"from": "
|
|
198
|
-
"to": "^1.
|
|
197
|
+
"from": "1.12.0",
|
|
198
|
+
"to": "^1.14.0"
|
|
199
199
|
},
|
|
200
200
|
"picocolors": {
|
|
201
201
|
"from": "^1.1.0",
|
|
@@ -249,6 +249,10 @@
|
|
|
249
249
|
"from": "2.0.3",
|
|
250
250
|
"to": "^2.0.4"
|
|
251
251
|
},
|
|
252
|
+
"minimatch": {
|
|
253
|
+
"from": "10.2.4",
|
|
254
|
+
"to": "^10.2.5"
|
|
255
|
+
},
|
|
252
256
|
"npm-run-path": {
|
|
253
257
|
"from": "^4.0.1",
|
|
254
258
|
"to": "^6.0.0"
|
|
@@ -298,10 +302,10 @@
|
|
|
298
302
|
"to": "^22.0.0"
|
|
299
303
|
}
|
|
300
304
|
},
|
|
301
|
-
"depsUpdated":
|
|
305
|
+
"depsUpdated": 30,
|
|
302
306
|
"originalPackage": "nx",
|
|
303
|
-
"originalVersion": "22.6.
|
|
304
|
-
"processedAt": "2026-
|
|
307
|
+
"originalVersion": "22.6.4",
|
|
308
|
+
"processedAt": "2026-04-01T20:23:05.378Z",
|
|
305
309
|
"smokeTest": "failed"
|
|
306
310
|
}
|
|
307
311
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-object.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/init/command-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"command-object.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/init/command-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,OAAO,CAAC;AAc5C,eAAO,MAAM,gBAAgB,EAAE,aAgG9B,CAAC"}
|
|
@@ -4,6 +4,10 @@ exports.yargsInitCommand = void 0;
|
|
|
4
4
|
const shared_options_1 = require("../yargs-utils/shared-options");
|
|
5
5
|
const native_1 = require("../../native");
|
|
6
6
|
const ai_output_1 = require("./utils/ai-output");
|
|
7
|
+
const ab_testing_1 = require("../../utils/ab-testing");
|
|
8
|
+
const versions_1 = require("../../utils/versions");
|
|
9
|
+
const is_ci_1 = require("../../utils/is-ci");
|
|
10
|
+
const package_manager_1 = require("../../utils/package-manager");
|
|
7
11
|
exports.yargsInitCommand = {
|
|
8
12
|
command: 'init',
|
|
9
13
|
describe: 'Adds Nx to any type of workspace. It installs nx, creates an nx.json configuration file and optionally sets up remote caching. For more info, check https://nx.dev/recipes/adopting-nx.',
|
|
@@ -28,21 +32,60 @@ exports.yargsInitCommand = {
|
|
|
28
32
|
return;
|
|
29
33
|
throw error;
|
|
30
34
|
});
|
|
35
|
+
const aiAgent = (0, native_1.isAiAgent)();
|
|
36
|
+
(0, ab_testing_1.recordStat)({
|
|
37
|
+
command: 'init',
|
|
38
|
+
nxVersion: versions_1.nxVersion,
|
|
39
|
+
useCloud: false,
|
|
40
|
+
meta: {
|
|
41
|
+
type: 'start',
|
|
42
|
+
nodeVersion: process.versions.node,
|
|
43
|
+
os: process.platform,
|
|
44
|
+
packageManager: (0, package_manager_1.detectPackageManager)(),
|
|
45
|
+
aiAgent,
|
|
46
|
+
isCI: (0, is_ci_1.isCI)(),
|
|
47
|
+
},
|
|
48
|
+
});
|
|
31
49
|
try {
|
|
32
50
|
const useV2 = await isInitV2();
|
|
33
51
|
if (useV2) {
|
|
52
|
+
// v2 records its own complete event with richer context
|
|
34
53
|
await require('./init-v2').initHandler(args);
|
|
35
54
|
}
|
|
36
55
|
else {
|
|
37
56
|
await require('./init-v1').initHandler(args);
|
|
57
|
+
await (0, ab_testing_1.recordStat)({
|
|
58
|
+
command: 'init',
|
|
59
|
+
nxVersion: versions_1.nxVersion,
|
|
60
|
+
useCloud: false,
|
|
61
|
+
meta: {
|
|
62
|
+
type: 'complete',
|
|
63
|
+
nodeVersion: process.versions.node,
|
|
64
|
+
os: process.platform,
|
|
65
|
+
packageManager: (0, package_manager_1.detectPackageManager)(),
|
|
66
|
+
aiAgent,
|
|
67
|
+
isCI: (0, is_ci_1.isCI)(),
|
|
68
|
+
},
|
|
69
|
+
});
|
|
38
70
|
}
|
|
39
71
|
process.exit(0);
|
|
40
72
|
}
|
|
41
73
|
catch (error) {
|
|
74
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
75
|
+
const errorCode = (0, ai_output_1.determineErrorCode)(error);
|
|
76
|
+
await (0, ab_testing_1.recordStat)({
|
|
77
|
+
command: 'init',
|
|
78
|
+
nxVersion: versions_1.nxVersion,
|
|
79
|
+
useCloud: false,
|
|
80
|
+
meta: {
|
|
81
|
+
type: 'error',
|
|
82
|
+
errorCode,
|
|
83
|
+
errorMessage: errorMessage.substring(0, 250),
|
|
84
|
+
aiAgent,
|
|
85
|
+
},
|
|
86
|
+
});
|
|
42
87
|
// Output structured error for AI agents
|
|
43
|
-
if (
|
|
44
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
45
|
-
const errorCode = (0, ai_output_1.determineErrorCode)(error);
|
|
88
|
+
if (aiAgent) {
|
|
46
89
|
const errorLogPath = (0, ai_output_1.writeErrorLog)(error);
|
|
47
90
|
(0, ai_output_1.writeAiOutput)((0, ai_output_1.buildErrorResult)(errorMessage, errorCode, errorLogPath));
|
|
48
91
|
}
|
|
@@ -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,MAAM,0BAA0B,CAAC;AAwBvD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
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,MAAM,0BAA0B,CAAC;AAwBvD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAgBvC,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,wBAAsB,WAAW,CAC/B,OAAO,EAAE,QAAQ,EACjB,KAAK,UAAQ,GACZ,OAAO,CAAC,IAAI,CAAC,CA2Bf;AA8SD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CA0BtD;AAkDD,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,EAC3B,WAAW,EAAE,WAAW,GAAG,IAAI,EAC/B,WAAW,EAAE,OAAO,EACpB,iBAAiB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC;IACT,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,oBAAoB,EAAE,OAAO,CAAC;CAC/B,CAAC,CAsKD"}
|
|
@@ -28,6 +28,9 @@ const provenance_1 = require("../../utils/provenance");
|
|
|
28
28
|
const devkit_internals_1 = require("../../devkit-internals");
|
|
29
29
|
const native_1 = require("../../native");
|
|
30
30
|
const detect_ai_agent_1 = require("../../ai/detect-ai-agent");
|
|
31
|
+
const ab_testing_1 = require("../../utils/ab-testing");
|
|
32
|
+
const is_ci_1 = require("../../utils/is-ci");
|
|
33
|
+
const package_manager_2 = require("../../utils/package-manager");
|
|
31
34
|
const ai_output_1 = require("./utils/ai-output");
|
|
32
35
|
async function initHandler(options, inner = false) {
|
|
33
36
|
// Use environment variable to force local execution
|
|
@@ -257,6 +260,20 @@ async function initHandlerImpl(options) {
|
|
|
257
260
|
if (useNxCloud) {
|
|
258
261
|
await (0, utils_1.initCloud)('nx-init');
|
|
259
262
|
}
|
|
263
|
+
await (0, ab_testing_1.recordStat)({
|
|
264
|
+
command: 'init',
|
|
265
|
+
nxVersion: version,
|
|
266
|
+
useCloud: !!useNxCloud,
|
|
267
|
+
meta: {
|
|
268
|
+
type: 'complete',
|
|
269
|
+
nodeVersion: process.versions.node,
|
|
270
|
+
os: process.platform,
|
|
271
|
+
packageManager: (0, package_manager_2.detectPackageManager)(),
|
|
272
|
+
aiAgent: aiMode,
|
|
273
|
+
isCI: (0, is_ci_1.isCI)(),
|
|
274
|
+
pluginsInstalled: pluginsToInstall.join(','),
|
|
275
|
+
},
|
|
276
|
+
});
|
|
260
277
|
// Output success result for AI agents
|
|
261
278
|
if (aiMode) {
|
|
262
279
|
(0, ai_output_1.writeAiOutput)((0, ai_output_1.buildSuccessResult)({
|
|
@@ -58,7 +58,6 @@ function withMigrationOptions(yargs) {
|
|
|
58
58
|
.option('interactive', {
|
|
59
59
|
describe: 'Enable prompts to confirm whether to collect optional package updates and migrations.',
|
|
60
60
|
type: 'boolean',
|
|
61
|
-
default: false,
|
|
62
61
|
})
|
|
63
62
|
.option('excludeAppliedMigrations', {
|
|
64
63
|
describe: 'Exclude migrations that should have been applied on previous updates. To be used with --from.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/migrate/migrate.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,cAAc,EAEd,2BAA2B,IAAI,aAAa,EAE7C,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,m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5B,YAAY,EAAE,MAAM,EACpB,oBAAoB,CAAC,EAAE,MAAM,IAAI,EACjC,iBAAiB,UAAQ,GACxB,OAAO,CAAC;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CA8EzD;AA2HD,wBAAsB,OAAO,CAC3B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC1B,OAAO,EAAE,MAAM,EAAE,mBAmBlB;AAED,wBAAsB,YAAY,kBAgCjC;AAED,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;EAWxE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,cAAc,EAC1B,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,MAAM,GACX;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAyBpC;AAED,wBAAsB,SAAS,CAAC,eAAe,CAAC,EAAE,MAAM,mBAoEvD"}
|
|
@@ -892,7 +892,8 @@ async function generateMigrationsJsonAndUpdatePackageJson(root, opts) {
|
|
|
892
892
|
],
|
|
893
893
|
});
|
|
894
894
|
try {
|
|
895
|
-
if (
|
|
895
|
+
if (opts.interactive !== false &&
|
|
896
|
+
['nx', '@nrwl/workspace'].includes(opts.targetPackage) &&
|
|
896
897
|
(await isMigratingToNewMajor(from, opts.targetVersion)) &&
|
|
897
898
|
!(0, is_ci_1.isCI)() &&
|
|
898
899
|
!(0, nx_cloud_utils_1.isNxCloudUsed)(originalNxJson)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-to-nx-cloud.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/nx-cloud/connect/connect-to-nx-cloud.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,uBAAuB,EACxB,MAAM,sEAAsE,CAAC;AAI9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EACL,UAAU,EAIX,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"connect-to-nx-cloud.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/nx-cloud/connect/connect-to-nx-cloud.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,uBAAuB,EACxB,MAAM,sEAAsE,CAAC;AAI9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EACL,UAAU,EAIX,MAAM,2BAA2B,CAAC;AAWnC,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,mBAAmB,WAiBlE;AAED,wBAAsB,iCAAiC,CACrD,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAgBf;AAED,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,uBAAuB,EAChC,SAAS,SAAgB,mBAO1B;AAED,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,EAC3D,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,CAAC,CA8ElB;AAMD,wBAAsB,kCAAkC,CACtD,OAAO,SAAS,EAChB,GAAG,GAAE,UAA2B,GAC/B,OAAO,CAAC,OAAO,CAAC,CAmBlB;AAED,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,MAAM,iBAqB/D"}
|
|
@@ -15,6 +15,9 @@ const nx_cloud_utils_1 = require("../../../utils/nx-cloud-utils");
|
|
|
15
15
|
const child_process_1 = require("../../../utils/child-process");
|
|
16
16
|
const ab_testing_1 = require("../../../utils/ab-testing");
|
|
17
17
|
const versions_1 = require("../../../utils/versions");
|
|
18
|
+
const is_ci_1 = require("../../../utils/is-ci");
|
|
19
|
+
const native_1 = require("../../../native");
|
|
20
|
+
const package_manager_1 = require("../../../utils/package-manager");
|
|
18
21
|
const workspace_root_1 = require("../../../utils/workspace-root");
|
|
19
22
|
const git_utils_1 = require("../../../utils/git-utils");
|
|
20
23
|
const pc = require("picocolors");
|
|
@@ -124,7 +127,15 @@ async function connectExistingRepoToNxCloudPrompt(command = 'init', key = 'setup
|
|
|
124
127
|
command,
|
|
125
128
|
nxVersion: versions_1.nxVersion,
|
|
126
129
|
useCloud: res,
|
|
127
|
-
meta:
|
|
130
|
+
meta: {
|
|
131
|
+
type: 'complete',
|
|
132
|
+
setupCloudPrompt: ab_testing_1.messages.codeOfSelectedPromptMessage(key) || '',
|
|
133
|
+
nodeVersion: process.versions.node,
|
|
134
|
+
os: process.platform,
|
|
135
|
+
packageManager: (0, package_manager_1.detectPackageManager)(),
|
|
136
|
+
aiAgent: (0, native_1.isAiAgent)(),
|
|
137
|
+
isCI: (0, is_ci_1.isCI)(),
|
|
138
|
+
},
|
|
128
139
|
});
|
|
129
140
|
return res;
|
|
130
141
|
}
|
|
@@ -137,7 +148,15 @@ async function connectToNxCloudWithPrompt(command) {
|
|
|
137
148
|
command,
|
|
138
149
|
nxVersion: versions_1.nxVersion,
|
|
139
150
|
useCloud,
|
|
140
|
-
meta:
|
|
151
|
+
meta: {
|
|
152
|
+
type: 'complete',
|
|
153
|
+
setupCloudPrompt: ab_testing_1.messages.codeOfSelectedPromptMessage('setupNxCloud') || '',
|
|
154
|
+
nodeVersion: process.versions.node,
|
|
155
|
+
os: process.platform,
|
|
156
|
+
packageManager: (0, package_manager_1.detectPackageManager)(),
|
|
157
|
+
aiAgent: (0, native_1.isAiAgent)(),
|
|
158
|
+
isCI: (0, is_ci_1.isCI)(),
|
|
159
|
+
},
|
|
141
160
|
});
|
|
142
161
|
}
|
|
143
162
|
async function nxCloudPrompt(key) {
|