@aws/nx-plugin 0.84.1 → 0.85.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/LICENSE-THIRD-PARTY +1674 -425
- package/package.json +8 -8
- package/src/infra/app/__snapshots__/generator.spec.ts.snap +28 -28
- package/src/infra/app/generator.js +2 -1
- package/src/infra/app/generator.js.map +1 -1
- package/src/mcp-server/schema.d.ts +2 -2
- package/src/preset/__snapshots__/generator.spec.ts.snap +14 -17
- package/src/preset/generator.js +10 -8
- package/src/preset/generator.js.map +1 -1
- package/src/py/fast-api/__snapshots__/generator.spec.ts.snap +0 -8
- package/src/py/lambda-function/__snapshots__/generator.spec.ts.snap +3 -9
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +4 -4
- package/src/py/strands-agent/__snapshots__/generator.spec.ts.snap +8 -8
- package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +0 -6
- package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +0 -12
- package/src/trpc/backend/generator.js +2 -1
- package/src/trpc/backend/generator.js.map +1 -1
- package/src/ts/lambda-function/__snapshots__/generator.spec.ts.snap +3 -9
- package/src/ts/lib/generator.js +2 -1
- package/src/ts/lib/generator.js.map +1 -1
- package/src/ts/lib/vitest.js +1 -1
- package/src/ts/lib/vitest.js.map +1 -1
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/nx-plugin/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +76 -76
- package/src/ts/react-website/app/generator.js +3 -2
- package/src/ts/react-website/app/generator.js.map +1 -1
- package/src/utils/api-constructs/files/cdk/app/apis/http/__apiNameKebabCase__.ts.template +0 -1
- package/src/utils/api-constructs/files/cdk/app/apis/rest/__apiNameKebabCase__.ts.template +0 -1
- package/src/utils/api-constructs/files/terraform/app/apis/http/__apiNameKebabCase__/__apiNameKebabCase__.tf.template +0 -1
- package/src/utils/api-constructs/files/terraform/app/apis/rest/__apiNameKebabCase__/__apiNameKebabCase__.tf.template +0 -1
- package/src/utils/function-constructs/files/cdk/app/lambda-functions/__functionNameKebabCase__.ts.template +1 -3
- package/src/utils/function-constructs/files/terraform/app/lambda-functions/__functionNameKebabCase__/__functionNameKebabCase__.tf.template +1 -3
- package/src/utils/pkg-manager.d.ts +26 -0
- package/src/utils/pkg-manager.js +20 -0
- package/src/utils/pkg-manager.js.map +1 -0
- package/src/utils/shared-constructs.js +2 -1
- package/src/utils/shared-constructs.js.map +1 -1
- package/src/utils/shared-infra-config.js +4 -3
- package/src/utils/shared-infra-config.js.map +1 -1
- package/src/utils/shared-scripts.js +2 -1
- package/src/utils/shared-scripts.js.map +1 -1
- package/src/utils/versions.d.ts +58 -57
- package/src/utils/versions.js +57 -56
- package/src/utils/versions.js.map +1 -1
|
@@ -443,7 +443,6 @@ export class TestApi<
|
|
|
443
443
|
timeout: Duration.seconds(30),
|
|
444
444
|
tracing: Tracing.ACTIVE,
|
|
445
445
|
environment: {
|
|
446
|
-
AWS_CONNECTION_REUSE_ENABLED: '1',
|
|
447
446
|
RUNTIME_CONFIG_APP_ID: rc.appConfigApplicationId,
|
|
448
447
|
},
|
|
449
448
|
},
|
|
@@ -645,7 +644,6 @@ export class TestApi<
|
|
|
645
644
|
timeout: Duration.seconds(30),
|
|
646
645
|
tracing: Tracing.ACTIVE,
|
|
647
646
|
environment: {
|
|
648
|
-
AWS_CONNECTION_REUSE_ENABLED: '1',
|
|
649
647
|
RUNTIME_CONFIG_APP_ID: rc.appConfigApplicationId,
|
|
650
648
|
},
|
|
651
649
|
},
|
|
@@ -851,7 +849,6 @@ export class TestApi<
|
|
|
851
849
|
timeout: Duration.seconds(30),
|
|
852
850
|
tracing: Tracing.ACTIVE,
|
|
853
851
|
environment: {
|
|
854
|
-
AWS_CONNECTION_REUSE_ENABLED: '1',
|
|
855
852
|
RUNTIME_CONFIG_APP_ID: rc.appConfigApplicationId,
|
|
856
853
|
},
|
|
857
854
|
},
|
|
@@ -1041,7 +1038,6 @@ export class TestApi<
|
|
|
1041
1038
|
timeout: Duration.seconds(30),
|
|
1042
1039
|
tracing: Tracing.ACTIVE,
|
|
1043
1040
|
environment: {
|
|
1044
|
-
AWS_CONNECTION_REUSE_ENABLED: '1',
|
|
1045
1041
|
RUNTIME_CONFIG_APP_ID: rc.appConfigApplicationId,
|
|
1046
1042
|
},
|
|
1047
1043
|
},
|
|
@@ -1366,7 +1362,6 @@ export class TestApi<
|
|
|
1366
1362
|
timeout: Duration.seconds(30),
|
|
1367
1363
|
tracing: Tracing.ACTIVE,
|
|
1368
1364
|
environment: {
|
|
1369
|
-
AWS_CONNECTION_REUSE_ENABLED: '1',
|
|
1370
1365
|
RUNTIME_CONFIG_APP_ID: rc.appConfigApplicationId,
|
|
1371
1366
|
},
|
|
1372
1367
|
},
|
|
@@ -2149,7 +2144,6 @@ export class TestApi<
|
|
|
2149
2144
|
timeout: Duration.seconds(30),
|
|
2150
2145
|
tracing: Tracing.ACTIVE,
|
|
2151
2146
|
environment: {
|
|
2152
|
-
AWS_CONNECTION_REUSE_ENABLED: '1',
|
|
2153
2147
|
RUNTIME_CONFIG_APP_ID: rc.appConfigApplicationId,
|
|
2154
2148
|
},
|
|
2155
2149
|
},
|
|
@@ -3076,7 +3070,6 @@ resource "aws_lambda_function" "api_lambda" {
|
|
|
3076
3070
|
|
|
3077
3071
|
environment {
|
|
3078
3072
|
variables = merge({
|
|
3079
|
-
AWS_CONNECTION_REUSE_ENABLED = "1"
|
|
3080
3073
|
}, var.env)
|
|
3081
3074
|
}
|
|
3082
3075
|
|
|
@@ -3707,7 +3700,6 @@ resource "aws_lambda_function" "api_lambda" {
|
|
|
3707
3700
|
|
|
3708
3701
|
environment {
|
|
3709
3702
|
variables = merge({
|
|
3710
|
-
AWS_CONNECTION_REUSE_ENABLED = "1"
|
|
3711
3703
|
}, var.env)
|
|
3712
3704
|
}
|
|
3713
3705
|
|
|
@@ -4325,7 +4317,6 @@ resource "aws_lambda_function" "api_lambda" {
|
|
|
4325
4317
|
|
|
4326
4318
|
environment {
|
|
4327
4319
|
variables = merge({
|
|
4328
|
-
AWS_CONNECTION_REUSE_ENABLED = "1"
|
|
4329
4320
|
}, var.env)
|
|
4330
4321
|
}
|
|
4331
4322
|
|
|
@@ -4833,7 +4824,6 @@ resource "aws_lambda_function" "api_lambda" {
|
|
|
4833
4824
|
|
|
4834
4825
|
environment {
|
|
4835
4826
|
variables = merge({
|
|
4836
|
-
AWS_CONNECTION_REUSE_ENABLED = "1"
|
|
4837
4827
|
}, var.env)
|
|
4838
4828
|
}
|
|
4839
4829
|
|
|
@@ -5472,7 +5462,6 @@ resource "aws_lambda_function" "api_lambda" {
|
|
|
5472
5462
|
|
|
5473
5463
|
environment {
|
|
5474
5464
|
variables = merge({
|
|
5475
|
-
AWS_CONNECTION_REUSE_ENABLED = "1"
|
|
5476
5465
|
}, var.env)
|
|
5477
5466
|
}
|
|
5478
5467
|
|
|
@@ -6113,7 +6102,6 @@ resource "aws_lambda_function" "api_lambda" {
|
|
|
6113
6102
|
|
|
6114
6103
|
environment {
|
|
6115
6104
|
variables = merge({
|
|
6116
|
-
AWS_CONNECTION_REUSE_ENABLED = "1"
|
|
6117
6105
|
}, var.env)
|
|
6118
6106
|
}
|
|
6119
6107
|
|
|
@@ -14,6 +14,7 @@ const npm_scope_1 = require("../../utils/npm-scope");
|
|
|
14
14
|
const versions_1 = require("../../utils/versions");
|
|
15
15
|
const names_1 = require("../../utils/names");
|
|
16
16
|
const format_1 = require("../../utils/format");
|
|
17
|
+
const pkg_manager_1 = require("../../utils/pkg-manager");
|
|
17
18
|
const object_1 = require("../../utils/object");
|
|
18
19
|
const nx_1 = require("../../utils/nx");
|
|
19
20
|
const metrics_1 = require("../../utils/metrics");
|
|
@@ -50,7 +51,7 @@ function tsTrpcApiGenerator(tree, options) {
|
|
|
50
51
|
const port = (0, port_1.assignPort)(tree, projectConfig, 2022);
|
|
51
52
|
const enhancedOptions = Object.assign({ backendProjectName, backendProjectAlias: (0, npm_scope_1.toScopeAlias)(backendProjectName), apiNameKebabCase,
|
|
52
53
|
apiNameClassName,
|
|
53
|
-
backendRoot, pkgMgrCmd: (0,
|
|
54
|
+
backendRoot, pkgMgrCmd: (0, pkg_manager_1.getPackageManagerDisplayCommands)().exec, apiGatewayEventType: getApiGatewayEventType(options), port }, options);
|
|
54
55
|
(0, api_constructs_1.addApiGatewayInfra)(tree, {
|
|
55
56
|
apiProjectName: backendProjectName,
|
|
56
57
|
apiNameClassName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/trpc/backend/generator.ts"],"names":[],"mappings":";;;AA6CA,gDAwIC;;AArLD;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/trpc/backend/generator.ts"],"names":[],"mappings":";;;AA6CA,gDAwIC;;AArLD;;;GAGG;AACH,uCAQoB;AAEpB,qEAA0E;AAC1E,+EAAwD;AACxD,qDAAwE;AACxE,mDAAoD;AACpD,6CAA2D;AAC3D,+CAA0D;AAC1D,yDAA2E;AAC3E,+CAAoD;AACpD,uCAMwB;AACxB,iDAAsE;AACtE,8EAA+E;AAC/E,2CAA8C;AAC9C,yCAAqD;AACrD,sDAAsE;AAEzD,QAAA,2BAA2B,GACtC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAE/B,MAAM,mCAAmC,GAAG,IAAI,GAAG,CAAC;IAClD,uCAAuC;IACvC,qCAAqC;IACrC,uCAAuC;IACvC,qCAAqC;CACtC,CAAC,CAAC;AAEH,SAAsB,kBAAkB,CACtC,IAAU,EACV,OAAiC;;QAEjC,uDAAuD,CAAC,OAAO,CAAC,CAAC;QAEjE,MAAM,WAAW,GAAG,MAAM,IAAA,wBAAkB,EAAC,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;QAExE,MA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CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;QAC1D,MAAM,IAAI,KAAK,CACb,4DAA4D,OAAO,CAAC,WAAW,MAAM,kBAAkB,GAAG,CAC3G,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAC5B,OAAiC,EACV,EAAE;;IACzB,OAAO,MAAA,OAAO,CAAC,kBAAkB,mCAAI,UAAU,CAAC;AAClD,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,OAAiC,EAAU,EAAE;IAC3E,IAAI,OAAO,CAAC,WAAW,KAAK,6BAA6B,EAAE,CAAC;QAC1D,OAAO,sBAAsB,CAAC;IAChC,CAAC;IACD,IAAI,OAAO,CAAC,IAAI,KAAK,KAAK,EAAE,CAAC;QAC3B,OAAO,yCAAyC,CAAC;IACnD,CAAC;SAAM,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QACtC,OAAO,yCAAyC,CAAC;IACnD,CAAC;IACD,OAAO,wBAAwB,CAAC;AAClC,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -21,9 +21,7 @@ export class TestProjectTestFunction extends Function {
|
|
|
21
21
|
),
|
|
22
22
|
),
|
|
23
23
|
tracing: Tracing.ACTIVE,
|
|
24
|
-
environment: {
|
|
25
|
-
AWS_CONNECTION_REUSE_ENABLED: '1',
|
|
26
|
-
},
|
|
24
|
+
environment: {},
|
|
27
25
|
});
|
|
28
26
|
}
|
|
29
27
|
}
|
|
@@ -258,9 +256,7 @@ resource "aws_lambda_function" "lambda_function" {
|
|
|
258
256
|
}
|
|
259
257
|
|
|
260
258
|
environment {
|
|
261
|
-
variables =
|
|
262
|
-
AWS_CONNECTION_REUSE_ENABLED = "1"
|
|
263
|
-
}, var.env)
|
|
259
|
+
variables = var.env
|
|
264
260
|
}
|
|
265
261
|
|
|
266
262
|
tags = var.tags
|
|
@@ -413,9 +409,7 @@ resource "aws_lambda_function" "lambda_function" {
|
|
|
413
409
|
}
|
|
414
410
|
|
|
415
411
|
environment {
|
|
416
|
-
variables =
|
|
417
|
-
AWS_CONNECTION_REUSE_ENABLED = "1"
|
|
418
|
-
}, var.env)
|
|
412
|
+
variables = var.env
|
|
419
413
|
}
|
|
420
414
|
|
|
421
415
|
tags = var.tags
|
package/src/ts/lib/generator.js
CHANGED
|
@@ -12,6 +12,7 @@ const npm_scope_1 = require("../../utils/npm-scope");
|
|
|
12
12
|
const ts_project_utils_1 = require("./ts-project-utils");
|
|
13
13
|
const names_1 = require("../../utils/names");
|
|
14
14
|
const format_1 = require("../../utils/format");
|
|
15
|
+
const pkg_manager_1 = require("../../utils/pkg-manager");
|
|
15
16
|
const object_1 = require("../../utils/object");
|
|
16
17
|
const nx_1 = require("../../utils/nx");
|
|
17
18
|
const metrics_1 = require("../../utils/metrics");
|
|
@@ -40,7 +41,7 @@ const tsProjectGenerator = (tree, schema) => tslib_1.__awaiter(void 0, void 0, v
|
|
|
40
41
|
tree.delete((0, devkit_1.joinPathFragments)(dir, 'src'));
|
|
41
42
|
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, 'files'), (0, devkit_1.joinPathFragments)(dir), {
|
|
42
43
|
fullyQualifiedName,
|
|
43
|
-
pkgMgrCmd: (0,
|
|
44
|
+
pkgMgrCmd: (0, pkg_manager_1.getPackageManagerDisplayCommands)().exec,
|
|
44
45
|
}, {
|
|
45
46
|
overwriteStrategy: devkit_1.OverwriteStrategy.KeepExisting,
|
|
46
47
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/lib/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/lib/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAWoB;AAEpB,+B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,CAAC;AAhKW,QAAA,kBAAkB,sBAgK7B;AACF,kBAAe,0BAAkB,CAAC"}
|
package/src/ts/lib/vitest.js
CHANGED
|
@@ -39,7 +39,7 @@ const configureVitest = (tree, options) => {
|
|
|
39
39
|
},
|
|
40
40
|
} }, nxJson.targetDefaults['@nx/vitest:test']) }) }));
|
|
41
41
|
}
|
|
42
|
-
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, (0, versions_1.withVersions)(['vitest', '@vitest/coverage-v8']));
|
|
42
|
+
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, (0, versions_1.withVersions)(['vite', 'vitest', '@vitest/coverage-v8']));
|
|
43
43
|
};
|
|
44
44
|
exports.configureVitest = configureVitest;
|
|
45
45
|
//# sourceMappingURL=vitest.js.map
|
package/src/ts/lib/vitest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vitest.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/lib/vitest.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAKoB;AACpB,+BAA4B;AAC5B,iEAAkE;AAElE,yCAAkD;AAClD,mDAAoD;AAE7C,MAAM,eAAe,GAAG,CAC7B,IAAU,EACV,OAAgC,EAChC,EAAE;;IACF,4CAA4C;IAC5C,MAAM,UAAU,GAAG;QACjB,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,mBAAmB,CAAC;QACtC,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,iBAAiB,CAAC;KACrC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAExC,IAAI,UAAU,EAAE,CAAC;QACf,IAAA,qBAAe,EACb,IAAI,EACJ,UAAU,EACV,6HAA6H,EAC7H,CAAC,IAA6B,EAAE,EAAE;YAChC,0CAA0C;YAC1C,MAAM,kBAAkB,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAC7C,CAAC,CAAC,EAAE,EAAE,CACJ,oBAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC;gBAC1B,oBAAE,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC;gBACvB,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,iBAAiB,CACpC,CAAC;YACF,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBACxB,OAAO,oBAAO,CAAC,6BAA6B,CAAC;oBAC3C,GAAG,IAAI,CAAC,UAAU;oBAClB,oBAAO,CAAC,wBAAwB,CAC9B,iBAAiB,EACjB,oBAAO,CAAC,UAAU,EAAE,CACrB;iBACF,CAAC,CAAC;YACL,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC,CACF,CAAC;QAEF,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC;QAChC,IAAA,qBAAY,EAAC,IAAI,kCACZ,MAAM,KACT,cAAc,kCACT,CAAC,MAAA,MAAM,CAAC,cAAc,mCAAI,EAAE,CAAC,KAChC,iBAAiB,kBACf,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC,EAClC,cAAc,EAAE;wBACd,iBAAiB,EAAE;4BACjB,IAAI,EAAE,UAAU;yBACjB;qBACF,IACE,MAAM,CAAC,cAAc,CAAC,iBAAiB,CAAC,QAG/C,CAAC;IACL,CAAC;IAED,IAAA,qCAA4B,EAC1B,IAAI,EACJ,EAAE,EACF,IAAA,uBAAY,EAAC,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"vitest.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/lib/vitest.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAKoB;AACpB,+BAA4B;AAC5B,iEAAkE;AAElE,yCAAkD;AAClD,mDAAoD;AAE7C,MAAM,eAAe,GAAG,CAC7B,IAAU,EACV,OAAgC,EAChC,EAAE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AAE,UAAU;yBACjB;qBACF,IACE,MAAM,CAAC,cAAc,CAAC,iBAAiB,CAAC,QAG/C,CAAC;IACL,CAAC;IAED,IAAA,qCAA4B,EAC1B,IAAI,EACJ,EAAE,EACF,IAAA,uBAAY,EAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,qBAAqB,CAAC,CAAC,CACxD,CAAC;AACJ,CAAC,CAAC;AA5DW,QAAA,eAAe,mBA4D1B"}
|
|
@@ -689,8 +689,8 @@ exports[`ts#mcp-server generator > should match snapshot for generated files > u
|
|
|
689
689
|
"snapshot-server": "./src/snapshot-server/stdio.js"
|
|
690
690
|
},
|
|
691
691
|
"dependencies": {
|
|
692
|
-
"@aws-lambda-powertools/parameters": "2.
|
|
693
|
-
"@aws-sdk/client-appconfigdata": "3.
|
|
692
|
+
"@aws-lambda-powertools/parameters": "2.32.0",
|
|
693
|
+
"@aws-sdk/client-appconfigdata": "3.1015.0",
|
|
694
694
|
"@modelcontextprotocol/sdk": "1.27.1",
|
|
695
695
|
"express": "5.2.1",
|
|
696
696
|
"zod": "4.3.6"
|
|
@@ -248,7 +248,7 @@ export const registerCreateWorkspaceCommandTool = (server: McpServer) => {
|
|
|
248
248
|
text: \`Run the following command to create a workspace:
|
|
249
249
|
|
|
250
250
|
\\\`\\\`\\\`bash
|
|
251
|
-
npx create-nx-workspace@22.
|
|
251
|
+
npx create-nx-workspace@22.6.1 \${workspaceName} --pm=\${packageManager} --preset=@aws/nx-plugin --ci=skip --aiAgents
|
|
252
252
|
\\\`\\\`\\\`
|
|
253
253
|
|
|
254
254
|
This will create a new workspace within the \${workspaceName} directory.
|
|
@@ -1052,37 +1052,37 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1052
1052
|
"{
|
|
1053
1053
|
"name": "@proj/source",
|
|
1054
1054
|
"dependencies": {
|
|
1055
|
-
"@cloudscape-design/board-components": "3.0.
|
|
1056
|
-
"@cloudscape-design/components": "3.0.
|
|
1057
|
-
"@cloudscape-design/global-styles": "1.0.
|
|
1058
|
-
"aws-cdk-lib": "2.
|
|
1059
|
-
"constructs": "10.
|
|
1055
|
+
"@cloudscape-design/board-components": "3.0.154",
|
|
1056
|
+
"@cloudscape-design/components": "3.0.1244",
|
|
1057
|
+
"@cloudscape-design/global-styles": "1.0.53",
|
|
1058
|
+
"aws-cdk-lib": "2.244.0",
|
|
1059
|
+
"constructs": "10.6.0",
|
|
1060
1060
|
"react": "19.2.4",
|
|
1061
1061
|
"react-dom": "19.2.4",
|
|
1062
|
-
"tailwindcss": "4.2.
|
|
1062
|
+
"tailwindcss": "4.2.2"
|
|
1063
1063
|
},
|
|
1064
1064
|
"devDependencies": {
|
|
1065
1065
|
"@eslint/js": "^9.8.0",
|
|
1066
|
-
"@nx/eslint": "22.
|
|
1067
|
-
"@nx/eslint-plugin": "22.
|
|
1068
|
-
"@nx/js": "22.
|
|
1069
|
-
"@nx/react": "22.
|
|
1070
|
-
"@nx/vite": "22.
|
|
1071
|
-
"@nx/vitest": "22.
|
|
1072
|
-
"@nx/web": "22.
|
|
1066
|
+
"@nx/eslint": "22.6.1",
|
|
1067
|
+
"@nx/eslint-plugin": "22.6.1",
|
|
1068
|
+
"@nx/js": "22.6.1",
|
|
1069
|
+
"@nx/react": "22.6.1",
|
|
1070
|
+
"@nx/vite": "22.6.1",
|
|
1071
|
+
"@nx/vitest": "22.6.1",
|
|
1072
|
+
"@nx/web": "22.6.1",
|
|
1073
1073
|
"@swc-node/register": "~1.11.1",
|
|
1074
1074
|
"@swc/cli": "~0.8.0",
|
|
1075
1075
|
"@swc/core": "~1.15.5",
|
|
1076
1076
|
"@swc/helpers": "~0.5.18",
|
|
1077
|
-
"@tailwindcss/vite": "4.2.
|
|
1077
|
+
"@tailwindcss/vite": "4.2.2",
|
|
1078
1078
|
"@testing-library/dom": "10.4.0",
|
|
1079
1079
|
"@testing-library/react": "16.3.0",
|
|
1080
|
-
"@types/node": "22.19.
|
|
1080
|
+
"@types/node": "22.19.15",
|
|
1081
1081
|
"@types/react": "^19.0.0",
|
|
1082
1082
|
"@types/react-dom": "^19.0.0",
|
|
1083
1083
|
"@vitejs/plugin-react": "^4.2.0",
|
|
1084
|
-
"@vitest/coverage-v8": "4.
|
|
1085
|
-
"@vitest/ui": "4.
|
|
1084
|
+
"@vitest/coverage-v8": "4.1.1",
|
|
1085
|
+
"@vitest/ui": "4.1.1",
|
|
1086
1086
|
"eslint": "^9.8.0",
|
|
1087
1087
|
"eslint-config-prettier": "^10.0.0",
|
|
1088
1088
|
"eslint-plugin-import": "2.31.0",
|
|
@@ -1096,9 +1096,9 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1096
1096
|
"prettier": "3.8.1",
|
|
1097
1097
|
"typescript": "~5.9.2",
|
|
1098
1098
|
"typescript-eslint": "^8.40.0",
|
|
1099
|
-
"vite": "
|
|
1099
|
+
"vite": "7.3.1",
|
|
1100
1100
|
"vite-tsconfig-paths": "5.1.4",
|
|
1101
|
-
"vitest": "4.
|
|
1101
|
+
"vitest": "4.1.1"
|
|
1102
1102
|
},
|
|
1103
1103
|
"type": "module"
|
|
1104
1104
|
}
|
|
@@ -1112,27 +1112,27 @@ This library was generated with [@aws/nx-plugin](https://github.com/awslabs/nx-p
|
|
|
1112
1112
|
|
|
1113
1113
|
## Building
|
|
1114
1114
|
|
|
1115
|
-
Run \`
|
|
1115
|
+
Run \`pnpm nx build @proj/common-constructs [--skip-nx-cache]\` to build the application.
|
|
1116
1116
|
|
|
1117
1117
|
## Running unit tests
|
|
1118
1118
|
|
|
1119
|
-
Run \`
|
|
1119
|
+
Run \`pnpm nx test @proj/common-constructs\` to execute the unit tests via Vitest.
|
|
1120
1120
|
|
|
1121
1121
|
### Updating snapshots
|
|
1122
1122
|
|
|
1123
1123
|
To update snapshots, run the following command:
|
|
1124
1124
|
|
|
1125
|
-
\`
|
|
1125
|
+
\`pnpm nx test @proj/common-constructs --configuration=update-snapshot\`
|
|
1126
1126
|
|
|
1127
1127
|
## Run lint
|
|
1128
1128
|
|
|
1129
|
-
Run \`
|
|
1129
|
+
Run \`pnpm nx lint @proj/common-constructs\`
|
|
1130
1130
|
|
|
1131
1131
|
### Fixable issues
|
|
1132
1132
|
|
|
1133
1133
|
You can also automatiaclly fix some lint errors by running the following command:
|
|
1134
1134
|
|
|
1135
|
-
\`
|
|
1135
|
+
\`pnpm nx lint @proj/common-constructs --configuration=fix\`
|
|
1136
1136
|
|
|
1137
1137
|
## Useful links
|
|
1138
1138
|
|
|
@@ -1901,37 +1901,37 @@ This library was generated with [@aws/nx-plugin](https://github.com/awslabs/nx-p
|
|
|
1901
1901
|
|
|
1902
1902
|
## Building
|
|
1903
1903
|
|
|
1904
|
-
Run \`
|
|
1904
|
+
Run \`pnpm nx build @proj/test-app [--skip-nx-cache]\` to build the application.
|
|
1905
1905
|
|
|
1906
1906
|
## Run dev server
|
|
1907
1907
|
|
|
1908
|
-
Run \`
|
|
1908
|
+
Run \`pnpm nx serve @proj/test-app\`
|
|
1909
1909
|
|
|
1910
1910
|
## Running unit tests
|
|
1911
1911
|
|
|
1912
|
-
Run \`
|
|
1912
|
+
Run \`pnpm nx test @proj/test-app\` to execute the unit tests via Vitest.
|
|
1913
1913
|
|
|
1914
1914
|
### Updating snapshots
|
|
1915
1915
|
|
|
1916
1916
|
To update snapshots, run the following command:
|
|
1917
1917
|
|
|
1918
|
-
\`
|
|
1918
|
+
\`pnpm nx test @proj/test-app --configuration=update-snapshot\`
|
|
1919
1919
|
|
|
1920
1920
|
## Run lint
|
|
1921
1921
|
|
|
1922
|
-
Run \`
|
|
1922
|
+
Run \`pnpm nx lint @proj/test-app\`
|
|
1923
1923
|
|
|
1924
1924
|
### Fixable issues
|
|
1925
1925
|
|
|
1926
1926
|
You can also automatically fix some lint errors by running the following command:
|
|
1927
1927
|
|
|
1928
|
-
\`
|
|
1928
|
+
\`pnpm nx lint @proj/test-app --configuration=fix\`
|
|
1929
1929
|
|
|
1930
1930
|
### Runtime config
|
|
1931
1931
|
|
|
1932
1932
|
In order to integrate with cognito or trpc backends, you need to have a \`runtime-config.json\` file in your \`/public\` website directory. You can fetch this is follows:
|
|
1933
1933
|
|
|
1934
|
-
\`
|
|
1934
|
+
\`pnpm nx run @proj/test-app:load:runtime-config\`
|
|
1935
1935
|
|
|
1936
1936
|
> [!IMPORTANT]
|
|
1937
1937
|
> Ensure you have AWS CLI and curl installed
|
|
@@ -2040,7 +2040,7 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
2040
2040
|
"load:runtime-config": {
|
|
2041
2041
|
"executor": "nx:run-commands",
|
|
2042
2042
|
"metadata": {
|
|
2043
|
-
"description": "Load runtime config from your deployed stack for dev purposes. You must set your AWS CLI credentials whilst calling 'pnpm
|
|
2043
|
+
"description": "Load runtime config from your deployed stack for dev purposes. You must set your AWS CLI credentials whilst calling 'pnpm nx run @proj/test-app:load:runtime-config'"
|
|
2044
2044
|
},
|
|
2045
2045
|
"options": {
|
|
2046
2046
|
"command": "aws s3 cp s3://\`aws cloudformation describe-stacks --query \\"Stacks[?starts_with(StackName, 'proj-')][].Outputs[] | [?contains(OutputKey, 'TestAppWebsiteBucketName')].OutputValue\\" --output text\`/runtime-config.json \\"{projectRoot}/public/runtime-config.json\\""
|
|
@@ -2642,42 +2642,42 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
2642
2642
|
"{
|
|
2643
2643
|
"name": "@proj/source",
|
|
2644
2644
|
"dependencies": {
|
|
2645
|
-
"@cloudscape-design/board-components": "3.0.
|
|
2646
|
-
"@cloudscape-design/components": "3.0.
|
|
2647
|
-
"@cloudscape-design/global-styles": "1.0.
|
|
2648
|
-
"@tanstack/react-router": "1.
|
|
2649
|
-
"aws-cdk-lib": "2.
|
|
2650
|
-
"constructs": "10.
|
|
2645
|
+
"@cloudscape-design/board-components": "3.0.154",
|
|
2646
|
+
"@cloudscape-design/components": "3.0.1244",
|
|
2647
|
+
"@cloudscape-design/global-styles": "1.0.53",
|
|
2648
|
+
"@tanstack/react-router": "1.168.3",
|
|
2649
|
+
"aws-cdk-lib": "2.244.0",
|
|
2650
|
+
"constructs": "10.6.0",
|
|
2651
2651
|
"react": "19.2.4",
|
|
2652
2652
|
"react-dom": "19.2.4",
|
|
2653
|
-
"tailwindcss": "4.2.
|
|
2653
|
+
"tailwindcss": "4.2.2"
|
|
2654
2654
|
},
|
|
2655
2655
|
"devDependencies": {
|
|
2656
2656
|
"@eslint/js": "^9.8.0",
|
|
2657
|
-
"@nx/eslint": "22.
|
|
2658
|
-
"@nx/eslint-plugin": "22.
|
|
2659
|
-
"@nx/js": "22.
|
|
2660
|
-
"@nx/react": "22.
|
|
2661
|
-
"@nx/vite": "22.
|
|
2662
|
-
"@nx/vitest": "22.
|
|
2663
|
-
"@nx/web": "22.
|
|
2657
|
+
"@nx/eslint": "22.6.1",
|
|
2658
|
+
"@nx/eslint-plugin": "22.6.1",
|
|
2659
|
+
"@nx/js": "22.6.1",
|
|
2660
|
+
"@nx/react": "22.6.1",
|
|
2661
|
+
"@nx/vite": "22.6.1",
|
|
2662
|
+
"@nx/vitest": "22.6.1",
|
|
2663
|
+
"@nx/web": "22.6.1",
|
|
2664
2664
|
"@swc-node/register": "~1.11.1",
|
|
2665
2665
|
"@swc/cli": "~0.8.0",
|
|
2666
2666
|
"@swc/core": "~1.15.5",
|
|
2667
2667
|
"@swc/helpers": "~0.5.18",
|
|
2668
|
-
"@tailwindcss/vite": "4.2.
|
|
2669
|
-
"@tanstack/router-generator": "1.
|
|
2670
|
-
"@tanstack/router-plugin": "1.
|
|
2671
|
-
"@tanstack/router-utils": "1.161.
|
|
2672
|
-
"@tanstack/virtual-file-routes": "1.161.
|
|
2668
|
+
"@tailwindcss/vite": "4.2.2",
|
|
2669
|
+
"@tanstack/router-generator": "1.166.17",
|
|
2670
|
+
"@tanstack/router-plugin": "1.167.4",
|
|
2671
|
+
"@tanstack/router-utils": "1.161.6",
|
|
2672
|
+
"@tanstack/virtual-file-routes": "1.161.7",
|
|
2673
2673
|
"@testing-library/dom": "10.4.0",
|
|
2674
2674
|
"@testing-library/react": "16.3.0",
|
|
2675
|
-
"@types/node": "22.19.
|
|
2675
|
+
"@types/node": "22.19.15",
|
|
2676
2676
|
"@types/react": "^19.0.0",
|
|
2677
2677
|
"@types/react-dom": "^19.0.0",
|
|
2678
2678
|
"@vitejs/plugin-react": "^4.2.0",
|
|
2679
|
-
"@vitest/coverage-v8": "4.
|
|
2680
|
-
"@vitest/ui": "4.
|
|
2679
|
+
"@vitest/coverage-v8": "4.1.1",
|
|
2680
|
+
"@vitest/ui": "4.1.1",
|
|
2681
2681
|
"eslint": "^9.8.0",
|
|
2682
2682
|
"eslint-config-prettier": "^10.0.0",
|
|
2683
2683
|
"eslint-plugin-import": "2.31.0",
|
|
@@ -2691,9 +2691,9 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
2691
2691
|
"prettier": "3.8.1",
|
|
2692
2692
|
"typescript": "~5.9.2",
|
|
2693
2693
|
"typescript-eslint": "^8.40.0",
|
|
2694
|
-
"vite": "
|
|
2694
|
+
"vite": "7.3.1",
|
|
2695
2695
|
"vite-tsconfig-paths": "5.1.4",
|
|
2696
|
-
"vitest": "4.
|
|
2696
|
+
"vitest": "4.1.1"
|
|
2697
2697
|
},
|
|
2698
2698
|
"type": "module"
|
|
2699
2699
|
}
|
|
@@ -2707,27 +2707,27 @@ This library was generated with [@aws/nx-plugin](https://github.com/awslabs/nx-p
|
|
|
2707
2707
|
|
|
2708
2708
|
## Building
|
|
2709
2709
|
|
|
2710
|
-
Run \`
|
|
2710
|
+
Run \`pnpm nx build @proj/common-constructs [--skip-nx-cache]\` to build the application.
|
|
2711
2711
|
|
|
2712
2712
|
## Running unit tests
|
|
2713
2713
|
|
|
2714
|
-
Run \`
|
|
2714
|
+
Run \`pnpm nx test @proj/common-constructs\` to execute the unit tests via Vitest.
|
|
2715
2715
|
|
|
2716
2716
|
### Updating snapshots
|
|
2717
2717
|
|
|
2718
2718
|
To update snapshots, run the following command:
|
|
2719
2719
|
|
|
2720
|
-
\`
|
|
2720
|
+
\`pnpm nx test @proj/common-constructs --configuration=update-snapshot\`
|
|
2721
2721
|
|
|
2722
2722
|
## Run lint
|
|
2723
2723
|
|
|
2724
|
-
Run \`
|
|
2724
|
+
Run \`pnpm nx lint @proj/common-constructs\`
|
|
2725
2725
|
|
|
2726
2726
|
### Fixable issues
|
|
2727
2727
|
|
|
2728
2728
|
You can also automatiaclly fix some lint errors by running the following command:
|
|
2729
2729
|
|
|
2730
|
-
\`
|
|
2730
|
+
\`pnpm nx lint @proj/common-constructs --configuration=fix\`
|
|
2731
2731
|
|
|
2732
2732
|
## Useful links
|
|
2733
2733
|
|
|
@@ -3496,37 +3496,37 @@ This library was generated with [@aws/nx-plugin](https://github.com/awslabs/nx-p
|
|
|
3496
3496
|
|
|
3497
3497
|
## Building
|
|
3498
3498
|
|
|
3499
|
-
Run \`
|
|
3499
|
+
Run \`pnpm nx build @proj/test-app [--skip-nx-cache]\` to build the application.
|
|
3500
3500
|
|
|
3501
3501
|
## Run dev server
|
|
3502
3502
|
|
|
3503
|
-
Run \`
|
|
3503
|
+
Run \`pnpm nx serve @proj/test-app\`
|
|
3504
3504
|
|
|
3505
3505
|
## Running unit tests
|
|
3506
3506
|
|
|
3507
|
-
Run \`
|
|
3507
|
+
Run \`pnpm nx test @proj/test-app\` to execute the unit tests via Vitest.
|
|
3508
3508
|
|
|
3509
3509
|
### Updating snapshots
|
|
3510
3510
|
|
|
3511
3511
|
To update snapshots, run the following command:
|
|
3512
3512
|
|
|
3513
|
-
\`
|
|
3513
|
+
\`pnpm nx test @proj/test-app --configuration=update-snapshot\`
|
|
3514
3514
|
|
|
3515
3515
|
## Run lint
|
|
3516
3516
|
|
|
3517
|
-
Run \`
|
|
3517
|
+
Run \`pnpm nx lint @proj/test-app\`
|
|
3518
3518
|
|
|
3519
3519
|
### Fixable issues
|
|
3520
3520
|
|
|
3521
3521
|
You can also automatically fix some lint errors by running the following command:
|
|
3522
3522
|
|
|
3523
|
-
\`
|
|
3523
|
+
\`pnpm nx lint @proj/test-app --configuration=fix\`
|
|
3524
3524
|
|
|
3525
3525
|
### Runtime config
|
|
3526
3526
|
|
|
3527
3527
|
In order to integrate with cognito or trpc backends, you need to have a \`runtime-config.json\` file in your \`/public\` website directory. You can fetch this is follows:
|
|
3528
3528
|
|
|
3529
|
-
\`
|
|
3529
|
+
\`pnpm nx run @proj/test-app:load:runtime-config\`
|
|
3530
3530
|
|
|
3531
3531
|
> [!IMPORTANT]
|
|
3532
3532
|
> Ensure you have AWS CLI and curl installed
|
|
@@ -3635,7 +3635,7 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
3635
3635
|
"load:runtime-config": {
|
|
3636
3636
|
"executor": "nx:run-commands",
|
|
3637
3637
|
"metadata": {
|
|
3638
|
-
"description": "Load runtime config from your deployed stack for dev purposes. You must set your AWS CLI credentials whilst calling 'pnpm
|
|
3638
|
+
"description": "Load runtime config from your deployed stack for dev purposes. You must set your AWS CLI credentials whilst calling 'pnpm nx run @proj/test-app:load:runtime-config'"
|
|
3639
3639
|
},
|
|
3640
3640
|
"options": {
|
|
3641
3641
|
"command": "aws s3 cp s3://\`aws cloudformation describe-stacks --query \\"Stacks[?starts_with(StackName, 'proj-')][].Outputs[] | [?contains(OutputKey, 'TestAppWebsiteBucketName')].OutputValue\\" --output text\`/runtime-config.json \\"{projectRoot}/public/runtime-config.json\\""
|
|
@@ -4899,15 +4899,15 @@ root &&
|
|
|
4899
4899
|
|
|
4900
4900
|
exports[`react-website generator > should handle npm scope prefix correctly > scoped-dependencies 1`] = `
|
|
4901
4901
|
{
|
|
4902
|
-
"@cloudscape-design/board-components": "3.0.
|
|
4903
|
-
"@cloudscape-design/components": "3.0.
|
|
4904
|
-
"@cloudscape-design/global-styles": "1.0.
|
|
4905
|
-
"@tanstack/react-router": "1.
|
|
4906
|
-
"aws-cdk-lib": "2.
|
|
4907
|
-
"constructs": "10.
|
|
4902
|
+
"@cloudscape-design/board-components": "3.0.154",
|
|
4903
|
+
"@cloudscape-design/components": "3.0.1244",
|
|
4904
|
+
"@cloudscape-design/global-styles": "1.0.53",
|
|
4905
|
+
"@tanstack/react-router": "1.168.3",
|
|
4906
|
+
"aws-cdk-lib": "2.244.0",
|
|
4907
|
+
"constructs": "10.6.0",
|
|
4908
4908
|
"react": "19.2.4",
|
|
4909
4909
|
"react-dom": "19.2.4",
|
|
4910
|
-
"tailwindcss": "4.2.
|
|
4910
|
+
"tailwindcss": "4.2.2",
|
|
4911
4911
|
}
|
|
4912
4912
|
`;
|
|
4913
4913
|
|
|
@@ -19,6 +19,7 @@ const shared_constructs_constants_1 = require("../../../utils/shared-constructs-
|
|
|
19
19
|
const names_1 = require("../../../utils/names");
|
|
20
20
|
const ast_1 = require("../../../utils/ast");
|
|
21
21
|
const format_1 = require("../../../utils/format");
|
|
22
|
+
const pkg_manager_1 = require("../../../utils/pkg-manager");
|
|
22
23
|
const path_1 = require("path");
|
|
23
24
|
const object_1 = require("../../../utils/object");
|
|
24
25
|
const nx_1 = require("../../../utils/nx");
|
|
@@ -57,7 +58,7 @@ function tsReactWebsiteGenerator(tree, schema) {
|
|
|
57
58
|
targets['load:runtime-config'] = {
|
|
58
59
|
executor: 'nx:run-commands',
|
|
59
60
|
metadata: {
|
|
60
|
-
description: `Load runtime config from your deployed stack for dev purposes. You must set your AWS CLI credentials whilst calling '
|
|
61
|
+
description: `Load runtime config from your deployed stack for dev purposes. You must set your AWS CLI credentials whilst calling '${(0, pkg_manager_1.getPackageManagerDisplayCommands)().exec} nx run ${fullyQualifiedName}:load:runtime-config'`,
|
|
61
62
|
},
|
|
62
63
|
options: {
|
|
63
64
|
command: `aws s3 cp s3://\`aws cloudformation describe-stacks --query "Stacks[?starts_with(StackName, '${(0, names_1.kebabCase)(npmScopePrefix)}-')][].Outputs[] | [?contains(OutputKey, '${websiteNameClassName}WebsiteBucketName')].OutputValue" --output text\`/runtime-config.json "{projectRoot}/public/runtime-config.json"`,
|
|
@@ -148,7 +149,7 @@ function tsReactWebsiteGenerator(tree, schema) {
|
|
|
148
149
|
const sharedShadcnTsconfigRef = (0, path_1.relative)((0, devkit_1.joinPathFragments)(tree.root, websiteContentPath), (0, devkit_1.joinPathFragments)(tree.root, shared_constructs_constants_1.PACKAGES_DIR, shared_constructs_constants_1.SHARED_SHADCN_DIR, 'tsconfig.json'))
|
|
149
150
|
.split(path_1.sep)
|
|
150
151
|
.join('/');
|
|
151
|
-
const templateOptions = Object.assign(Object.assign({}, schema), { fullyQualifiedName, pkgMgrCmd: (0,
|
|
152
|
+
const templateOptions = Object.assign(Object.assign({}, schema), { fullyQualifiedName, pkgMgrCmd: (0, pkg_manager_1.getPackageManagerDisplayCommands)().exec, enableTailwind,
|
|
152
153
|
enableTanstackRouter,
|
|
153
154
|
scopeAlias,
|
|
154
155
|
sharedShadcnStylesImport });
|