@aws/create-nx-workspace 1.0.0-rc.23 → 1.0.0-rc.25
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 +69 -48
- 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,55 +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
|
-
"@nx/devkit": "
|
|
34
|
-
"@nx/react": "
|
|
35
|
-
"create-nx-workspace": "
|
|
33
|
+
"@nx/devkit": "23.0.1",
|
|
34
|
+
"@nx/react": "23.0.1",
|
|
35
|
+
"create-nx-workspace": "23.0.1",
|
|
36
|
+
"@swc-node/register": "1.11.1",
|
|
37
|
+
"@swc/core": "1.15.43",
|
|
36
38
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
37
39
|
"@modelcontextprotocol/inspector": "0.19.0",
|
|
38
|
-
"@ag-ui/aws-strands": "0.
|
|
40
|
+
"@ag-ui/aws-strands": "0.2.3",
|
|
39
41
|
"@ag-ui/client": "0.0.57",
|
|
40
42
|
"@ag-ui/core": "0.0.57",
|
|
41
43
|
"@ag-ui/encoder": "0.0.57",
|
|
42
44
|
"agent-chat-cli": "0.3.0",
|
|
43
|
-
"@copilotkit/react-core": "1.
|
|
45
|
+
"@copilotkit/react-core": "1.61.2",
|
|
44
46
|
rxjs: "7.8.2",
|
|
45
|
-
"@strands-agents/sdk": "1.
|
|
46
|
-
"@tanstack/react-router": "1.170.
|
|
47
|
+
"@strands-agents/sdk": "1.7.0",
|
|
48
|
+
"@tanstack/react-router": "1.170.16",
|
|
47
49
|
"@tanstack/router-plugin": "1.168.18",
|
|
48
50
|
"@tanstack/router-generator": "1.167.17",
|
|
49
51
|
"@tanstack/virtual-file-routes": "1.162.0",
|
|
50
52
|
"@tanstack/router-utils": "1.162.2",
|
|
51
|
-
"@cloudscape-design/board-components": "3.0.
|
|
52
|
-
"@cloudscape-design/chat-components": "1.0.
|
|
53
|
-
"@cloudscape-design/components": "3.0.
|
|
54
|
-
"@cloudscape-design/global-styles": "1.0.
|
|
55
|
-
"@tanstack/react-query": "5.101.
|
|
56
|
-
"@tanstack/react-query-devtools": "5.101.
|
|
57
|
-
"@trpc/tanstack-react-query": "11.
|
|
58
|
-
"@trpc/client": "11.
|
|
59
|
-
"@trpc/server": "11.
|
|
60
|
-
"@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",
|
|
61
63
|
"@types/aws-lambda": "8.10.162",
|
|
62
64
|
"@types/cors": "2.8.19",
|
|
63
65
|
"@types/pg": "8.20.0",
|
|
64
66
|
"@types/ws": "8.18.1",
|
|
65
67
|
"@types/express": "5.0.6",
|
|
66
|
-
"@smithy/config-resolver": "4.
|
|
67
|
-
"@smithy/node-config-provider": "4.
|
|
68
|
-
"@smithy/node-http-handler": "4.
|
|
69
|
-
"@smithy/types": "4.
|
|
70
|
-
"@vitest/coverage-v8": "4.1.
|
|
71
|
-
"@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",
|
|
72
74
|
"@astrojs/react": "5.0.7",
|
|
73
75
|
"@astrojs/starlight": "0.40.0",
|
|
74
|
-
astro: "6.4.
|
|
76
|
+
astro: "6.4.8",
|
|
75
77
|
aws4fetch: "1.0.20",
|
|
76
|
-
"aws-cdk": "2.
|
|
77
|
-
"aws-cdk-lib": "2.
|
|
78
|
+
"aws-cdk": "2.1129.0",
|
|
79
|
+
"aws-cdk-lib": "2.260.0",
|
|
78
80
|
"aws-xray-sdk-core": "3.12.0",
|
|
79
81
|
constructs: "10.6.0",
|
|
80
82
|
cors: "2.8.6",
|
|
@@ -86,7 +88,7 @@ const NX_VERSION = {
|
|
|
86
88
|
esbuild: "0.28.1",
|
|
87
89
|
"event-source-polyfill": "1.0.31",
|
|
88
90
|
"@types/event-source-polyfill": "1.0.5",
|
|
89
|
-
"@biomejs/biome": "2.5.
|
|
91
|
+
"@biomejs/biome": "2.5.1",
|
|
90
92
|
"@prisma/adapter-mariadb": "7.8.0",
|
|
91
93
|
"@prisma/adapter-pg": "7.8.0",
|
|
92
94
|
"@prisma/client": "7.8.0",
|
|
@@ -102,32 +104,36 @@ const NX_VERSION = {
|
|
|
102
104
|
ncp: "2.0.0",
|
|
103
105
|
"npm-check-updates": "19.6.6",
|
|
104
106
|
"oidc-client-ts": "3.5.0",
|
|
105
|
-
pg: "8.
|
|
107
|
+
pg: "8.22.0",
|
|
106
108
|
prisma: "7.8.0",
|
|
107
109
|
"react-oidc-context": "3.3.1",
|
|
108
110
|
react: "19.2.7",
|
|
109
111
|
"react-dom": "19.2.7",
|
|
110
112
|
rimraf: "6.1.3",
|
|
111
|
-
rolldown: "1.1.
|
|
113
|
+
rolldown: "1.1.3",
|
|
112
114
|
"simple-git": "3.36.0",
|
|
113
115
|
"source-map-support": "0.5.21",
|
|
114
116
|
"starlight-blog": "0.26.1",
|
|
115
117
|
tailwindcss: "4.2.2",
|
|
116
118
|
"@tailwindcss/vite": "4.2.2",
|
|
117
119
|
tsx: "4.22.4",
|
|
118
|
-
"lucide-react": "1.
|
|
119
|
-
"radix-ui": "1.
|
|
120
|
-
shadcn: "4.
|
|
120
|
+
"lucide-react": "1.22.0",
|
|
121
|
+
"radix-ui": "1.6.0",
|
|
122
|
+
shadcn: "4.12.0",
|
|
121
123
|
"tw-animate-css": "1.4.0",
|
|
122
124
|
"tailwind-merge": "3.6.0",
|
|
123
|
-
vite: "8.0
|
|
125
|
+
vite: "8.1.0",
|
|
124
126
|
typescript: "6.0.3",
|
|
125
|
-
vitest: "4.1.
|
|
127
|
+
vitest: "4.1.9",
|
|
126
128
|
zod: "4.4.3",
|
|
127
129
|
ws: "8.21.0"
|
|
128
130
|
}["create-nx-workspace"];
|
|
129
131
|
const PRESET = `@aws/nx-plugin@${JSON.parse((0, fs.readFileSync)((0, path.resolve)(__dirname, "..", "package.json"), "utf-8")).version}`;
|
|
130
|
-
const DEFAULT_FLAGS = [
|
|
132
|
+
const DEFAULT_FLAGS = [
|
|
133
|
+
"--ci=skip",
|
|
134
|
+
"--analytics=false",
|
|
135
|
+
"--trustThirdPartyPreset"
|
|
136
|
+
];
|
|
131
137
|
/**
|
|
132
138
|
* Detect the package manager from the npm_config_user_agent environment variable.
|
|
133
139
|
* This is set by package managers when running scripts/bins.
|
|
@@ -141,6 +147,18 @@ const detectPackageManager = () => {
|
|
|
141
147
|
if (userAgent.startsWith("npm/")) return "npm";
|
|
142
148
|
};
|
|
143
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
|
+
};
|
|
144
162
|
const buildArgs = (args) => {
|
|
145
163
|
const positionalArgs = args.filter((a) => !a.startsWith("-"));
|
|
146
164
|
const flagArgs = args.filter((a) => a.startsWith("-"));
|
|
@@ -208,7 +226,10 @@ const createNxWorkspace = (args) => {
|
|
|
208
226
|
if (result.status !== 0) return result.status ?? 1;
|
|
209
227
|
if (!skipGit) {
|
|
210
228
|
const workspaceName = args.filter((a) => !a.startsWith("-"))[0];
|
|
211
|
-
if (workspaceName)
|
|
229
|
+
if (workspaceName) {
|
|
230
|
+
const workspaceDir = (0, path.resolve)(workspaceName);
|
|
231
|
+
if (!isGitRepo(workspaceDir)) initGitRepo(workspaceDir);
|
|
232
|
+
}
|
|
212
233
|
}
|
|
213
234
|
return 0;
|
|
214
235
|
};
|