@aws/create-nx-workspace 0.120.0 → 0.122.0
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 +44 -43
- package/package.json +1 -1
package/bin/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
let child_process = require("child_process");
|
|
3
|
+
let fs = require("fs");
|
|
3
4
|
let path = require("path");
|
|
4
5
|
//#endregion
|
|
5
6
|
//#region src/create-nx-workspace.ts
|
|
@@ -10,28 +11,28 @@ let path = require("path");
|
|
|
10
11
|
const NX_VERSION = {
|
|
11
12
|
"@a2a-js/sdk": "0.3.13",
|
|
12
13
|
"@aws/aws-distro-opentelemetry-node-autoinstrumentation": "0.11.0",
|
|
13
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
14
|
-
"@aws-sdk/client-bedrock-runtime": "3.
|
|
15
|
-
"@aws-sdk/client-s3": "3.
|
|
16
|
-
"@aws-sdk/client-sts": "3.
|
|
17
|
-
"@aws-sdk/credential-providers": "3.
|
|
18
|
-
"@aws-sdk/credential-provider-cognito-identity": "3.972.
|
|
19
|
-
"@aws-sdk/client-secrets-manager": "3.
|
|
20
|
-
"@aws-sdk/rds-signer": "3.
|
|
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",
|
|
21
22
|
"@aws-smithy/server-apigateway": "1.0.0-alpha.10",
|
|
22
23
|
"@aws-smithy/server-node": "1.0.0-alpha.10",
|
|
23
|
-
"@aws-lambda-powertools/logger": "2.33.
|
|
24
|
-
"@aws-lambda-powertools/metrics": "2.33.
|
|
25
|
-
"@aws-lambda-powertools/parameters": "2.33.
|
|
26
|
-
"@aws-lambda-powertools/tracer": "2.33.
|
|
27
|
-
"@aws-lambda-powertools/parser": "2.33.
|
|
28
|
-
"@aws-sdk/client-appconfigdata": "3.
|
|
24
|
+
"@aws-lambda-powertools/logger": "2.33.1",
|
|
25
|
+
"@aws-lambda-powertools/metrics": "2.33.1",
|
|
26
|
+
"@aws-lambda-powertools/parameters": "2.33.1",
|
|
27
|
+
"@aws-lambda-powertools/tracer": "2.33.1",
|
|
28
|
+
"@aws-lambda-powertools/parser": "2.33.1",
|
|
29
|
+
"@aws-sdk/client-appconfigdata": "3.1058.0",
|
|
29
30
|
"@middy/core": "7.6.5",
|
|
30
31
|
"@nxlv/python": "22.1.4",
|
|
31
32
|
"@nx-extend/terraform": "10.2.1",
|
|
32
|
-
"@nx/devkit": "22.7.
|
|
33
|
-
"@nx/react": "22.7.
|
|
34
|
-
"create-nx-workspace": "22.7.
|
|
33
|
+
"@nx/devkit": "22.7.5",
|
|
34
|
+
"@nx/react": "22.7.5",
|
|
35
|
+
"create-nx-workspace": "22.7.5",
|
|
35
36
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
36
37
|
"@modelcontextprotocol/inspector": "0.19.0",
|
|
37
38
|
"@ag-ui/aws-strands": "0.1.0",
|
|
@@ -39,17 +40,17 @@ const NX_VERSION = {
|
|
|
39
40
|
"@ag-ui/core": "0.0.53",
|
|
40
41
|
"@ag-ui/encoder": "0.0.53",
|
|
41
42
|
"agent-chat-cli": "0.2.0",
|
|
42
|
-
"@copilotkit/react-core": "1.
|
|
43
|
+
"@copilotkit/react-core": "1.59.2",
|
|
43
44
|
rxjs: "7.8.2",
|
|
44
45
|
"@strands-agents/sdk": "1.3.0",
|
|
45
|
-
"@tanstack/react-router": "1.170.
|
|
46
|
-
"@tanstack/router-plugin": "1.168.
|
|
47
|
-
"@tanstack/router-generator": "1.167.
|
|
46
|
+
"@tanstack/react-router": "1.170.10",
|
|
47
|
+
"@tanstack/router-plugin": "1.168.13",
|
|
48
|
+
"@tanstack/router-generator": "1.167.12",
|
|
48
49
|
"@tanstack/virtual-file-routes": "1.162.0",
|
|
49
50
|
"@tanstack/router-utils": "1.162.1",
|
|
50
|
-
"@cloudscape-design/board-components": "3.0.
|
|
51
|
-
"@cloudscape-design/chat-components": "1.0.
|
|
52
|
-
"@cloudscape-design/components": "3.0.
|
|
51
|
+
"@cloudscape-design/board-components": "3.0.187",
|
|
52
|
+
"@cloudscape-design/chat-components": "1.0.136",
|
|
53
|
+
"@cloudscape-design/components": "3.0.1304",
|
|
53
54
|
"@cloudscape-design/global-styles": "1.0.59",
|
|
54
55
|
"@tanstack/react-query": "5.100.14",
|
|
55
56
|
"@tanstack/react-query-devtools": "5.100.14",
|
|
@@ -62,17 +63,17 @@ const NX_VERSION = {
|
|
|
62
63
|
"@types/pg": "8.20.0",
|
|
63
64
|
"@types/ws": "8.18.1",
|
|
64
65
|
"@types/express": "5.0.6",
|
|
65
|
-
"@smithy/config-resolver": "4.5.
|
|
66
|
-
"@smithy/node-config-provider": "4.4.
|
|
67
|
-
"@smithy/node-http-handler": "4.7.
|
|
68
|
-
"@smithy/types": "4.14.
|
|
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",
|
|
69
70
|
"@vitest/coverage-v8": "4.1.7",
|
|
70
71
|
"@vitest/ui": "4.1.7",
|
|
71
|
-
"@astrojs/react": "5.0.
|
|
72
|
+
"@astrojs/react": "5.0.6",
|
|
72
73
|
"@astrojs/starlight": "0.39.2",
|
|
73
|
-
astro: "6.
|
|
74
|
+
astro: "6.4.2",
|
|
74
75
|
aws4fetch: "1.0.20",
|
|
75
|
-
"aws-cdk": "2.
|
|
76
|
+
"aws-cdk": "2.1125.0",
|
|
76
77
|
"aws-cdk-lib": "2.257.0",
|
|
77
78
|
"aws-xray-sdk-core": "3.12.0",
|
|
78
79
|
constructs: "10.6.0",
|
|
@@ -81,23 +82,23 @@ const NX_VERSION = {
|
|
|
81
82
|
"class-variance-authority": "0.7.1",
|
|
82
83
|
clsx: "2.1.1",
|
|
83
84
|
commander: "14.0.3",
|
|
84
|
-
electrodb: "3.
|
|
85
|
+
electrodb: "3.9.0",
|
|
85
86
|
esbuild: "0.28.0",
|
|
86
87
|
"event-source-polyfill": "1.0.31",
|
|
87
88
|
"@types/event-source-polyfill": "1.0.5",
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
89
|
-
"@typescript-eslint/parser": "8.
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "8.60.1",
|
|
90
|
+
"@typescript-eslint/parser": "8.60.1",
|
|
90
91
|
"@prisma/adapter-mariadb": "7.8.0",
|
|
91
92
|
"@prisma/adapter-pg": "7.8.0",
|
|
92
93
|
"@prisma/client": "7.8.0",
|
|
93
|
-
"eslint-plugin-prettier": "5.5.
|
|
94
|
+
"eslint-plugin-prettier": "5.5.6",
|
|
94
95
|
express: "5.2.1",
|
|
95
96
|
"fast-glob": "3.3.3",
|
|
96
97
|
husky: "9.1.7",
|
|
97
98
|
"fs-extra": "11.3.5",
|
|
98
99
|
"@types/fs-extra": "11.0.4",
|
|
99
100
|
"jsonc-eslint-parser": "3.1.0",
|
|
100
|
-
"typescript-eslint": "8.
|
|
101
|
+
"typescript-eslint": "8.60.1",
|
|
101
102
|
"make-dir-cli": "4.0.0",
|
|
102
103
|
mariadb: "3.5.2",
|
|
103
104
|
ncp: "2.0.0",
|
|
@@ -107,8 +108,8 @@ const NX_VERSION = {
|
|
|
107
108
|
pg: "8.21.0",
|
|
108
109
|
prisma: "7.8.0",
|
|
109
110
|
"react-oidc-context": "3.3.1",
|
|
110
|
-
react: "19.2.
|
|
111
|
-
"react-dom": "19.2.
|
|
111
|
+
react: "19.2.7",
|
|
112
|
+
"react-dom": "19.2.7",
|
|
112
113
|
rimraf: "6.1.3",
|
|
113
114
|
rolldown: "1.0.2",
|
|
114
115
|
"simple-git": "3.36.0",
|
|
@@ -116,10 +117,10 @@ const NX_VERSION = {
|
|
|
116
117
|
"starlight-blog": "0.26.1",
|
|
117
118
|
tailwindcss: "4.3.0",
|
|
118
119
|
"@tailwindcss/vite": "4.3.0",
|
|
119
|
-
tsx: "4.22.
|
|
120
|
-
"lucide-react": "1.
|
|
120
|
+
tsx: "4.22.4",
|
|
121
|
+
"lucide-react": "1.17.0",
|
|
121
122
|
"radix-ui": "1.4.3",
|
|
122
|
-
shadcn: "4.
|
|
123
|
+
shadcn: "4.10.0",
|
|
123
124
|
"tw-animate-css": "1.4.0",
|
|
124
125
|
"tailwind-merge": "3.6.0",
|
|
125
126
|
vite: "8.0.14",
|
|
@@ -128,7 +129,7 @@ const NX_VERSION = {
|
|
|
128
129
|
zod: "4.4.3",
|
|
129
130
|
ws: "8.21.0"
|
|
130
131
|
}["create-nx-workspace"];
|
|
131
|
-
const PRESET =
|
|
132
|
+
const PRESET = `@aws/nx-plugin@${JSON.parse((0, fs.readFileSync)((0, path.resolve)(__dirname, "..", "package.json"), "utf-8")).version}`;
|
|
132
133
|
const DEFAULT_FLAGS = ["--ci=skip", "--analytics=false"];
|
|
133
134
|
/**
|
|
134
135
|
* Detect the package manager from the npm_config_user_agent environment variable.
|
|
@@ -190,7 +191,7 @@ const initGitRepo = (dir) => {
|
|
|
190
191
|
*/
|
|
191
192
|
const createNxWorkspace = (args) => {
|
|
192
193
|
if (args.some((a) => a.startsWith("--preset"))) {
|
|
193
|
-
console.error(
|
|
194
|
+
console.error("Error: --preset cannot be used with @aws/create-nx-workspace.\nThis package always creates a workspace with the @aws/nx-plugin preset.\nTo use a different preset, run create-nx-workspace directly:\n\n npx create-nx-workspace <name> --preset=<your-preset>\n");
|
|
194
195
|
return 1;
|
|
195
196
|
}
|
|
196
197
|
const skipGit = shouldSkipGit(args.filter((a) => a.startsWith("-")));
|