@aws/nx-plugin 1.0.0-rc.7 → 1.0.0-rc.9
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 +386 -2723
- package/README.md +8 -8
- package/package.json +5 -5
- package/src/connection/agent-serve-local.js +1 -1
- package/src/connection/agent-serve-local.js.map +1 -1
- package/src/infra/app/__snapshots__/generator.spec.ts.snap +15 -15
- package/src/infra/app/generator.js +6 -4
- package/src/infra/app/generator.js.map +1 -1
- package/src/mcp-server/tools/create-workspace-command.js +2 -2
- package/src/mcp-server/tools/create-workspace-command.js.map +1 -1
- package/src/py/agent/__snapshots__/generator.spec.ts.snap +6 -4
- package/src/py/agent/files/common/agent.py.template +2 -0
- package/src/py/agent/generator.js +3 -1
- package/src/py/agent/generator.js.map +1 -1
- package/src/py/agent/mcp-connection/__snapshots__/generator.spec.ts.snap +4 -0
- package/src/py/fast-api/generator.js +11 -5
- package/src/py/fast-api/generator.js.map +1 -1
- package/src/py/fast-api/react/open-api.js +4 -1
- package/src/py/fast-api/react/open-api.js.map +1 -1
- package/src/py/lambda-function/generator.js +2 -2
- package/src/py/lambda-function/generator.js.map +1 -1
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/py/mcp-server/generator.js +19 -15
- package/src/py/mcp-server/generator.js.map +1 -1
- package/src/py/project/generator.js +74 -62
- package/src/py/project/generator.js.map +1 -1
- package/src/smithy/project/__snapshots__/generator.spec.ts.snap +16 -16
- package/src/smithy/project/generator.js +25 -23
- package/src/smithy/project/generator.js.map +1 -1
- package/src/smithy/ts/api/generator.js +8 -0
- package/src/smithy/ts/api/generator.js.map +1 -1
- package/src/terraform/project/generator.js +7 -2
- package/src/terraform/project/generator.js.map +1 -1
- package/src/trpc/backend/generator.js +1 -0
- package/src/trpc/backend/generator.js.map +1 -1
- package/src/ts/agent/__snapshots__/generator.spec.ts.snap +6 -2
- package/src/ts/agent/files/common/agent.ts.template +6 -2
- package/src/ts/agent/generator.js +8 -3
- package/src/ts/agent/generator.js.map +1 -1
- package/src/ts/agent/mcp-connection/__snapshots__/generator.spec.ts.snap +1 -0
- package/src/ts/astro-docs/__snapshots__/generator.spec.ts.snap +6 -6
- package/src/ts/astro-docs/generator.js +10 -7
- package/src/ts/astro-docs/generator.js.map +1 -1
- package/src/ts/lib/__snapshots__/generator.spec.ts.snap +9 -9
- package/src/ts/lib/biome.js +5 -2
- package/src/ts/lib/biome.js.map +1 -1
- package/src/ts/lib/generator.js +21 -17
- package/src/ts/lib/generator.js.map +1 -1
- package/src/ts/lib/ts-project-utils.d.ts +10 -0
- package/src/ts/lib/ts-project-utils.js +22 -8
- package/src/ts/lib/ts-project-utils.js.map +1 -1
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/ts/mcp-server/generator.js +22 -3
- package/src/ts/mcp-server/generator.js.map +1 -1
- package/src/ts/nx-generator/generator.js +17 -13
- package/src/ts/nx-generator/generator.js.map +1 -1
- package/src/ts/nx-plugin/generator.js +7 -6
- package/src/ts/nx-plugin/generator.js.map +1 -1
- package/src/ts/nx-plugin/utils.js +9 -3
- package/src/ts/nx-plugin/utils.js.map +1 -1
- package/src/ts/rdb/__snapshots__/generator.spec.ts.snap +36 -18
- package/src/ts/rdb/generator.js +19 -14
- package/src/ts/rdb/generator.js.map +1 -1
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +67 -67
- package/src/ts/react-website/app/generator.js +8 -4
- package/src/ts/react-website/app/generator.js.map +1 -1
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.spec.ts.snap +0 -2
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.ux-provider.spec.ts.snap +0 -20
- package/src/ts/react-website/cognito-auth/generator.js +0 -3
- package/src/ts/react-website/cognito-auth/generator.js.map +1 -1
- package/src/ts/react-website/cognito-auth/grit/cloudscape-auth-menu.grit +3 -1
- package/src/ts/react-website/cognito-auth/grit/none-auth-menu.grit +1 -0
- package/src/ts/react-website/cognito-auth/grit/shadcn-auth-menu.grit +3 -1
- package/src/ts/react-website/cognito-auth/grit/shadcn-state-declarations.grit +3 -1
- package/src/utils/agent-connection/agent-connection.js +8 -2
- package/src/utils/agent-connection/agent-connection.js.map +1 -1
- package/src/utils/agent-connection/files/core-runtime-config/model-errors.ts.template +36 -0
- package/src/utils/agent-connection/files/py-core-runtime-config/model_errors.py.template +40 -0
- package/src/utils/agent-core-constructs/agent-core-constructs.js +2 -10
- package/src/utils/agent-core-constructs/agent-core-constructs.js.map +1 -1
- package/src/utils/ast/website.js +1 -1
- package/src/utils/ast.d.ts +4 -0
- package/src/utils/ast.js +24 -1
- package/src/utils/ast.js.map +1 -1
- package/src/utils/dynamodb-constructs/dynamodb-constructs.js +2 -10
- package/src/utils/dynamodb-constructs/dynamodb-constructs.js.map +1 -1
- package/src/utils/metrics.d.ts +7 -1
- package/src/utils/metrics.js +58 -28
- package/src/utils/metrics.js.map +1 -1
- package/src/utils/nx.d.ts +5 -0
- package/src/utils/nx.js +44 -12
- package/src/utils/nx.js.map +1 -1
- package/src/utils/port.d.ts +25 -4
- package/src/utils/port.js +56 -9
- package/src/utils/port.js.map +1 -1
- package/src/utils/py.js +12 -5
- package/src/utils/py.js.map +1 -1
- package/src/utils/rdb-constructs/files/terraform/core/rdb/aurora/aurora.tf.template +18 -9
- package/src/utils/rdb-constructs/rdb-constructs.js +2 -10
- package/src/utils/rdb-constructs/rdb-constructs.js.map +1 -1
- package/src/utils/versions.d.ts +43 -43
- package/src/utils/versions.js +42 -42
- package/src/utils/versions.js.map +1 -1
|
@@ -10,6 +10,7 @@ const devkit_1 = require("@nx/devkit");
|
|
|
10
10
|
const format_1 = require("../../utils/format");
|
|
11
11
|
const metrics_1 = require("../../utils/metrics");
|
|
12
12
|
const nx_1 = require("../../utils/nx");
|
|
13
|
+
const object_1 = require("../../utils/object");
|
|
13
14
|
const generator_1 = tslib_1.__importStar(require("../lib/generator"));
|
|
14
15
|
const generator_2 = tslib_1.__importDefault(require("../mcp-server/generator"));
|
|
15
16
|
const utils_1 = require("./utils");
|
|
@@ -59,15 +60,15 @@ const tsNxPluginGenerator = async (tree, options) => {
|
|
|
59
60
|
},
|
|
60
61
|
},
|
|
61
62
|
build: {
|
|
62
|
-
|
|
63
|
-
...(project.targets?.build?.dependsOn ?? []).filter((d) => typeof d !== 'string' || d !== 'package'),
|
|
64
|
-
'package',
|
|
65
|
-
],
|
|
63
|
+
...project.targets?.build,
|
|
66
64
|
},
|
|
67
65
|
};
|
|
66
|
+
// Append the package dependency without moving an existing entry, so re-runs
|
|
67
|
+
// do not reorder the build dependencies.
|
|
68
|
+
(0, nx_1.addDependencyToTargetIfNotPresent)(project, 'build', 'package');
|
|
69
|
+
// Sort targets so their order is stable regardless of insertion order.
|
|
70
|
+
project.targets = (0, object_1.sortObjectKeys)(project.targets);
|
|
68
71
|
(0, devkit_1.updateProjectConfiguration)(tree, fullyQualifiedName, project);
|
|
69
|
-
// Remove the hello world example from index.ts
|
|
70
|
-
tree.write((0, devkit_1.joinPathFragments)(project.sourceRoot, 'index.ts'), '');
|
|
71
72
|
// Add an MCP Server
|
|
72
73
|
await (0, generator_2.default)(tree, {
|
|
73
74
|
project: fullyQualifiedName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/nx-plugin/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCASoB;AACpB,+CAA0D;AAC1D,iDAAsE;AACtE,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/nx-plugin/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCASoB;AACpB,+CAA0D;AAC1D,iDAAsE;AACtE,uCAMwB;AACxB,+CAAoD;AACpD,sEAAuE;AACvE,gFAA2D;AAE3D,mCAAuD;AAE1C,QAAA,2BAA2B,GACtC,IA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3E,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;IACjC,OAAO,GAAG,EAAE;QACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC;AACJ,CAAC,CAAC;AA9FW,QAAA,mBAAmB,uBA8F9B;AAEF,kBAAe,2BAAmB,CAAC"}
|
|
@@ -22,10 +22,16 @@ const configureTsProjectAsNxPlugin = (tree, projectName) => {
|
|
|
22
22
|
// Nx Plugins must use commonjs as a limitation of nx
|
|
23
23
|
// https://github.com/nrwl/nx/issues/15682
|
|
24
24
|
(0, devkit_1.updateJson)(tree, tsConfigPath, (tsConfig) => {
|
|
25
|
-
tsConfig.compilerOptions
|
|
26
|
-
|
|
25
|
+
const { module, moduleResolution, ...rest } = tsConfig.compilerOptions ?? {};
|
|
26
|
+
// Reassign module/moduleResolution last in a fixed order so re-running
|
|
27
|
+
// produces a stable key order regardless of whether a prior step removed
|
|
28
|
+
// `module` (eg configureTsProject drops a conflicting commonjs module).
|
|
27
29
|
// TypeScript 6 allows bundler + commonjs together, avoiding deprecated node/node10
|
|
28
|
-
tsConfig.compilerOptions
|
|
30
|
+
tsConfig.compilerOptions = {
|
|
31
|
+
...rest,
|
|
32
|
+
module: module ?? 'commonjs',
|
|
33
|
+
moduleResolution: moduleResolution ?? 'bundler',
|
|
34
|
+
};
|
|
29
35
|
return tsConfig;
|
|
30
36
|
});
|
|
31
37
|
// Create an empty generators.json if one dosn't exist
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/nx-plugin/utils.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAOoB;AACpB,iFAAgD;AAChD,uCAAqE;AACrE,mDAAoD;AAEpD;;GAEG;AACI,MAAM,4BAA4B,GAAG,CAC1C,IAAU,EACV,WAAmB,EACnB,EAAE;IACF,MAAM,OAAO,GAAG,IAAA,wCAAmC,EAAC,IAAI,E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IAAA,uBAAY,EAAC,CAAC,YAAY,CAAC,CAAC;YAC/B,uCAAuC;YACvC,CAAC,sBAAW,CAAC,IAAI,CAAC,EAAE,IAAI,sBAAW,CAAC,OAAO,EAAE;SAC9C,CAAC;QACF,IAAA,qCAA4B,EAAC,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAC7C,IAAA,qCAA4B,EAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAC;IACtE,CAAC;AACH,CAAC,CAAC;AAlEW,QAAA,4BAA4B,gCAkEvC"}
|
|
@@ -1056,10 +1056,19 @@ variable "tags" {
|
|
|
1056
1056
|
default = {}
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
|
+
# Suffix appended to physical resource names so that multiple deployments
|
|
1060
|
+
# (e.g. separate environments in the same account and region) don't collide.
|
|
1061
|
+
resource "random_string" "suffix" {
|
|
1062
|
+
length = 8
|
|
1063
|
+
special = false
|
|
1064
|
+
upper = false
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1059
1067
|
locals {
|
|
1060
1068
|
default_port = var.engine == "aurora-mysql" ? 3306 : 5432
|
|
1061
1069
|
default_engine_version = var.engine == "aurora-mysql" ? "8.0.mysql_aurora.3.12.0" : "17.7"
|
|
1062
1070
|
parameter_group_family = var.engine == "aurora-mysql" ? "aurora-mysql8.0" : "aurora-postgresql\${split(".", coalesce(var.engine_version, local.default_engine_version))[0]}"
|
|
1071
|
+
cluster_name = "\${var.name}-aurora-\${random_string.suffix.result}"
|
|
1063
1072
|
}
|
|
1064
1073
|
|
|
1065
1074
|
resource "aws_rds_cluster_parameter_group" "database" {
|
|
@@ -1157,7 +1166,7 @@ resource "aws_security_group" "database" {
|
|
|
1157
1166
|
}
|
|
1158
1167
|
|
|
1159
1168
|
resource "aws_db_subnet_group" "database" {
|
|
1160
|
-
name =
|
|
1169
|
+
name = local.cluster_name
|
|
1161
1170
|
subnet_ids = var.subnet_ids
|
|
1162
1171
|
|
|
1163
1172
|
tags = merge(var.tags, {
|
|
@@ -1197,7 +1206,7 @@ resource "aws_secretsmanager_secret_version" "credentials" {
|
|
|
1197
1206
|
resource "aws_rds_cluster" "database" {
|
|
1198
1207
|
#checkov:skip=CKV2_AWS_27:Query logging can be enabled with enable_cloudwatch_logs; this module defaults to CDK-equivalent behavior unless logging is requested
|
|
1199
1208
|
#checkov:skip=CKV_AWS_139:Deletion protection is enabled but checkov is unable to detect it correctly
|
|
1200
|
-
cluster_identifier =
|
|
1209
|
+
cluster_identifier = local.cluster_name
|
|
1201
1210
|
engine = var.engine
|
|
1202
1211
|
engine_version = coalesce(var.engine_version, local.default_engine_version)
|
|
1203
1212
|
database_name = var.database_name
|
|
@@ -1211,7 +1220,7 @@ resource "aws_rds_cluster" "database" {
|
|
|
1211
1220
|
kms_key_id = aws_kms_key.database.arn
|
|
1212
1221
|
deletion_protection = var.deletion_protection
|
|
1213
1222
|
skip_final_snapshot = var.skip_final_snapshot
|
|
1214
|
-
final_snapshot_identifier = var.skip_final_snapshot ? null : "\${
|
|
1223
|
+
final_snapshot_identifier = var.skip_final_snapshot ? null : "\${local.cluster_name}-final-snapshot"
|
|
1215
1224
|
iam_database_authentication_enabled = true
|
|
1216
1225
|
monitoring_interval = 5
|
|
1217
1226
|
monitoring_role_arn = aws_iam_role.enhanced_monitoring.arn
|
|
@@ -1231,7 +1240,7 @@ resource "aws_rds_cluster" "database" {
|
|
|
1231
1240
|
resource "aws_rds_cluster_instance" "database" {
|
|
1232
1241
|
count = var.instance_count
|
|
1233
1242
|
|
|
1234
|
-
identifier = "\${
|
|
1243
|
+
identifier = "\${local.cluster_name}-\${count.index + 1}"
|
|
1235
1244
|
cluster_identifier = aws_rds_cluster.database.id
|
|
1236
1245
|
instance_class = "db.serverless"
|
|
1237
1246
|
engine = aws_rds_cluster.database.engine
|
|
@@ -1285,7 +1294,7 @@ resource "aws_vpc_security_group_ingress_rule" "rotation_to_database" {
|
|
|
1285
1294
|
resource "aws_cloudformation_stack" "credentials_rotation" {
|
|
1286
1295
|
#checkov:skip=CKV_AWS_124:SNS event notifications are not required for the credentials rotation stack
|
|
1287
1296
|
count = var.enable_credential_rotation ? 1 : 0
|
|
1288
|
-
name = "\${
|
|
1297
|
+
name = "\${local.cluster_name}-credentials-rotation"
|
|
1289
1298
|
|
|
1290
1299
|
capabilities = ["CAPABILITY_IAM", "CAPABILITY_AUTO_EXPAND"]
|
|
1291
1300
|
|
|
@@ -1299,7 +1308,7 @@ resource "aws_cloudformation_stack" "credentials_rotation" {
|
|
|
1299
1308
|
SecretId = aws_secretsmanager_secret.credentials.arn
|
|
1300
1309
|
HostedRotationLambda = {
|
|
1301
1310
|
RotationType = var.engine == "aurora-mysql" ? "MySQLSingleUser" : "PostgreSQLSingleUser"
|
|
1302
|
-
RotationLambdaName = "\${
|
|
1311
|
+
RotationLambdaName = "\${local.cluster_name}-credentials-rotation"
|
|
1303
1312
|
VpcSecurityGroupIds = aws_security_group.rotation[0].id
|
|
1304
1313
|
VpcSubnetIds = join(",", var.lambda_subnet_ids)
|
|
1305
1314
|
}
|
|
@@ -1379,7 +1388,7 @@ resource "aws_security_group" "proxy" {
|
|
|
1379
1388
|
resource "aws_db_proxy" "aurora" {
|
|
1380
1389
|
count = var.enable_rds_proxy ? 1 : 0
|
|
1381
1390
|
|
|
1382
|
-
name = "\${var.name}-proxy"
|
|
1391
|
+
name = "\${var.name}-proxy-\${random_string.suffix.result}"
|
|
1383
1392
|
default_auth_scheme = "IAM_AUTH"
|
|
1384
1393
|
engine_family = var.engine == "aurora-mysql" ? "MYSQL" : "POSTGRESQL"
|
|
1385
1394
|
role_arn = aws_iam_role.proxy[0].arn
|
|
@@ -1525,7 +1534,7 @@ resource "aws_iam_role_policy_attachment" "backup" {
|
|
|
1525
1534
|
resource "aws_backup_vault" "database" {
|
|
1526
1535
|
count = var.enable_backup ? 1 : 0
|
|
1527
1536
|
|
|
1528
|
-
name = "\${
|
|
1537
|
+
name = "\${local.cluster_name}-backup"
|
|
1529
1538
|
kms_key_arn = aws_kms_key.database.arn
|
|
1530
1539
|
tags = var.tags
|
|
1531
1540
|
}
|
|
@@ -1533,7 +1542,7 @@ resource "aws_backup_vault" "database" {
|
|
|
1533
1542
|
resource "aws_backup_plan" "database" {
|
|
1534
1543
|
count = var.enable_backup ? 1 : 0
|
|
1535
1544
|
|
|
1536
|
-
name = "\${
|
|
1545
|
+
name = "\${local.cluster_name}-backup"
|
|
1537
1546
|
|
|
1538
1547
|
rule {
|
|
1539
1548
|
rule_name = "daily-backup"
|
|
@@ -2506,10 +2515,19 @@ variable "tags" {
|
|
|
2506
2515
|
default = {}
|
|
2507
2516
|
}
|
|
2508
2517
|
|
|
2518
|
+
# Suffix appended to physical resource names so that multiple deployments
|
|
2519
|
+
# (e.g. separate environments in the same account and region) don't collide.
|
|
2520
|
+
resource "random_string" "suffix" {
|
|
2521
|
+
length = 8
|
|
2522
|
+
special = false
|
|
2523
|
+
upper = false
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2509
2526
|
locals {
|
|
2510
2527
|
default_port = var.engine == "aurora-mysql" ? 3306 : 5432
|
|
2511
2528
|
default_engine_version = var.engine == "aurora-mysql" ? "8.0.mysql_aurora.3.12.0" : "17.7"
|
|
2512
2529
|
parameter_group_family = var.engine == "aurora-mysql" ? "aurora-mysql8.0" : "aurora-postgresql\${split(".", coalesce(var.engine_version, local.default_engine_version))[0]}"
|
|
2530
|
+
cluster_name = "\${var.name}-aurora-\${random_string.suffix.result}"
|
|
2513
2531
|
}
|
|
2514
2532
|
|
|
2515
2533
|
resource "aws_rds_cluster_parameter_group" "database" {
|
|
@@ -2607,7 +2625,7 @@ resource "aws_security_group" "database" {
|
|
|
2607
2625
|
}
|
|
2608
2626
|
|
|
2609
2627
|
resource "aws_db_subnet_group" "database" {
|
|
2610
|
-
name =
|
|
2628
|
+
name = local.cluster_name
|
|
2611
2629
|
subnet_ids = var.subnet_ids
|
|
2612
2630
|
|
|
2613
2631
|
tags = merge(var.tags, {
|
|
@@ -2647,7 +2665,7 @@ resource "aws_secretsmanager_secret_version" "credentials" {
|
|
|
2647
2665
|
resource "aws_rds_cluster" "database" {
|
|
2648
2666
|
#checkov:skip=CKV2_AWS_27:Query logging can be enabled with enable_cloudwatch_logs; this module defaults to CDK-equivalent behavior unless logging is requested
|
|
2649
2667
|
#checkov:skip=CKV_AWS_139:Deletion protection is enabled but checkov is unable to detect it correctly
|
|
2650
|
-
cluster_identifier =
|
|
2668
|
+
cluster_identifier = local.cluster_name
|
|
2651
2669
|
engine = var.engine
|
|
2652
2670
|
engine_version = coalesce(var.engine_version, local.default_engine_version)
|
|
2653
2671
|
database_name = var.database_name
|
|
@@ -2661,7 +2679,7 @@ resource "aws_rds_cluster" "database" {
|
|
|
2661
2679
|
kms_key_id = aws_kms_key.database.arn
|
|
2662
2680
|
deletion_protection = var.deletion_protection
|
|
2663
2681
|
skip_final_snapshot = var.skip_final_snapshot
|
|
2664
|
-
final_snapshot_identifier = var.skip_final_snapshot ? null : "\${
|
|
2682
|
+
final_snapshot_identifier = var.skip_final_snapshot ? null : "\${local.cluster_name}-final-snapshot"
|
|
2665
2683
|
iam_database_authentication_enabled = true
|
|
2666
2684
|
monitoring_interval = 5
|
|
2667
2685
|
monitoring_role_arn = aws_iam_role.enhanced_monitoring.arn
|
|
@@ -2681,7 +2699,7 @@ resource "aws_rds_cluster" "database" {
|
|
|
2681
2699
|
resource "aws_rds_cluster_instance" "database" {
|
|
2682
2700
|
count = var.instance_count
|
|
2683
2701
|
|
|
2684
|
-
identifier = "\${
|
|
2702
|
+
identifier = "\${local.cluster_name}-\${count.index + 1}"
|
|
2685
2703
|
cluster_identifier = aws_rds_cluster.database.id
|
|
2686
2704
|
instance_class = "db.serverless"
|
|
2687
2705
|
engine = aws_rds_cluster.database.engine
|
|
@@ -2735,7 +2753,7 @@ resource "aws_vpc_security_group_ingress_rule" "rotation_to_database" {
|
|
|
2735
2753
|
resource "aws_cloudformation_stack" "credentials_rotation" {
|
|
2736
2754
|
#checkov:skip=CKV_AWS_124:SNS event notifications are not required for the credentials rotation stack
|
|
2737
2755
|
count = var.enable_credential_rotation ? 1 : 0
|
|
2738
|
-
name = "\${
|
|
2756
|
+
name = "\${local.cluster_name}-credentials-rotation"
|
|
2739
2757
|
|
|
2740
2758
|
capabilities = ["CAPABILITY_IAM", "CAPABILITY_AUTO_EXPAND"]
|
|
2741
2759
|
|
|
@@ -2749,7 +2767,7 @@ resource "aws_cloudformation_stack" "credentials_rotation" {
|
|
|
2749
2767
|
SecretId = aws_secretsmanager_secret.credentials.arn
|
|
2750
2768
|
HostedRotationLambda = {
|
|
2751
2769
|
RotationType = var.engine == "aurora-mysql" ? "MySQLSingleUser" : "PostgreSQLSingleUser"
|
|
2752
|
-
RotationLambdaName = "\${
|
|
2770
|
+
RotationLambdaName = "\${local.cluster_name}-credentials-rotation"
|
|
2753
2771
|
VpcSecurityGroupIds = aws_security_group.rotation[0].id
|
|
2754
2772
|
VpcSubnetIds = join(",", var.lambda_subnet_ids)
|
|
2755
2773
|
}
|
|
@@ -2829,7 +2847,7 @@ resource "aws_security_group" "proxy" {
|
|
|
2829
2847
|
resource "aws_db_proxy" "aurora" {
|
|
2830
2848
|
count = var.enable_rds_proxy ? 1 : 0
|
|
2831
2849
|
|
|
2832
|
-
name = "\${var.name}-proxy"
|
|
2850
|
+
name = "\${var.name}-proxy-\${random_string.suffix.result}"
|
|
2833
2851
|
default_auth_scheme = "IAM_AUTH"
|
|
2834
2852
|
engine_family = var.engine == "aurora-mysql" ? "MYSQL" : "POSTGRESQL"
|
|
2835
2853
|
role_arn = aws_iam_role.proxy[0].arn
|
|
@@ -2975,7 +2993,7 @@ resource "aws_iam_role_policy_attachment" "backup" {
|
|
|
2975
2993
|
resource "aws_backup_vault" "database" {
|
|
2976
2994
|
count = var.enable_backup ? 1 : 0
|
|
2977
2995
|
|
|
2978
|
-
name = "\${
|
|
2996
|
+
name = "\${local.cluster_name}-backup"
|
|
2979
2997
|
kms_key_arn = aws_kms_key.database.arn
|
|
2980
2998
|
tags = var.tags
|
|
2981
2999
|
}
|
|
@@ -2983,7 +3001,7 @@ resource "aws_backup_vault" "database" {
|
|
|
2983
3001
|
resource "aws_backup_plan" "database" {
|
|
2984
3002
|
count = var.enable_backup ? 1 : 0
|
|
2985
3003
|
|
|
2986
|
-
name = "\${
|
|
3004
|
+
name = "\${local.cluster_name}-backup"
|
|
2987
3005
|
|
|
2988
3006
|
rule {
|
|
2989
3007
|
rule_name = "daily-backup"
|
package/src/ts/rdb/generator.js
CHANGED
|
@@ -92,20 +92,25 @@ const tsRdbGenerator = async (tree, options) => {
|
|
|
92
92
|
bundleOutputDir: 'create-db-user',
|
|
93
93
|
});
|
|
94
94
|
const bundleTarget = projectConfig.targets['bundle'];
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
95
|
+
// The bundle target starts with a single rolldown `command`. Wrap it with
|
|
96
|
+
// the migration asset copy steps, unless it has already been transformed
|
|
97
|
+
// into a `commands` array on a previous run.
|
|
98
|
+
if (!bundleTarget.options.commands) {
|
|
99
|
+
const rolldownCommand = bundleTarget.options.command;
|
|
100
|
+
delete bundleTarget.options.command;
|
|
101
|
+
bundleTarget.options = {
|
|
102
|
+
...bundleTarget.options,
|
|
103
|
+
commands: [
|
|
104
|
+
fs.rm(`${relativePathToRoot}dist/{projectRoot}/bundle/migration`),
|
|
105
|
+
fs.mkdir(`${relativePathToRoot}dist/{projectRoot}/bundle/migration`),
|
|
106
|
+
fs.cp('prisma', `${relativePathToRoot}dist/{projectRoot}/bundle/migration/prisma`),
|
|
107
|
+
fs.cp('prisma.config.ts', `${relativePathToRoot}dist/{projectRoot}/bundle/migration/prisma.config.ts`),
|
|
108
|
+
fs.cp('Dockerfile', `${relativePathToRoot}dist/{projectRoot}/bundle/migration/Dockerfile`),
|
|
109
|
+
rolldownCommand,
|
|
110
|
+
],
|
|
111
|
+
parallel: false,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
109
114
|
}
|
|
110
115
|
projectConfig.targets.generate = {
|
|
111
116
|
executor: 'nx:run-commands',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/rdb/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAUoB;AACpB,sDAAsE;AACtE,uDAA2D;AAC3D,+CAA0D;AAC1D,uCAA4C;AAC5C,yCAAkD;AAClD,yCAA6C;AAC7C,iDAAsE;AACtE,6CAAsE;AACtE,qDAAkE;AAClE,uCAKwB;AACxB,6CAAqE;AACrE,+DAA2E;AAC3E,2CAA8C;AAC9C,8EAAwE;AACxE,qEAA0E;AAC1E,mDAAiE;AACjE,sEAAuE;AAG1D,QAAA,qBAAqB,GAChC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAExB,MAAM,cAAc,GAAG,KAAK,EACjC,IAAU,EACV,OAA6B,EACD,EAAE;IAC9B,MAAM,aAAa,GAAG,IAAA,iBAAS,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAG,IAAA,mBAAW,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,SAAS,CAAC;IACvD,MAAM,YAAY,GAAG,IAAA,iBAAS,EAAC,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,MAAM,eAAe,GAAG,MAAM,IAAA,8BAAiB,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACjE,MAAM,EAAE,kBAAkB,EAAE,GAAG,EAAE,GAAG,IAAA,2BAAe,EAAC,IAAI,EAAE;QACxD,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,SA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W;SAC7B,CAAC,CAAC;QACH,MAAM,IAAA,kCAAyB,EAAC,IAAI,EAAE,aAAa,EAAE;YACnD,cAAc,EAAE,+BAA+B;YAC/C,eAAe,EAAE,gBAAgB;SAClC,CAAC,CAAC;QACH,MAAM,YAAY,GAAG,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACrD,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/rdb/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAUoB;AACpB,sDAAsE;AACtE,uDAA2D;AAC3D,+CAA0D;AAC1D,uCAA4C;AAC5C,yCAAkD;AAClD,yCAA6C;AAC7C,iDAAsE;AACtE,6CAAsE;AACtE,qDAAkE;AAClE,uCAKwB;AACxB,6CAAqE;AACrE,+DAA2E;AAC3E,2CAA8C;AAC9C,8EAAwE;AACxE,qEAA0E;AAC1E,mDAAiE;AACjE,sEAAuE;AAG1D,QAAA,qBAAqB,GAChC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAExB,MAAM,cAAc,GAAG,KAAK,EACjC,IAAU,EACV,OAA6B,EACD,EAAE;IAC9B,MAAM,aAAa,GAAG,IAAA,iBAAS,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAG,IAAA,mBAAW,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,SAAS,CAAC;IACvD,MAAM,YAAY,GAAG,IAAA,iBAAS,EAAC,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,MAAM,eAAe,GAAG,MAAM,IAAA,8BAAiB,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACjE,MAAM,EAAE,kBAAkB,EAAE,GAAG,EAAE,GAAG,IAA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049
1049
|
"{
|
|
1050
1050
|
"name": "@proj/source",
|
|
1051
1051
|
"dependencies": {
|
|
1052
|
-
"@cloudscape-design/board-components": "3.0.
|
|
1053
|
-
"@cloudscape-design/components": "3.0.
|
|
1052
|
+
"@cloudscape-design/board-components": "3.0.189",
|
|
1053
|
+
"@cloudscape-design/components": "3.0.1308",
|
|
1054
1054
|
"@cloudscape-design/global-styles": "1.0.59",
|
|
1055
|
-
"aws-cdk-lib": "2.
|
|
1055
|
+
"aws-cdk-lib": "2.258.0",
|
|
1056
1056
|
"constructs": "10.6.0",
|
|
1057
1057
|
"react": "19.2.7",
|
|
1058
1058
|
"react-dom": "19.2.7",
|
|
1059
|
-
"tailwindcss": "4.
|
|
1059
|
+
"tailwindcss": "4.2.2"
|
|
1060
1060
|
},
|
|
1061
1061
|
"devDependencies": {
|
|
1062
1062
|
"@nx/js": "22.7.5",
|
|
@@ -1067,20 +1067,20 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1067
1067
|
"@swc-node/register": "~1.11.1",
|
|
1068
1068
|
"@swc/core": "~1.15.5",
|
|
1069
1069
|
"@swc/helpers": "~0.5.18",
|
|
1070
|
-
"@tailwindcss/vite": "4.
|
|
1070
|
+
"@tailwindcss/vite": "4.2.2",
|
|
1071
1071
|
"@testing-library/dom": "10.4.0",
|
|
1072
1072
|
"@testing-library/react": "16.3.0",
|
|
1073
|
-
"@types/node": "25.9.
|
|
1073
|
+
"@types/node": "25.9.2",
|
|
1074
1074
|
"@types/react": "^19.0.0",
|
|
1075
1075
|
"@types/react-dom": "^19.0.0",
|
|
1076
1076
|
"@vitejs/plugin-react": "^6.0.0",
|
|
1077
|
-
"@vitest/coverage-v8": "4.1.
|
|
1078
|
-
"@vitest/ui": "4.1.
|
|
1077
|
+
"@vitest/coverage-v8": "4.1.8",
|
|
1078
|
+
"@vitest/ui": "4.1.8",
|
|
1079
1079
|
"jiti": "2.4.2",
|
|
1080
1080
|
"jsdom": "~22.1.0",
|
|
1081
1081
|
"typescript": "~5.9.2",
|
|
1082
|
-
"vite": "8.0.
|
|
1083
|
-
"vitest": "4.1.
|
|
1082
|
+
"vite": "8.0.16",
|
|
1083
|
+
"vitest": "4.1.8"
|
|
1084
1084
|
},
|
|
1085
1085
|
"type": "module",
|
|
1086
1086
|
"scripts": {
|
|
@@ -1134,6 +1134,9 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1134
1134
|
"sourceRoot": "packages/common/constructs/src",
|
|
1135
1135
|
"projectType": "library",
|
|
1136
1136
|
"tags": [],
|
|
1137
|
+
"metadata": {
|
|
1138
|
+
"generator": "ts#project"
|
|
1139
|
+
},
|
|
1137
1140
|
"targets": {
|
|
1138
1141
|
"build": {
|
|
1139
1142
|
"dependsOn": ["lint", "compile", "test", "@proj/test-app:build"]
|
|
@@ -1169,9 +1172,6 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1169
1172
|
"reportsDirectory": "{workspaceRoot}/coverage/{projectRoot}"
|
|
1170
1173
|
}
|
|
1171
1174
|
}
|
|
1172
|
-
},
|
|
1173
|
-
"metadata": {
|
|
1174
|
-
"generator": "ts#project"
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
"
|
|
@@ -1993,6 +1993,22 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1993
1993
|
"cwd": "{projectRoot}"
|
|
1994
1994
|
}
|
|
1995
1995
|
},
|
|
1996
|
+
"lint": {
|
|
1997
|
+
"executor": "nx:run-commands",
|
|
1998
|
+
"cache": true,
|
|
1999
|
+
"inputs": ["biome"],
|
|
2000
|
+
"options": {
|
|
2001
|
+
"command": "biome lint {projectRoot}"
|
|
2002
|
+
},
|
|
2003
|
+
"configurations": {
|
|
2004
|
+
"fix": {
|
|
2005
|
+
"command": "biome check --write {projectRoot}"
|
|
2006
|
+
},
|
|
2007
|
+
"skip-lint": {
|
|
2008
|
+
"command": "node -e \\"\\""
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
},
|
|
1996
2012
|
"load:runtime-config": {
|
|
1997
2013
|
"executor": "nx:run-commands",
|
|
1998
2014
|
"metadata": {
|
|
@@ -2058,22 +2074,6 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
2058
2074
|
"options": {
|
|
2059
2075
|
"reportsDirectory": "{workspaceRoot}/coverage/{projectRoot}"
|
|
2060
2076
|
}
|
|
2061
|
-
},
|
|
2062
|
-
"lint": {
|
|
2063
|
-
"executor": "nx:run-commands",
|
|
2064
|
-
"cache": true,
|
|
2065
|
-
"inputs": ["biome"],
|
|
2066
|
-
"options": {
|
|
2067
|
-
"command": "biome lint {projectRoot}"
|
|
2068
|
-
},
|
|
2069
|
-
"configurations": {
|
|
2070
|
-
"fix": {
|
|
2071
|
-
"command": "biome check --write {projectRoot}"
|
|
2072
|
-
},
|
|
2073
|
-
"skip-lint": {
|
|
2074
|
-
"command": "node -e \\"\\""
|
|
2075
|
-
}
|
|
2076
|
-
}
|
|
2077
2077
|
}
|
|
2078
2078
|
}
|
|
2079
2079
|
}
|
|
@@ -2603,15 +2603,15 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
2603
2603
|
"{
|
|
2604
2604
|
"name": "@proj/source",
|
|
2605
2605
|
"dependencies": {
|
|
2606
|
-
"@cloudscape-design/board-components": "3.0.
|
|
2607
|
-
"@cloudscape-design/components": "3.0.
|
|
2606
|
+
"@cloudscape-design/board-components": "3.0.189",
|
|
2607
|
+
"@cloudscape-design/components": "3.0.1308",
|
|
2608
2608
|
"@cloudscape-design/global-styles": "1.0.59",
|
|
2609
|
-
"@tanstack/react-router": "1.170.
|
|
2610
|
-
"aws-cdk-lib": "2.
|
|
2609
|
+
"@tanstack/react-router": "1.170.15",
|
|
2610
|
+
"aws-cdk-lib": "2.258.0",
|
|
2611
2611
|
"constructs": "10.6.0",
|
|
2612
2612
|
"react": "19.2.7",
|
|
2613
2613
|
"react-dom": "19.2.7",
|
|
2614
|
-
"tailwindcss": "4.
|
|
2614
|
+
"tailwindcss": "4.2.2"
|
|
2615
2615
|
},
|
|
2616
2616
|
"devDependencies": {
|
|
2617
2617
|
"@nx/js": "22.7.5",
|
|
@@ -2622,24 +2622,24 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
2622
2622
|
"@swc-node/register": "~1.11.1",
|
|
2623
2623
|
"@swc/core": "~1.15.5",
|
|
2624
2624
|
"@swc/helpers": "~0.5.18",
|
|
2625
|
-
"@tailwindcss/vite": "4.
|
|
2626
|
-
"@tanstack/router-generator": "1.167.
|
|
2627
|
-
"@tanstack/router-plugin": "1.168.
|
|
2628
|
-
"@tanstack/router-utils": "1.162.
|
|
2625
|
+
"@tailwindcss/vite": "4.2.2",
|
|
2626
|
+
"@tanstack/router-generator": "1.167.17",
|
|
2627
|
+
"@tanstack/router-plugin": "1.168.18",
|
|
2628
|
+
"@tanstack/router-utils": "1.162.2",
|
|
2629
2629
|
"@tanstack/virtual-file-routes": "1.162.0",
|
|
2630
2630
|
"@testing-library/dom": "10.4.0",
|
|
2631
2631
|
"@testing-library/react": "16.3.0",
|
|
2632
|
-
"@types/node": "25.9.
|
|
2632
|
+
"@types/node": "25.9.2",
|
|
2633
2633
|
"@types/react": "^19.0.0",
|
|
2634
2634
|
"@types/react-dom": "^19.0.0",
|
|
2635
2635
|
"@vitejs/plugin-react": "^6.0.0",
|
|
2636
|
-
"@vitest/coverage-v8": "4.1.
|
|
2637
|
-
"@vitest/ui": "4.1.
|
|
2636
|
+
"@vitest/coverage-v8": "4.1.8",
|
|
2637
|
+
"@vitest/ui": "4.1.8",
|
|
2638
2638
|
"jiti": "2.4.2",
|
|
2639
2639
|
"jsdom": "~22.1.0",
|
|
2640
2640
|
"typescript": "~5.9.2",
|
|
2641
|
-
"vite": "8.0.
|
|
2642
|
-
"vitest": "4.1.
|
|
2641
|
+
"vite": "8.0.16",
|
|
2642
|
+
"vitest": "4.1.8"
|
|
2643
2643
|
},
|
|
2644
2644
|
"type": "module",
|
|
2645
2645
|
"scripts": {
|
|
@@ -2693,6 +2693,9 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
2693
2693
|
"sourceRoot": "packages/common/constructs/src",
|
|
2694
2694
|
"projectType": "library",
|
|
2695
2695
|
"tags": [],
|
|
2696
|
+
"metadata": {
|
|
2697
|
+
"generator": "ts#project"
|
|
2698
|
+
},
|
|
2696
2699
|
"targets": {
|
|
2697
2700
|
"build": {
|
|
2698
2701
|
"dependsOn": ["lint", "compile", "test", "@proj/test-app:build"]
|
|
@@ -2728,9 +2731,6 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
2728
2731
|
"reportsDirectory": "{workspaceRoot}/coverage/{projectRoot}"
|
|
2729
2732
|
}
|
|
2730
2733
|
}
|
|
2731
|
-
},
|
|
2732
|
-
"metadata": {
|
|
2733
|
-
"generator": "ts#project"
|
|
2734
2734
|
}
|
|
2735
2735
|
}
|
|
2736
2736
|
"
|
|
@@ -3552,6 +3552,22 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
3552
3552
|
"cwd": "{projectRoot}"
|
|
3553
3553
|
}
|
|
3554
3554
|
},
|
|
3555
|
+
"lint": {
|
|
3556
|
+
"executor": "nx:run-commands",
|
|
3557
|
+
"cache": true,
|
|
3558
|
+
"inputs": ["biome"],
|
|
3559
|
+
"options": {
|
|
3560
|
+
"command": "biome lint {projectRoot}"
|
|
3561
|
+
},
|
|
3562
|
+
"configurations": {
|
|
3563
|
+
"fix": {
|
|
3564
|
+
"command": "biome check --write {projectRoot}"
|
|
3565
|
+
},
|
|
3566
|
+
"skip-lint": {
|
|
3567
|
+
"command": "node -e \\"\\""
|
|
3568
|
+
}
|
|
3569
|
+
}
|
|
3570
|
+
},
|
|
3555
3571
|
"load:runtime-config": {
|
|
3556
3572
|
"executor": "nx:run-commands",
|
|
3557
3573
|
"metadata": {
|
|
@@ -3617,22 +3633,6 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
3617
3633
|
"options": {
|
|
3618
3634
|
"reportsDirectory": "{workspaceRoot}/coverage/{projectRoot}"
|
|
3619
3635
|
}
|
|
3620
|
-
},
|
|
3621
|
-
"lint": {
|
|
3622
|
-
"executor": "nx:run-commands",
|
|
3623
|
-
"cache": true,
|
|
3624
|
-
"inputs": ["biome"],
|
|
3625
|
-
"options": {
|
|
3626
|
-
"command": "biome lint {projectRoot}"
|
|
3627
|
-
},
|
|
3628
|
-
"configurations": {
|
|
3629
|
-
"fix": {
|
|
3630
|
-
"command": "biome check --write {projectRoot}"
|
|
3631
|
-
},
|
|
3632
|
-
"skip-lint": {
|
|
3633
|
-
"command": "node -e \\"\\""
|
|
3634
|
-
}
|
|
3635
|
-
}
|
|
3636
3636
|
}
|
|
3637
3637
|
}
|
|
3638
3638
|
}
|
|
@@ -4837,15 +4837,15 @@ root &&
|
|
|
4837
4837
|
|
|
4838
4838
|
exports[`react-website generator > should handle npm scope prefix correctly > scoped-dependencies 1`] = `
|
|
4839
4839
|
{
|
|
4840
|
-
"@cloudscape-design/board-components": "3.0.
|
|
4841
|
-
"@cloudscape-design/components": "3.0.
|
|
4840
|
+
"@cloudscape-design/board-components": "3.0.189",
|
|
4841
|
+
"@cloudscape-design/components": "3.0.1308",
|
|
4842
4842
|
"@cloudscape-design/global-styles": "1.0.59",
|
|
4843
|
-
"@tanstack/react-router": "1.170.
|
|
4844
|
-
"aws-cdk-lib": "2.
|
|
4843
|
+
"@tanstack/react-router": "1.170.15",
|
|
4844
|
+
"aws-cdk-lib": "2.258.0",
|
|
4845
4845
|
"constructs": "10.6.0",
|
|
4846
4846
|
"react": "19.2.7",
|
|
4847
4847
|
"react-dom": "19.2.7",
|
|
4848
|
-
"tailwindcss": "4.
|
|
4848
|
+
"tailwindcss": "4.2.2",
|
|
4849
4849
|
}
|
|
4850
4850
|
`;
|
|
4851
4851
|
|
|
@@ -192,24 +192,28 @@ async function tsReactWebsiteGenerator(tree, schema) {
|
|
|
192
192
|
libraryRoot, // destination path of the files
|
|
193
193
|
templateOptions, // config object to replace variable in file templates
|
|
194
194
|
{
|
|
195
|
-
|
|
195
|
+
// User-editable source - preserve any edits on re-run
|
|
196
|
+
overwriteStrategy: devkit_1.OverwriteStrategy.KeepExisting,
|
|
196
197
|
});
|
|
197
198
|
(0, devkit_1.generateFiles)(tree, // the virtual file system
|
|
198
199
|
appTemplatePath, // path to the file templates
|
|
199
200
|
libraryRoot, // destination path of the files
|
|
200
201
|
templateOptions, // config object to replace variable in file templates
|
|
201
202
|
{
|
|
202
|
-
|
|
203
|
+
// User-editable source - preserve any edits on re-run
|
|
204
|
+
overwriteStrategy: devkit_1.OverwriteStrategy.KeepExisting,
|
|
203
205
|
});
|
|
204
206
|
if (tanstackRouter) {
|
|
205
207
|
const routerCommonTemplatePath = (0, devkit_1.joinPathFragments)(__dirname, './files/tanstack-router/common');
|
|
206
208
|
const routerTemplatePath = (0, devkit_1.joinPathFragments)(__dirname, `./files/tanstack-router/${ux.toLowerCase()}`);
|
|
207
209
|
(0, devkit_1.generateFiles)(tree, routerCommonTemplatePath, libraryRoot, templateOptions, {
|
|
208
|
-
|
|
210
|
+
// User-editable source (and the TanStack-managed route tree) - preserve on re-run
|
|
211
|
+
overwriteStrategy: devkit_1.OverwriteStrategy.KeepExisting,
|
|
209
212
|
});
|
|
210
213
|
(0, devkit_1.generateFiles)(tree, routerTemplatePath, libraryRoot, templateOptions, // config object to replace variable in file templates
|
|
211
214
|
{
|
|
212
|
-
|
|
215
|
+
// User-editable source - preserve any edits on re-run
|
|
216
|
+
overwriteStrategy: devkit_1.OverwriteStrategy.KeepExisting,
|
|
213
217
|
});
|
|
214
218
|
tree.delete((0, devkit_1.joinPathFragments)(websiteContentPath, 'src', 'app.tsx'));
|
|
215
219
|
}
|