@aws/create-nx-workspace 1.0.0-rc.24 → 1.0.0-rc.26
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/bin/index.cjs +60 -45
- package/package.json +1 -1
package/bin/index.cjs
CHANGED
|
@@ -10,15 +10,15 @@ let path = require("path");
|
|
|
10
10
|
*/
|
|
11
11
|
const NX_VERSION = {
|
|
12
12
|
"@a2a-js/sdk": "0.3.13",
|
|
13
|
-
"@aws/aws-distro-opentelemetry-node-autoinstrumentation": "0.
|
|
14
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
15
|
-
"@aws-sdk/client-bedrock-runtime": "3.
|
|
16
|
-
"@aws-sdk/client-s3": "3.
|
|
17
|
-
"@aws-sdk/client-sts": "3.
|
|
18
|
-
"@aws-sdk/credential-providers": "3.
|
|
19
|
-
"@aws-sdk/credential-provider-cognito-identity": "3.972.
|
|
20
|
-
"@aws-sdk/client-secrets-manager": "3.
|
|
21
|
-
"@aws-sdk/rds-signer": "3.
|
|
13
|
+
"@aws/aws-distro-opentelemetry-node-autoinstrumentation": "0.12.0",
|
|
14
|
+
"@aws-sdk/client-dynamodb": "3.1075.0",
|
|
15
|
+
"@aws-sdk/client-bedrock-runtime": "3.1075.0",
|
|
16
|
+
"@aws-sdk/client-s3": "3.1075.0",
|
|
17
|
+
"@aws-sdk/client-sts": "3.1075.0",
|
|
18
|
+
"@aws-sdk/credential-providers": "3.1075.0",
|
|
19
|
+
"@aws-sdk/credential-provider-cognito-identity": "3.972.48",
|
|
20
|
+
"@aws-sdk/client-secrets-manager": "3.1075.0",
|
|
21
|
+
"@aws-sdk/rds-signer": "3.1075.0",
|
|
22
22
|
"@aws-smithy/server-apigateway": "1.0.0-alpha.10",
|
|
23
23
|
"@aws-smithy/server-node": "1.0.0-alpha.10",
|
|
24
24
|
"@aws-lambda-powertools/logger": "2.33.1",
|
|
@@ -26,57 +26,57 @@ const NX_VERSION = {
|
|
|
26
26
|
"@aws-lambda-powertools/parameters": "2.33.1",
|
|
27
27
|
"@aws-lambda-powertools/tracer": "2.33.1",
|
|
28
28
|
"@aws-lambda-powertools/parser": "2.33.1",
|
|
29
|
-
"@aws-sdk/client-appconfigdata": "3.
|
|
30
|
-
"@middy/core": "7.
|
|
31
|
-
"@nxlv/python": "22.2.
|
|
29
|
+
"@aws-sdk/client-appconfigdata": "3.1075.0",
|
|
30
|
+
"@middy/core": "7.7.0",
|
|
31
|
+
"@nxlv/python": "22.2.1",
|
|
32
32
|
"@nx-extend/terraform": "10.2.1",
|
|
33
33
|
"@nx/devkit": "23.0.1",
|
|
34
34
|
"@nx/react": "23.0.1",
|
|
35
35
|
"create-nx-workspace": "23.0.1",
|
|
36
36
|
"@swc-node/register": "1.11.1",
|
|
37
|
-
"@swc/core": "1.15.
|
|
37
|
+
"@swc/core": "1.15.43",
|
|
38
38
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
39
39
|
"@modelcontextprotocol/inspector": "0.19.0",
|
|
40
|
-
"@ag-ui/aws-strands": "0.
|
|
40
|
+
"@ag-ui/aws-strands": "0.2.3",
|
|
41
41
|
"@ag-ui/client": "0.0.57",
|
|
42
42
|
"@ag-ui/core": "0.0.57",
|
|
43
43
|
"@ag-ui/encoder": "0.0.57",
|
|
44
44
|
"agent-chat-cli": "0.3.0",
|
|
45
|
-
"@copilotkit/react-core": "1.
|
|
45
|
+
"@copilotkit/react-core": "1.61.2",
|
|
46
46
|
rxjs: "7.8.2",
|
|
47
|
-
"@strands-agents/sdk": "1.
|
|
48
|
-
"@tanstack/react-router": "1.170.
|
|
47
|
+
"@strands-agents/sdk": "1.7.0",
|
|
48
|
+
"@tanstack/react-router": "1.170.16",
|
|
49
49
|
"@tanstack/router-plugin": "1.168.18",
|
|
50
50
|
"@tanstack/router-generator": "1.167.17",
|
|
51
51
|
"@tanstack/virtual-file-routes": "1.162.0",
|
|
52
52
|
"@tanstack/router-utils": "1.162.2",
|
|
53
|
-
"@cloudscape-design/board-components": "3.0.
|
|
54
|
-
"@cloudscape-design/chat-components": "1.0.
|
|
55
|
-
"@cloudscape-design/components": "3.0.
|
|
56
|
-
"@cloudscape-design/global-styles": "1.0.
|
|
57
|
-
"@tanstack/react-query": "5.101.
|
|
58
|
-
"@tanstack/react-query-devtools": "5.101.
|
|
59
|
-
"@trpc/tanstack-react-query": "11.
|
|
60
|
-
"@trpc/client": "11.
|
|
61
|
-
"@trpc/server": "11.
|
|
62
|
-
"@types/node": "25.9.
|
|
53
|
+
"@cloudscape-design/board-components": "3.0.197",
|
|
54
|
+
"@cloudscape-design/chat-components": "1.0.146",
|
|
55
|
+
"@cloudscape-design/components": "3.0.1320",
|
|
56
|
+
"@cloudscape-design/global-styles": "1.0.61",
|
|
57
|
+
"@tanstack/react-query": "5.101.2",
|
|
58
|
+
"@tanstack/react-query-devtools": "5.101.2",
|
|
59
|
+
"@trpc/tanstack-react-query": "11.18.0",
|
|
60
|
+
"@trpc/client": "11.18.0",
|
|
61
|
+
"@trpc/server": "11.18.0",
|
|
62
|
+
"@types/node": "25.9.4",
|
|
63
63
|
"@types/aws-lambda": "8.10.162",
|
|
64
64
|
"@types/cors": "2.8.19",
|
|
65
65
|
"@types/pg": "8.20.0",
|
|
66
66
|
"@types/ws": "8.18.1",
|
|
67
67
|
"@types/express": "5.0.6",
|
|
68
|
-
"@smithy/config-resolver": "4.
|
|
69
|
-
"@smithy/node-config-provider": "4.
|
|
70
|
-
"@smithy/node-http-handler": "4.
|
|
71
|
-
"@smithy/types": "4.
|
|
72
|
-
"@vitest/coverage-v8": "4.1.
|
|
73
|
-
"@vitest/ui": "4.1.
|
|
68
|
+
"@smithy/config-resolver": "4.6.2",
|
|
69
|
+
"@smithy/node-config-provider": "4.5.2",
|
|
70
|
+
"@smithy/node-http-handler": "4.8.2",
|
|
71
|
+
"@smithy/types": "4.15.0",
|
|
72
|
+
"@vitest/coverage-v8": "4.1.9",
|
|
73
|
+
"@vitest/ui": "4.1.9",
|
|
74
74
|
"@astrojs/react": "5.0.7",
|
|
75
75
|
"@astrojs/starlight": "0.40.0",
|
|
76
|
-
astro: "6.4.
|
|
76
|
+
astro: "6.4.8",
|
|
77
77
|
aws4fetch: "1.0.20",
|
|
78
|
-
"aws-cdk": "2.
|
|
79
|
-
"aws-cdk-lib": "2.
|
|
78
|
+
"aws-cdk": "2.1129.0",
|
|
79
|
+
"aws-cdk-lib": "2.260.0",
|
|
80
80
|
"aws-xray-sdk-core": "3.12.0",
|
|
81
81
|
constructs: "10.6.0",
|
|
82
82
|
cors: "2.8.6",
|
|
@@ -88,7 +88,7 @@ const NX_VERSION = {
|
|
|
88
88
|
esbuild: "0.28.1",
|
|
89
89
|
"event-source-polyfill": "1.0.31",
|
|
90
90
|
"@types/event-source-polyfill": "1.0.5",
|
|
91
|
-
"@biomejs/biome": "2.5.
|
|
91
|
+
"@biomejs/biome": "2.5.1",
|
|
92
92
|
"@prisma/adapter-mariadb": "7.8.0",
|
|
93
93
|
"@prisma/adapter-pg": "7.8.0",
|
|
94
94
|
"@prisma/client": "7.8.0",
|
|
@@ -104,27 +104,27 @@ const NX_VERSION = {
|
|
|
104
104
|
ncp: "2.0.0",
|
|
105
105
|
"npm-check-updates": "19.6.6",
|
|
106
106
|
"oidc-client-ts": "3.5.0",
|
|
107
|
-
pg: "8.
|
|
107
|
+
pg: "8.22.0",
|
|
108
108
|
prisma: "7.8.0",
|
|
109
109
|
"react-oidc-context": "3.3.1",
|
|
110
110
|
react: "19.2.7",
|
|
111
111
|
"react-dom": "19.2.7",
|
|
112
112
|
rimraf: "6.1.3",
|
|
113
|
-
rolldown: "1.1.
|
|
113
|
+
rolldown: "1.1.3",
|
|
114
114
|
"simple-git": "3.36.0",
|
|
115
115
|
"source-map-support": "0.5.21",
|
|
116
116
|
"starlight-blog": "0.26.1",
|
|
117
117
|
tailwindcss: "4.2.2",
|
|
118
118
|
"@tailwindcss/vite": "4.2.2",
|
|
119
119
|
tsx: "4.22.4",
|
|
120
|
-
"lucide-react": "1.
|
|
121
|
-
"radix-ui": "1.
|
|
122
|
-
shadcn: "4.
|
|
120
|
+
"lucide-react": "1.22.0",
|
|
121
|
+
"radix-ui": "1.6.0",
|
|
122
|
+
shadcn: "4.12.0",
|
|
123
123
|
"tw-animate-css": "1.4.0",
|
|
124
124
|
"tailwind-merge": "3.6.0",
|
|
125
|
-
vite: "8.0
|
|
125
|
+
vite: "8.1.0",
|
|
126
126
|
typescript: "6.0.3",
|
|
127
|
-
vitest: "4.1.
|
|
127
|
+
vitest: "4.1.9",
|
|
128
128
|
zod: "4.4.3",
|
|
129
129
|
ws: "8.21.0"
|
|
130
130
|
}["create-nx-workspace"];
|
|
@@ -147,6 +147,18 @@ const detectPackageManager = () => {
|
|
|
147
147
|
if (userAgent.startsWith("npm/")) return "npm";
|
|
148
148
|
};
|
|
149
149
|
const shouldSkipGit = (flagArgs) => flagArgs.some((a) => a === "--skipGit" || a === "--skipGit=true");
|
|
150
|
+
/**
|
|
151
|
+
* Determine whether the given directory is already inside a git repository.
|
|
152
|
+
*/
|
|
153
|
+
const isGitRepo = (dir) => {
|
|
154
|
+
if (!(0, fs.existsSync)(dir)) return false;
|
|
155
|
+
const result = (0, child_process.spawnSync)("git", ["rev-parse", "--is-inside-work-tree"], {
|
|
156
|
+
cwd: dir,
|
|
157
|
+
stdio: "pipe",
|
|
158
|
+
shell: process.platform === "win32"
|
|
159
|
+
});
|
|
160
|
+
return result.status === 0 && result.stdout?.toString().trim() === "true";
|
|
161
|
+
};
|
|
150
162
|
const buildArgs = (args) => {
|
|
151
163
|
const positionalArgs = args.filter((a) => !a.startsWith("-"));
|
|
152
164
|
const flagArgs = args.filter((a) => a.startsWith("-"));
|
|
@@ -214,7 +226,10 @@ const createNxWorkspace = (args) => {
|
|
|
214
226
|
if (result.status !== 0) return result.status ?? 1;
|
|
215
227
|
if (!skipGit) {
|
|
216
228
|
const workspaceName = args.filter((a) => !a.startsWith("-"))[0];
|
|
217
|
-
if (workspaceName)
|
|
229
|
+
if (workspaceName) {
|
|
230
|
+
const workspaceDir = (0, path.resolve)(workspaceName);
|
|
231
|
+
if (!isGitRepo(workspaceDir)) initGitRepo(workspaceDir);
|
|
232
|
+
}
|
|
218
233
|
}
|
|
219
234
|
return 0;
|
|
220
235
|
};
|