@aws/create-nx-workspace 1.0.0-rc.46 → 1.0.0-rc.48
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 +11 -6
- package/package.json +1 -1
package/bin/index.cjs
CHANGED
|
@@ -12,7 +12,11 @@ const NX_VERSION = {
|
|
|
12
12
|
"@a2a-js/sdk": "0.3.14",
|
|
13
13
|
"@aws/aws-distro-opentelemetry-node-autoinstrumentation": "0.12.0",
|
|
14
14
|
"@opentelemetry/propagator-jaeger": "2.9.0",
|
|
15
|
+
minimatch: "10.2.5",
|
|
15
16
|
"@aws-sdk/client-dynamodb": "3.1090.0",
|
|
17
|
+
"@aws-sdk/client-api-gateway": "3.1090.0",
|
|
18
|
+
"@aws-sdk/client-iam": "3.1090.0",
|
|
19
|
+
"@aws-sdk/client-bedrock-agentcore": "3.1090.0",
|
|
16
20
|
"@aws-sdk/client-bedrock-runtime": "3.1090.0",
|
|
17
21
|
"@aws-sdk/client-s3": "3.1090.0",
|
|
18
22
|
"@aws-sdk/client-sts": "3.1090.0",
|
|
@@ -163,20 +167,21 @@ const isGitRepo = (dir) => {
|
|
|
163
167
|
return result.status === 0 && result.stdout?.toString().trim() === "true";
|
|
164
168
|
};
|
|
165
169
|
const buildArgs = (args) => {
|
|
166
|
-
const
|
|
167
|
-
const
|
|
170
|
+
const firstFlagIndex = args.findIndex((a) => a.startsWith("-"));
|
|
171
|
+
const positionalArgs = firstFlagIndex === -1 ? args : args.slice(0, firstFlagIndex);
|
|
172
|
+
const restArgs = firstFlagIndex === -1 ? [] : args.slice(firstFlagIndex);
|
|
168
173
|
const defaultFlags = [...DEFAULT_FLAGS, "--skipGit"];
|
|
169
|
-
if (!
|
|
174
|
+
if (!restArgs.some((a) => a.startsWith("--pm"))) {
|
|
170
175
|
const pm = detectPackageManager();
|
|
171
176
|
if (pm) defaultFlags.push(`--pm=${pm}`);
|
|
172
177
|
}
|
|
173
|
-
const
|
|
174
|
-
const flagsToAdd = defaultFlags.filter((flag) => !
|
|
178
|
+
const userArgsWithoutSkipGit = restArgs.filter((a) => !a.startsWith("--skipGit"));
|
|
179
|
+
const flagsToAdd = defaultFlags.filter((flag) => !userArgsWithoutSkipGit.some((a) => a.startsWith(flag.split("=")[0])));
|
|
175
180
|
return [
|
|
176
181
|
...positionalArgs,
|
|
177
182
|
`--preset=${PRESET}`,
|
|
178
183
|
...flagsToAdd,
|
|
179
|
-
...
|
|
184
|
+
...userArgsWithoutSkipGit
|
|
180
185
|
];
|
|
181
186
|
};
|
|
182
187
|
const initGitRepo = (dir) => {
|