@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.
Files changed (2) hide show
  1. package/bin/index.cjs +69 -48
  2. 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.11.0",
14
- "@aws-sdk/client-dynamodb": "3.1068.0",
15
- "@aws-sdk/client-bedrock-runtime": "3.1068.0",
16
- "@aws-sdk/client-s3": "3.1068.0",
17
- "@aws-sdk/client-sts": "3.1068.0",
18
- "@aws-sdk/credential-providers": "3.1068.0",
19
- "@aws-sdk/credential-provider-cognito-identity": "3.972.45",
20
- "@aws-sdk/client-secrets-manager": "3.1068.0",
21
- "@aws-sdk/rds-signer": "3.1068.0",
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.1068.0",
30
- "@middy/core": "7.6.7",
31
- "@nxlv/python": "22.2.0",
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": "22.7.5",
34
- "@nx/react": "22.7.5",
35
- "create-nx-workspace": "22.7.5",
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.1.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.60.1",
45
+ "@copilotkit/react-core": "1.61.2",
44
46
  rxjs: "7.8.2",
45
- "@strands-agents/sdk": "1.5.0",
46
- "@tanstack/react-router": "1.170.15",
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.190",
52
- "@cloudscape-design/chat-components": "1.0.139",
53
- "@cloudscape-design/components": "3.0.1310",
54
- "@cloudscape-design/global-styles": "1.0.60",
55
- "@tanstack/react-query": "5.101.0",
56
- "@tanstack/react-query-devtools": "5.101.0",
57
- "@trpc/tanstack-react-query": "11.17.0",
58
- "@trpc/client": "11.17.0",
59
- "@trpc/server": "11.17.0",
60
- "@types/node": "25.9.3",
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.5.7",
67
- "@smithy/node-config-provider": "4.4.7",
68
- "@smithy/node-http-handler": "4.7.8",
69
- "@smithy/types": "4.14.4",
70
- "@vitest/coverage-v8": "4.1.8",
71
- "@vitest/ui": "4.1.8",
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.6",
76
+ astro: "6.4.8",
75
77
  aws4fetch: "1.0.20",
76
- "aws-cdk": "2.1126.0",
77
- "aws-cdk-lib": "2.259.0",
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.0",
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.21.0",
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.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.18.0",
119
- "radix-ui": "1.5.0",
120
- shadcn: "4.11.0",
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.16",
125
+ vite: "8.1.0",
124
126
  typescript: "6.0.3",
125
- vitest: "4.1.8",
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 = ["--ci=skip", "--analytics=false"];
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) initGitRepo((0, path.resolve)(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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/create-nx-workspace",
3
- "version": "1.0.0-rc.23",
3
+ "version": "1.0.0-rc.25",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",