create-nx-workspace 23.1.0-beta.3 → 23.1.0-beta.5
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.
|
@@ -417,9 +417,6 @@ async function normalizeArgsMiddleware(argv) {
|
|
|
417
417
|
argv.name = ai_output_1.SUGGESTED_WORKSPACE_NAME;
|
|
418
418
|
(0, ai_output_1.logProgress)('starting', `Using workspace name: ${argv.name} (if directory exists, re-run with a different name like my-nx-repo-2)`);
|
|
419
419
|
}
|
|
420
|
-
// Always enable Nx Cloud for AI agents - ignore --nxCloud=skip since the AI
|
|
421
|
-
// may pass it without asking the user. Nx Cloud is required for the full experience.
|
|
422
|
-
argv.nxCloud = 'yes';
|
|
423
420
|
// Skip GitHub push prompts in AI mode - we'll provide instructions in the success output
|
|
424
421
|
argv.skipGitHubPush = true;
|
|
425
422
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Wrap `text` in an OSC 8 hyperlink
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* while still attaching them to the link target (CLOUD-4642).
|
|
2
|
+
* Wrap `text` in an OSC 8 hyperlink to `url`, keeping tracking querystrings out
|
|
3
|
+
* of visible output while attaching them to the link target (CLOUD-4642).
|
|
4
|
+
* Unsupported terminals print `text` unchanged.
|
|
6
5
|
*/
|
|
7
6
|
export declare function terminalLink(text: string, url: string): string;
|
|
8
7
|
/**
|
|
9
|
-
* Exported for testing. VTE
|
|
10
|
-
*
|
|
8
|
+
* Exported for testing. VTE packs versions into an integer ("5402" = 0.54.2);
|
|
9
|
+
* everything else is dot-separated.
|
|
11
10
|
*/
|
|
12
11
|
export declare function parseVersion(versionString?: string): {
|
|
13
12
|
major: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Keep in sync with packages/nx/src/utils/terminal-link.ts
|
|
3
|
-
// create-nx-workspace cannot depend on nx
|
|
4
|
-
// intentionally duplicated (same reasoning as output.ts / package-manager.ts).
|
|
2
|
+
// Keep in sync with packages/nx/src/utils/terminal-link.ts; duplicated because
|
|
3
|
+
// create-nx-workspace cannot depend on nx (same as output.ts / package-manager.ts).
|
|
5
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
5
|
exports.terminalLink = terminalLink;
|
|
7
6
|
exports.parseVersion = parseVersion;
|
|
@@ -9,10 +8,9 @@ const OSC = '\u001B]';
|
|
|
9
8
|
const BEL = '\u0007';
|
|
10
9
|
const SEP = ';';
|
|
11
10
|
/**
|
|
12
|
-
* Wrap `text` in an OSC 8 hyperlink
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* while still attaching them to the link target (CLOUD-4642).
|
|
11
|
+
* Wrap `text` in an OSC 8 hyperlink to `url`, keeping tracking querystrings out
|
|
12
|
+
* of visible output while attaching them to the link target (CLOUD-4642).
|
|
13
|
+
* Unsupported terminals print `text` unchanged.
|
|
16
14
|
*/
|
|
17
15
|
function terminalLink(text, url) {
|
|
18
16
|
if (!supportsHyperlinks()) {
|
|
@@ -21,9 +19,8 @@ function terminalLink(text, url) {
|
|
|
21
19
|
return [OSC, '8', SEP, SEP, url, BEL, text, OSC, '8', SEP, SEP, BEL].join('');
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* print raw escape sequences to a terminal that can't render them.
|
|
22
|
+
* OSC 8 support detection (adapted from `supports-hyperlinks`). Defaults to
|
|
23
|
+
* false when in doubt so we never emit raw escape sequences.
|
|
27
24
|
*/
|
|
28
25
|
function supportsHyperlinks() {
|
|
29
26
|
const env = process.env;
|
|
@@ -72,8 +69,8 @@ function supportsHyperlinks() {
|
|
|
72
69
|
return false;
|
|
73
70
|
}
|
|
74
71
|
/**
|
|
75
|
-
* Exported for testing. VTE
|
|
76
|
-
*
|
|
72
|
+
* Exported for testing. VTE packs versions into an integer ("5402" = 0.54.2);
|
|
73
|
+
* everything else is dot-separated.
|
|
77
74
|
*/
|
|
78
75
|
function parseVersion(versionString = '') {
|
|
79
76
|
if (/^\d{3,4}$/.test(versionString)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nx-workspace",
|
|
3
|
-
"version": "23.1.0-beta.
|
|
3
|
+
"version": "23.1.0-beta.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Smart Monorepos · Fast Builds",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://nx.dev",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"axios": "1.16.
|
|
40
|
+
"axios": "1.16.1",
|
|
41
41
|
"chalk": "^4.1.0",
|
|
42
42
|
"enquirer": "~2.3.6",
|
|
43
43
|
"flat": "^5.0.2",
|