@aws/create-nx-workspace 1.0.0-rc.3 → 1.0.0-rc.30

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 +86 -68
  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.1058.0",
15
- "@aws-sdk/client-bedrock-runtime": "3.1058.0",
16
- "@aws-sdk/client-s3": "3.1058.0",
17
- "@aws-sdk/client-sts": "3.1058.0",
18
- "@aws-sdk/credential-providers": "3.1058.0",
19
- "@aws-sdk/credential-provider-cognito-identity": "3.972.38",
20
- "@aws-sdk/client-secrets-manager": "3.1058.0",
21
- "@aws-sdk/rds-signer": "3.1058.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.1058.0",
30
- "@middy/core": "7.6.5",
31
- "@nxlv/python": "22.1.4",
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",
39
- "@ag-ui/client": "0.0.53",
40
- "@ag-ui/core": "0.0.53",
41
- "@ag-ui/encoder": "0.0.53",
42
- "agent-chat-cli": "0.2.0",
43
- "@copilotkit/react-core": "1.59.2",
40
+ "@ag-ui/aws-strands": "0.2.3",
41
+ "@ag-ui/client": "0.0.57",
42
+ "@ag-ui/core": "0.0.57",
43
+ "@ag-ui/encoder": "0.0.57",
44
+ "agent-chat-cli": "0.3.0",
45
+ "@copilotkit/react-core": "1.61.2",
44
46
  rxjs: "7.8.2",
45
- "@strands-agents/sdk": "1.3.0",
46
- "@tanstack/react-router": "1.170.10",
47
- "@tanstack/router-plugin": "1.168.13",
48
- "@tanstack/router-generator": "1.167.12",
47
+ "@strands-agents/sdk": "1.7.0",
48
+ "@tanstack/react-router": "1.170.16",
49
+ "@tanstack/router-plugin": "1.168.18",
50
+ "@tanstack/router-generator": "1.167.17",
49
51
  "@tanstack/virtual-file-routes": "1.162.0",
50
- "@tanstack/router-utils": "1.162.1",
51
- "@cloudscape-design/board-components": "3.0.187",
52
- "@cloudscape-design/chat-components": "1.0.136",
53
- "@cloudscape-design/components": "3.0.1304",
54
- "@cloudscape-design/global-styles": "1.0.59",
55
- "@tanstack/react-query": "5.100.14",
56
- "@tanstack/react-query-devtools": "5.100.14",
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.1",
61
- "@types/aws-lambda": "8.10.161",
52
+ "@tanstack/router-utils": "1.162.2",
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
+ "@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.6",
67
- "@smithy/node-config-provider": "4.4.6",
68
- "@smithy/node-http-handler": "4.7.6",
69
- "@smithy/types": "4.14.3",
70
- "@vitest/coverage-v8": "4.1.7",
71
- "@vitest/ui": "4.1.7",
72
- "@astrojs/react": "5.0.6",
73
- "@astrojs/starlight": "0.39.2",
74
- astro: "6.4.2",
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
+ "@astrojs/react": "5.0.7",
75
+ "@astrojs/starlight": "0.40.0",
76
+ astro: "6.4.8",
75
77
  aws4fetch: "1.0.20",
76
- "aws-cdk": "2.1125.0",
77
- "aws-cdk-lib": "2.257.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",
@@ -82,55 +84,56 @@ const NX_VERSION = {
82
84
  "class-variance-authority": "0.7.1",
83
85
  clsx: "2.1.1",
84
86
  commander: "14.0.3",
85
- electrodb: "3.9.0",
86
- esbuild: "0.28.0",
87
+ electrodb: "3.9.1",
88
+ esbuild: "0.28.1",
87
89
  "event-source-polyfill": "1.0.31",
88
90
  "@types/event-source-polyfill": "1.0.5",
89
- "@typescript-eslint/eslint-plugin": "8.60.1",
90
- "@typescript-eslint/parser": "8.60.1",
91
+ "@biomejs/biome": "2.5.1",
91
92
  "@prisma/adapter-mariadb": "7.8.0",
92
93
  "@prisma/adapter-pg": "7.8.0",
93
94
  "@prisma/client": "7.8.0",
94
- "eslint-plugin-prettier": "5.5.6",
95
+ ejs: "6.0.1",
96
+ "@types/ejs": "3.1.5",
95
97
  express: "5.2.1",
96
98
  "fast-glob": "3.3.3",
97
99
  husky: "9.1.7",
98
100
  "fs-extra": "11.3.5",
99
101
  "@types/fs-extra": "11.0.4",
100
- "jsonc-eslint-parser": "3.1.0",
101
- "typescript-eslint": "8.60.1",
102
102
  "make-dir-cli": "4.0.0",
103
- mariadb: "3.5.2",
103
+ mariadb: "3.5.3",
104
104
  ncp: "2.0.0",
105
105
  "npm-check-updates": "19.6.6",
106
106
  "oidc-client-ts": "3.5.0",
107
- prettier: "3.8.3",
108
- pg: "8.21.0",
107
+ pg: "8.22.0",
109
108
  prisma: "7.8.0",
110
109
  "react-oidc-context": "3.3.1",
111
110
  react: "19.2.7",
112
111
  "react-dom": "19.2.7",
113
112
  rimraf: "6.1.3",
114
- rolldown: "1.0.2",
113
+ rolldown: "1.1.3",
115
114
  "simple-git": "3.36.0",
116
115
  "source-map-support": "0.5.21",
117
116
  "starlight-blog": "0.26.1",
118
- tailwindcss: "4.3.0",
119
- "@tailwindcss/vite": "4.3.0",
117
+ tailwindcss: "4.2.2",
118
+ "@tailwindcss/vite": "4.2.2",
120
119
  tsx: "4.22.4",
121
- "lucide-react": "1.17.0",
122
- "radix-ui": "1.4.3",
123
- shadcn: "4.10.0",
120
+ "lucide-react": "1.22.0",
121
+ "radix-ui": "1.6.0",
122
+ shadcn: "4.12.0",
124
123
  "tw-animate-css": "1.4.0",
125
124
  "tailwind-merge": "3.6.0",
126
- vite: "8.0.14",
125
+ vite: "8.1.0",
127
126
  typescript: "6.0.3",
128
- vitest: "4.1.7",
127
+ vitest: "4.1.9",
129
128
  zod: "4.4.3",
130
129
  ws: "8.21.0"
131
130
  }["create-nx-workspace"];
132
131
  const PRESET = `@aws/nx-plugin@${JSON.parse((0, fs.readFileSync)((0, path.resolve)(__dirname, "..", "package.json"), "utf-8")).version}`;
133
- const DEFAULT_FLAGS = ["--ci=skip", "--analytics=false"];
132
+ const DEFAULT_FLAGS = [
133
+ "--ci=skip",
134
+ "--analytics=false",
135
+ "--trustThirdPartyPreset"
136
+ ];
134
137
  /**
135
138
  * Detect the package manager from the npm_config_user_agent environment variable.
136
139
  * This is set by package managers when running scripts/bins.
@@ -144,6 +147,18 @@ const detectPackageManager = () => {
144
147
  if (userAgent.startsWith("npm/")) return "npm";
145
148
  };
146
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
+ };
147
162
  const buildArgs = (args) => {
148
163
  const positionalArgs = args.filter((a) => !a.startsWith("-"));
149
164
  const flagArgs = args.filter((a) => a.startsWith("-"));
@@ -211,7 +226,10 @@ const createNxWorkspace = (args) => {
211
226
  if (result.status !== 0) return result.status ?? 1;
212
227
  if (!skipGit) {
213
228
  const workspaceName = args.filter((a) => !a.startsWith("-"))[0];
214
- if (workspaceName) initGitRepo((0, path.resolve)(workspaceName));
229
+ if (workspaceName) {
230
+ const workspaceDir = (0, path.resolve)(workspaceName);
231
+ if (!isGitRepo(workspaceDir)) initGitRepo(workspaceDir);
232
+ }
215
233
  }
216
234
  return 0;
217
235
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/create-nx-workspace",
3
- "version": "1.0.0-rc.3",
3
+ "version": "1.0.0-rc.30",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",