@aws/nx-plugin 1.0.0-rc.80 → 1.0.0-rc.82
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 +59 -33
- package/migrations.json +31 -21
- package/package.json +5 -5
- package/src/agentcore-gateway/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/infra/app/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/migrations/latest/runtime-config-namespace-defaults/metadata.json +3 -0
- package/src/migrations/latest/runtime-config-namespace-defaults/migration.js +131 -0
- package/src/migrations/latest/runtime-config-namespace-defaults/migration.js.map +1 -0
- package/src/migrations/latest/terraform-load-runtime-config-src-path/metadata.json +3 -0
- package/src/migrations/latest/terraform-load-runtime-config-src-path/migration.d.ts +6 -0
- package/src/migrations/latest/terraform-load-runtime-config-src-path/migration.js +48 -0
- package/src/migrations/latest/terraform-load-runtime-config-src-path/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.73/0001-remove-mcp-inspector-license-exceptions/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.73/0002-apt-security-updates-in-container-images/migration.d.ts +6 -0
- package/src/migrations/v1.0.0-rc.73/0002-apt-security-updates-in-container-images/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.74/0001-py-agent-session-id-middleware-extraction/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.75/0001-ts-agent-session-id-middleware-extraction/migration.js.map +1 -0
- package/src/preset/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/py/agent/__snapshots__/generator.constructs.spec.ts.snap +4 -4
- package/src/py/agent/__snapshots__/generator.frameworks.spec.ts.snap +5 -5
- package/src/py/agent/__snapshots__/generator.protocols.spec.ts.snap +2 -2
- package/src/py/agent/a2a-connection/generator.d.ts +1 -1
- package/src/py/agent/gateway-connection/generator.d.ts +1 -1
- package/src/py/agent/mcp-connection/generator.d.ts +1 -1
- package/src/py/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/py/fast-api/__snapshots__/generator.terraform.spec.ts.snap +12 -12
- package/src/py/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +4 -4
- package/src/py/rdb/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/smithy/project/__snapshots__/generator.spec.ts.snap +5 -5
- package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +8 -8
- package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +12 -12
- package/src/ts/agent/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/astro-docs/generator.d.ts +2 -0
- package/src/ts/astro-docs/generator.js +7 -0
- package/src/ts/astro-docs/generator.js.map +1 -1
- package/src/ts/dcr-proxy/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/ts/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/rdb/__snapshots__/generator.spec.ts.snap +4 -4
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +25 -25
- package/src/ts/react-website/app/generator.js +2 -2
- package/src/ts/react-website/app/generator.js.map +1 -1
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.terraform.spec.ts.snap +2 -2
- package/src/utils/files/terraform/src/core/runtime-config/appconfig/appconfig.tf.template +2 -2
- package/src/utils/files/terraform/src/core/runtime-config/appconfig-deployment/appconfig-deployment.tf.template +1 -1
- package/src/utils/shared-constructs-constants.d.ts +17 -0
- package/src/utils/shared-constructs-constants.js +14 -0
- package/src/utils/shared-constructs-constants.js.map +1 -1
- package/src/utils/versions.d.ts +60 -59
- package/src/utils/versions.js +59 -58
- package/src/utils/versions.js.map +1 -1
- package/src/migrations/latest/apt-security-updates-in-container-images/migration.js.map +0 -1
- package/src/migrations/latest/py-agent-session-id-middleware-extraction/migration.js.map +0 -1
- package/src/migrations/latest/remove-mcp-inspector-license-exceptions/migration.js.map +0 -1
- package/src/migrations/latest/ts-agent-session-id-middleware-extraction/migration.js.map +0 -1
- /package/src/migrations/latest/{apt-security-updates-in-container-images → runtime-config-namespace-defaults}/migration.d.ts +0 -0
- /package/src/migrations/{latest/remove-mcp-inspector-license-exceptions → v1.0.0-rc.73/0001-remove-mcp-inspector-license-exceptions}/metadata.json +0 -0
- /package/src/migrations/{latest/remove-mcp-inspector-license-exceptions → v1.0.0-rc.73/0001-remove-mcp-inspector-license-exceptions}/migration.d.ts +0 -0
- /package/src/migrations/{latest/remove-mcp-inspector-license-exceptions → v1.0.0-rc.73/0001-remove-mcp-inspector-license-exceptions}/migration.js +0 -0
- /package/src/migrations/{latest/apt-security-updates-in-container-images → v1.0.0-rc.73/0002-apt-security-updates-in-container-images}/__snapshots__/migration.spec.ts.snap +0 -0
- /package/src/migrations/{latest/apt-security-updates-in-container-images → v1.0.0-rc.73/0002-apt-security-updates-in-container-images}/metadata.json +0 -0
- /package/src/migrations/{latest/apt-security-updates-in-container-images → v1.0.0-rc.73/0002-apt-security-updates-in-container-images}/migration.js +0 -0
- /package/src/migrations/{latest/py-agent-session-id-middleware-extraction → v1.0.0-rc.74/0001-py-agent-session-id-middleware-extraction}/metadata.json +0 -0
- /package/src/migrations/{latest/py-agent-session-id-middleware-extraction → v1.0.0-rc.74/0001-py-agent-session-id-middleware-extraction}/migration.d.ts +0 -0
- /package/src/migrations/{latest/py-agent-session-id-middleware-extraction → v1.0.0-rc.74/0001-py-agent-session-id-middleware-extraction}/migration.js +0 -0
- /package/src/migrations/{latest/ts-agent-session-id-middleware-extraction → v1.0.0-rc.75/0001-ts-agent-session-id-middleware-extraction}/metadata.json +0 -0
- /package/src/migrations/{latest/ts-agent-session-id-middleware-extraction → v1.0.0-rc.75/0001-ts-agent-session-id-middleware-extraction}/migration.d.ts +0 -0
- /package/src/migrations/{latest/ts-agent-session-id-middleware-extraction → v1.0.0-rc.75/0001-ts-agent-session-id-middleware-extraction}/migration.js +0 -0
|
@@ -413,7 +413,7 @@ terraform {
|
|
|
413
413
|
required_providers {
|
|
414
414
|
aws = {
|
|
415
415
|
source = "hashicorp/aws"
|
|
416
|
-
version = "6.
|
|
416
|
+
version = "6.61.0"
|
|
417
417
|
}
|
|
418
418
|
random = {
|
|
419
419
|
source = "hashicorp/random"
|
|
@@ -672,7 +672,7 @@ exports[`tsSmithyApiGenerator > should generate smithy ts api with Terraform pro
|
|
|
672
672
|
required_providers {
|
|
673
673
|
aws = {
|
|
674
674
|
source = "hashicorp/aws"
|
|
675
|
-
version = "6.
|
|
675
|
+
version = "6.61.0"
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
}
|
|
@@ -1765,7 +1765,7 @@ exports[`tsSmithyApiGenerator > should generate smithy ts api with default optio
|
|
|
1765
1765
|
"rimraf dist/{projectRoot}/build",
|
|
1766
1766
|
"rimraf dist/{projectRoot}/smithy",
|
|
1767
1767
|
"make-dir dist/{projectRoot}/build",
|
|
1768
|
-
"npx -y mise@2026.8.
|
|
1768
|
+
"npx -y mise@2026.8.10 exec smithy@1.73.0 -- smithy build -c {projectRoot}/smithy-build.json --output dist/{projectRoot}/smithy",
|
|
1769
1769
|
"cpy \\"dist/{projectRoot}/smithy/source/openapi/*.openapi.json\\" dist/{projectRoot}/build/openapi --flat --rename=openapi.json"
|
|
1770
1770
|
],
|
|
1771
1771
|
"parallel": false,
|
|
@@ -1904,7 +1904,7 @@ terraform {
|
|
|
1904
1904
|
required_providers {
|
|
1905
1905
|
aws = {
|
|
1906
1906
|
source = "hashicorp/aws"
|
|
1907
|
-
version = "6.
|
|
1907
|
+
version = "6.61.0"
|
|
1908
1908
|
}
|
|
1909
1909
|
random = {
|
|
1910
1910
|
source = "hashicorp/random"
|
|
@@ -2160,7 +2160,7 @@ output "waf_web_acl_arn" {
|
|
|
2160
2160
|
required_providers {
|
|
2161
2161
|
aws = {
|
|
2162
2162
|
source = "hashicorp/aws"
|
|
2163
|
-
version = "6.
|
|
2163
|
+
version = "6.61.0"
|
|
2164
2164
|
}
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
@@ -2879,7 +2879,7 @@ terraform {
|
|
|
2879
2879
|
required_providers {
|
|
2880
2880
|
aws = {
|
|
2881
2881
|
source = "hashicorp/aws"
|
|
2882
|
-
version = "6.
|
|
2882
|
+
version = "6.61.0"
|
|
2883
2883
|
}
|
|
2884
2884
|
random = {
|
|
2885
2885
|
source = "hashicorp/random"
|
|
@@ -3135,7 +3135,7 @@ output "waf_web_acl_arn" {
|
|
|
3135
3135
|
required_providers {
|
|
3136
3136
|
aws = {
|
|
3137
3137
|
source = "hashicorp/aws"
|
|
3138
|
-
version = "6.
|
|
3138
|
+
version = "6.61.0"
|
|
3139
3139
|
}
|
|
3140
3140
|
}
|
|
3141
3141
|
}
|
|
@@ -3839,7 +3839,7 @@ exports[`tsSmithyApiGenerator > terraform iac > should generate terraform with c
|
|
|
3839
3839
|
required_providers {
|
|
3840
3840
|
aws = {
|
|
3841
3841
|
source = "hashicorp/aws"
|
|
3842
|
-
version = "6.
|
|
3842
|
+
version = "6.61.0"
|
|
3843
3843
|
}
|
|
3844
3844
|
}
|
|
3845
3845
|
}
|
|
@@ -3175,7 +3175,7 @@ terraform {
|
|
|
3175
3175
|
required_providers {
|
|
3176
3176
|
aws = {
|
|
3177
3177
|
source = "hashicorp/aws"
|
|
3178
|
-
version = "6.
|
|
3178
|
+
version = "6.61.0"
|
|
3179
3179
|
}
|
|
3180
3180
|
}
|
|
3181
3181
|
}
|
|
@@ -3422,7 +3422,7 @@ output "api_log_group_arn" {
|
|
|
3422
3422
|
required_providers {
|
|
3423
3423
|
aws = {
|
|
3424
3424
|
source = "hashicorp/aws"
|
|
3425
|
-
version = "6.
|
|
3425
|
+
version = "6.61.0"
|
|
3426
3426
|
}
|
|
3427
3427
|
}
|
|
3428
3428
|
}
|
|
@@ -3917,7 +3917,7 @@ terraform {
|
|
|
3917
3917
|
required_providers {
|
|
3918
3918
|
aws = {
|
|
3919
3919
|
source = "hashicorp/aws"
|
|
3920
|
-
version = "6.
|
|
3920
|
+
version = "6.61.0"
|
|
3921
3921
|
}
|
|
3922
3922
|
}
|
|
3923
3923
|
}
|
|
@@ -4164,7 +4164,7 @@ output "api_log_group_arn" {
|
|
|
4164
4164
|
required_providers {
|
|
4165
4165
|
aws = {
|
|
4166
4166
|
source = "hashicorp/aws"
|
|
4167
|
-
version = "6.
|
|
4167
|
+
version = "6.61.0"
|
|
4168
4168
|
}
|
|
4169
4169
|
}
|
|
4170
4170
|
}
|
|
@@ -4731,7 +4731,7 @@ terraform {
|
|
|
4731
4731
|
required_providers {
|
|
4732
4732
|
aws = {
|
|
4733
4733
|
source = "hashicorp/aws"
|
|
4734
|
-
version = "6.
|
|
4734
|
+
version = "6.61.0"
|
|
4735
4735
|
}
|
|
4736
4736
|
}
|
|
4737
4737
|
}
|
|
@@ -4978,7 +4978,7 @@ output "api_log_group_arn" {
|
|
|
4978
4978
|
required_providers {
|
|
4979
4979
|
aws = {
|
|
4980
4980
|
source = "hashicorp/aws"
|
|
4981
|
-
version = "6.
|
|
4981
|
+
version = "6.61.0"
|
|
4982
4982
|
}
|
|
4983
4983
|
}
|
|
4984
4984
|
}
|
|
@@ -5450,7 +5450,7 @@ terraform {
|
|
|
5450
5450
|
required_providers {
|
|
5451
5451
|
aws = {
|
|
5452
5452
|
source = "hashicorp/aws"
|
|
5453
|
-
version = "6.
|
|
5453
|
+
version = "6.61.0"
|
|
5454
5454
|
}
|
|
5455
5455
|
random = {
|
|
5456
5456
|
source = "hashicorp/random"
|
|
@@ -5706,7 +5706,7 @@ output "waf_web_acl_arn" {
|
|
|
5706
5706
|
required_providers {
|
|
5707
5707
|
aws = {
|
|
5708
5708
|
source = "hashicorp/aws"
|
|
5709
|
-
version = "6.
|
|
5709
|
+
version = "6.61.0"
|
|
5710
5710
|
}
|
|
5711
5711
|
}
|
|
5712
5712
|
}
|
|
@@ -6426,7 +6426,7 @@ terraform {
|
|
|
6426
6426
|
required_providers {
|
|
6427
6427
|
aws = {
|
|
6428
6428
|
source = "hashicorp/aws"
|
|
6429
|
-
version = "6.
|
|
6429
|
+
version = "6.61.0"
|
|
6430
6430
|
}
|
|
6431
6431
|
random = {
|
|
6432
6432
|
source = "hashicorp/random"
|
|
@@ -6682,7 +6682,7 @@ output "waf_web_acl_arn" {
|
|
|
6682
6682
|
required_providers {
|
|
6683
6683
|
aws = {
|
|
6684
6684
|
source = "hashicorp/aws"
|
|
6685
|
-
version = "6.
|
|
6685
|
+
version = "6.61.0"
|
|
6686
6686
|
}
|
|
6687
6687
|
}
|
|
6688
6688
|
}
|
|
@@ -7391,7 +7391,7 @@ terraform {
|
|
|
7391
7391
|
required_providers {
|
|
7392
7392
|
aws = {
|
|
7393
7393
|
source = "hashicorp/aws"
|
|
7394
|
-
version = "6.
|
|
7394
|
+
version = "6.61.0"
|
|
7395
7395
|
}
|
|
7396
7396
|
random = {
|
|
7397
7397
|
source = "hashicorp/random"
|
|
@@ -7647,7 +7647,7 @@ output "waf_web_acl_arn" {
|
|
|
7647
7647
|
required_providers {
|
|
7648
7648
|
aws = {
|
|
7649
7649
|
source = "hashicorp/aws"
|
|
7650
|
-
version = "6.
|
|
7650
|
+
version = "6.61.0"
|
|
7651
7651
|
}
|
|
7652
7652
|
}
|
|
7653
7653
|
}
|
|
@@ -1291,7 +1291,7 @@ exports[`ts#agent generator > should match snapshot for Terraform generated file
|
|
|
1291
1291
|
required_providers {
|
|
1292
1292
|
aws = {
|
|
1293
1293
|
source = "hashicorp/aws"
|
|
1294
|
-
version = "6.
|
|
1294
|
+
version = "6.61.0"
|
|
1295
1295
|
}
|
|
1296
1296
|
null = {
|
|
1297
1297
|
source = "hashicorp/null"
|
|
@@ -1707,7 +1707,7 @@ resource "null_resource" "runtime_ready" {
|
|
|
1707
1707
|
|
|
1708
1708
|
provisioner "local-exec" {
|
|
1709
1709
|
command = <<-EOT
|
|
1710
|
-
uv run --with boto3==1.43.
|
|
1710
|
+
uv run --with boto3==1.43.78 python -c "
|
|
1711
1711
|
import boto3
|
|
1712
1712
|
import json
|
|
1713
1713
|
import os
|
|
@@ -13,6 +13,8 @@ export interface TsAstroDocsMetadata {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const DEPENDENCIES: import("../../utils/declared-dependencies.js").DependencyDeclaration<readonly [{
|
|
15
15
|
readonly name: "astro";
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "cookie";
|
|
16
18
|
}, {
|
|
17
19
|
readonly name: "@astrojs/starlight";
|
|
18
20
|
}, {
|
|
@@ -20,6 +20,13 @@ export const DEPENDENCIES = declareDependencies()({
|
|
|
20
20
|
{
|
|
21
21
|
name: 'astro'
|
|
22
22
|
},
|
|
23
|
+
// Astro leaves `cookie` external in the prerender bundle, so the emitted
|
|
24
|
+
// `dist` entry imports it directly. Node resolves that from `dist`, which
|
|
25
|
+
// cannot reach astro's own nested copy, so the docs project declares it to
|
|
26
|
+
// keep a compatible one in reach.
|
|
27
|
+
{
|
|
28
|
+
name: 'cookie'
|
|
29
|
+
},
|
|
23
30
|
{
|
|
24
31
|
name: '@astrojs/starlight'
|
|
25
32
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/nx-plugin/src/ts/astro-docs/generator.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {\n addProjectConfiguration,\n type GeneratorCallback,\n generateFiles,\n joinPathFragments,\n OverwriteStrategy,\n type ProjectConfiguration,\n type Tree,\n} from '@nx/devkit';\nimport { addTsDependencies } from '../../utils/add-dependencies.js';\nimport { declareDependencies } from '../../utils/declared-dependencies.js';\nimport { formatFilesInSubtree } from '../../utils/format.js';\nimport { installDependencies } from '../../utils/install.js';\nimport { addGeneratorMetricsIfApplicable } from '../../utils/metrics.js';\nimport { isEsmWorkspace } from '../../utils/module-format.js';\nimport { toKebabCase } from '../../utils/names.js';\nimport { getNpmScopePrefix } from '../../utils/npm-scope.js';\nimport {\n addGeneratorMetadata,\n getGeneratorInfo,\n type NxGeneratorInfo,\n projectExists,\n} from '../../utils/nx.js';\nimport { getPackageManagerDisplayCommands } from '../../utils/pkg-manager.js';\nimport { ensureProjectPackageJson } from '../../utils/project-package-json.js';\nimport type { TsAstroDocsGeneratorSchema } from './schema';\n\n/** The metadata this generator records, which its predicates read. */\nexport interface TsAstroDocsMetadata {\n readonly framework: string;\n readonly includeTranslation: boolean;\n readonly includeBlog: boolean;\n}\n\n// Each entry names the branch it belongs to, so the same declaration drives both\n// adding and the version sync.\nexport const DEPENDENCIES = declareDependencies<TsAstroDocsMetadata>()({\n ts: [\n { name: 'astro' },\n { name: '@astrojs/starlight' },\n { name: 'starlight-blog', when: (m) => m.includeBlog },\n { name: '@strands-agents/sdk', when: (m) => m.includeTranslation },\n { name: 'commander', when: (m) => m.includeTranslation },\n { name: 'fast-glob', when: (m) => m.includeTranslation },\n { name: 'fs-extra', when: (m) => m.includeTranslation },\n { name: 'simple-git', when: (m) => m.includeTranslation },\n { name: '@types/fs-extra', when: (m) => m.includeTranslation, dev: true },\n // The translate target runs its script from the workspace root via tsx.\n { name: 'tsx', when: (m) => m.includeTranslation, dev: true, root: true },\n ],\n});\n\nexport const TS_ASTRO_DOCS_GENERATOR_INFO: NxGeneratorInfo = getGeneratorInfo(\n import.meta.filename,\n);\n\nexport const tsAstroDocsGenerator = async (\n tree: Tree,\n schema: TsAstroDocsGeneratorSchema,\n): Promise<GeneratorCallback> => {\n const includeTranslation = !(schema.noTranslation ?? false);\n const includeBlog = !(schema.noBlog ?? false);\n const npmScopePrefix = getNpmScopePrefix(tree);\n const docsNameKebabCase = toKebabCase(schema.name);\n const fullyQualifiedName = `${npmScopePrefix}${docsNameKebabCase}`;\n // NB: interactive nx generator cli can pass empty string\n const dir = joinPathFragments(\n schema.directory || '.',\n schema.subDirectory || docsNameKebabCase,\n );\n\n const alreadyExists = projectExists(tree, fullyQualifiedName);\n\n const targets: ProjectConfiguration['targets'] = {\n build: {\n executor: 'nx:run-commands',\n options: {\n command: 'astro build',\n cwd: dir,\n },\n outputs: [`{workspaceRoot}/${dir}/dist`],\n cache: true,\n },\n start: {\n executor: 'nx:run-commands',\n options: {\n command: 'astro dev',\n cwd: dir,\n },\n continuous: true,\n },\n serve: {\n dependsOn: ['start'],\n },\n preview: {\n executor: 'nx:run-commands',\n options: {\n command: 'astro preview',\n cwd: dir,\n },\n dependsOn: ['build'],\n continuous: true,\n },\n };\n\n if (includeTranslation) {\n targets['translate'] = {\n executor: 'nx:run-commands',\n options: {\n command: 'tsx ./scripts/translate.ts',\n cwd: dir,\n forwardAllArgs: true,\n },\n };\n }\n\n if (!alreadyExists) {\n addProjectConfiguration(tree, fullyQualifiedName, {\n name: fullyQualifiedName,\n root: dir,\n sourceRoot: joinPathFragments(dir, 'src'),\n projectType: 'application',\n targets,\n });\n }\n\n ensureProjectPackageJson(tree, { dir, fullyQualifiedName });\n\n const templateOptions = {\n fullyQualifiedName,\n title: schema.name,\n includeTranslation,\n includeBlog,\n esm: isEsmWorkspace(tree),\n pkgMgrCmd: getPackageManagerDisplayCommands().exec,\n today: new Date().toISOString().slice(0, 10),\n };\n\n generateFiles(\n tree,\n joinPathFragments(import.meta.dirname, 'files', 'base'),\n dir,\n templateOptions,\n { overwriteStrategy: OverwriteStrategy.KeepExisting },\n );\n\n // The sample blog post is always emitted above — drop it if the user opted out.\n if (!includeBlog) {\n tree.delete(\n joinPathFragments(\n dir,\n 'src',\n 'content',\n 'docs',\n 'en',\n 'blog',\n 'welcome.mdx',\n ),\n );\n }\n\n if (includeTranslation) {\n generateFiles(\n tree,\n joinPathFragments(import.meta.dirname, 'files', 'translation'),\n dir,\n templateOptions,\n { overwriteStrategy: OverwriteStrategy.KeepExisting },\n );\n }\n\n // Recorded here and read by the declaration's predicates, so the packages\n // added below are exactly the ones the version sync will own.\n const metadata: TsAstroDocsMetadata = {\n framework: 'astro',\n includeTranslation,\n includeBlog,\n };\n addGeneratorMetadata(\n tree,\n fullyQualifiedName,\n TS_ASTRO_DOCS_GENERATOR_INFO,\n metadata,\n );\n\n addTsDependencies(tree, DEPENDENCIES, { metadata, projectRoot: dir });\n\n await addGeneratorMetricsIfApplicable(tree, [TS_ASTRO_DOCS_GENERATOR_INFO]);\n\n await formatFilesInSubtree(tree);\n return () =>\n installDependencies(tree, schema.preferInstallDependencies, {\n languages: ['typescript'],\n });\n};\n\nexport default tsAstroDocsGenerator;\n"],"names":["addProjectConfiguration","generateFiles","joinPathFragments","OverwriteStrategy","addTsDependencies","declareDependencies","formatFilesInSubtree","installDependencies","addGeneratorMetricsIfApplicable","isEsmWorkspace","toKebabCase","getNpmScopePrefix","addGeneratorMetadata","getGeneratorInfo","projectExists","getPackageManagerDisplayCommands","ensureProjectPackageJson","DEPENDENCIES","ts","name","when","m","includeBlog","includeTranslation","dev","root","TS_ASTRO_DOCS_GENERATOR_INFO","filename","tsAstroDocsGenerator","tree","schema","noTranslation","noBlog","npmScopePrefix","docsNameKebabCase","fullyQualifiedName","dir","directory","subDirectory","alreadyExists","targets","build","executor","options","command","cwd","outputs","cache","start","continuous","serve","dependsOn","preview","forwardAllArgs","sourceRoot","projectType","templateOptions","title","esm","pkgMgrCmd","exec","today","Date","toISOString","slice","dirname","overwriteStrategy","KeepExisting","delete","metadata","framework","projectRoot","preferInstallDependencies","languages"],"mappings":"AAAA;;;CAGC,GACD,SACEA,uBAAuB,EAEvBC,aAAa,EACbC,iBAAiB,EACjBC,iBAAiB,QAGZ,aAAa;AACpB,SAASC,iBAAiB,QAAQ,kCAAkC;AACpE,SAASC,mBAAmB,QAAQ,uCAAuC;AAC3E,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,mBAAmB,QAAQ,yBAAyB;AAC7D,SAASC,+BAA+B,QAAQ,yBAAyB;AACzE,SAASC,cAAc,QAAQ,+BAA+B;AAC9D,SAASC,WAAW,QAAQ,uBAAuB;AACnD,SAASC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,YAAY;IAAC;IAGtD,gFAAgF;IAChF,IAAI,CAAC7C,aAAa;QAChBO,KAAKuC,MAAM,CACTlE,kBACEkC,KACA,OACA,WACA,QACA,MACA,QACA;IAGN;IAEA,IAAIb,oBAAoB;QACtBtB,cACE4B,MACA3B,kBAAkB,YAAY+D,OAAO,EAAE,SAAS,gBAChD7B,KACAoB,iBACA;YAAEU,mBAAmB/D,kBAAkBgE,YAAY;QAAC;IAExD;IAEA,0EAA0E;IAC1E,8DAA8D;IAC9D,MAAME,WAAgC;QACpCC,WAAW;QACX/C;QACAD;IACF;IACAV,qBACEiB,MACAM,oBACAT,8BACA2C;IAGFjE,kBAAkByB,MAAMZ,cAAc;QAAEoD;QAAUE,aAAanC;IAAI;IAEnE,MAAM5B,gCAAgCqB,MAAM;QAACH;KAA6B;IAE1E,MAAMpB,qBAAqBuB;IAC3B,OAAO,IACLtB,oBAAoBsB,MAAMC,OAAO0C,yBAAyB,EAAE;YAC1DC,WAAW;gBAAC;aAAa;QAC3B;AACJ,EAAE;AAEF,eAAe7C,qBAAqB"}
|
|
1
|
+
{"version":3,"sources":["../../../../../../packages/nx-plugin/src/ts/astro-docs/generator.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {\n addProjectConfiguration,\n type GeneratorCallback,\n generateFiles,\n joinPathFragments,\n OverwriteStrategy,\n type ProjectConfiguration,\n type Tree,\n} from '@nx/devkit';\nimport { addTsDependencies } from '../../utils/add-dependencies.js';\nimport { declareDependencies } from '../../utils/declared-dependencies.js';\nimport { formatFilesInSubtree } from '../../utils/format.js';\nimport { installDependencies } from '../../utils/install.js';\nimport { addGeneratorMetricsIfApplicable } from '../../utils/metrics.js';\nimport { isEsmWorkspace } from '../../utils/module-format.js';\nimport { toKebabCase } from '../../utils/names.js';\nimport { getNpmScopePrefix } from '../../utils/npm-scope.js';\nimport {\n addGeneratorMetadata,\n getGeneratorInfo,\n type NxGeneratorInfo,\n projectExists,\n} from '../../utils/nx.js';\nimport { getPackageManagerDisplayCommands } from '../../utils/pkg-manager.js';\nimport { ensureProjectPackageJson } from '../../utils/project-package-json.js';\nimport type { TsAstroDocsGeneratorSchema } from './schema';\n\n/** The metadata this generator records, which its predicates read. */\nexport interface TsAstroDocsMetadata {\n readonly framework: string;\n readonly includeTranslation: boolean;\n readonly includeBlog: boolean;\n}\n\n// Each entry names the branch it belongs to, so the same declaration drives both\n// adding and the version sync.\nexport const DEPENDENCIES = declareDependencies<TsAstroDocsMetadata>()({\n ts: [\n { name: 'astro' },\n // Astro leaves `cookie` external in the prerender bundle, so the emitted\n // `dist` entry imports it directly. Node resolves that from `dist`, which\n // cannot reach astro's own nested copy, so the docs project declares it to\n // keep a compatible one in reach.\n { name: 'cookie' },\n { name: '@astrojs/starlight' },\n { name: 'starlight-blog', when: (m) => m.includeBlog },\n { name: '@strands-agents/sdk', when: (m) => m.includeTranslation },\n { name: 'commander', when: (m) => m.includeTranslation },\n { name: 'fast-glob', when: (m) => m.includeTranslation },\n { name: 'fs-extra', when: (m) => m.includeTranslation },\n { name: 'simple-git', when: (m) => m.includeTranslation },\n { name: '@types/fs-extra', when: (m) => m.includeTranslation, dev: true },\n // The translate target runs its script from the workspace root via tsx.\n { name: 'tsx', when: (m) => m.includeTranslation, dev: true, root: true },\n ],\n});\n\nexport const TS_ASTRO_DOCS_GENERATOR_INFO: NxGeneratorInfo = getGeneratorInfo(\n import.meta.filename,\n);\n\nexport const tsAstroDocsGenerator = async (\n tree: Tree,\n schema: TsAstroDocsGeneratorSchema,\n): Promise<GeneratorCallback> => {\n const includeTranslation = !(schema.noTranslation ?? false);\n const includeBlog = !(schema.noBlog ?? false);\n const npmScopePrefix = getNpmScopePrefix(tree);\n const docsNameKebabCase = toKebabCase(schema.name);\n const fullyQualifiedName = `${npmScopePrefix}${docsNameKebabCase}`;\n // NB: interactive nx generator cli can pass empty string\n const dir = joinPathFragments(\n schema.directory || '.',\n schema.subDirectory || docsNameKebabCase,\n );\n\n const alreadyExists = projectExists(tree, fullyQualifiedName);\n\n const targets: ProjectConfiguration['targets'] = {\n build: {\n executor: 'nx:run-commands',\n options: {\n command: 'astro build',\n cwd: dir,\n },\n outputs: [`{workspaceRoot}/${dir}/dist`],\n cache: true,\n },\n start: {\n executor: 'nx:run-commands',\n options: {\n command: 'astro dev',\n cwd: dir,\n },\n continuous: true,\n },\n serve: {\n dependsOn: ['start'],\n },\n preview: {\n executor: 'nx:run-commands',\n options: {\n command: 'astro preview',\n cwd: dir,\n },\n dependsOn: ['build'],\n continuous: true,\n },\n };\n\n if (includeTranslation) {\n targets['translate'] = {\n executor: 'nx:run-commands',\n options: {\n command: 'tsx ./scripts/translate.ts',\n cwd: dir,\n forwardAllArgs: true,\n },\n };\n }\n\n if (!alreadyExists) {\n addProjectConfiguration(tree, fullyQualifiedName, {\n name: fullyQualifiedName,\n root: dir,\n sourceRoot: joinPathFragments(dir, 'src'),\n projectType: 'application',\n targets,\n });\n }\n\n ensureProjectPackageJson(tree, { dir, fullyQualifiedName });\n\n const templateOptions = {\n fullyQualifiedName,\n title: schema.name,\n includeTranslation,\n includeBlog,\n esm: isEsmWorkspace(tree),\n pkgMgrCmd: getPackageManagerDisplayCommands().exec,\n today: new Date().toISOString().slice(0, 10),\n };\n\n generateFiles(\n tree,\n joinPathFragments(import.meta.dirname, 'files', 'base'),\n dir,\n templateOptions,\n { overwriteStrategy: OverwriteStrategy.KeepExisting },\n );\n\n // The sample blog post is always emitted above — drop it if the user opted out.\n if (!includeBlog) {\n tree.delete(\n joinPathFragments(\n dir,\n 'src',\n 'content',\n 'docs',\n 'en',\n 'blog',\n 'welcome.mdx',\n ),\n );\n }\n\n if (includeTranslation) {\n generateFiles(\n tree,\n joinPathFragments(import.meta.dirname, 'files', 'translation'),\n dir,\n templateOptions,\n { overwriteStrategy: OverwriteStrategy.KeepExisting },\n );\n }\n\n // Recorded here and read by the declaration's predicates, so the packages\n // added below are exactly the ones the version sync will own.\n const metadata: TsAstroDocsMetadata = {\n framework: 'astro',\n includeTranslation,\n includeBlog,\n };\n addGeneratorMetadata(\n tree,\n fullyQualifiedName,\n TS_ASTRO_DOCS_GENERATOR_INFO,\n metadata,\n );\n\n addTsDependencies(tree, DEPENDENCIES, { metadata, projectRoot: dir });\n\n await addGeneratorMetricsIfApplicable(tree, [TS_ASTRO_DOCS_GENERATOR_INFO]);\n\n await formatFilesInSubtree(tree);\n return () =>\n installDependencies(tree, schema.preferInstallDependencies, {\n languages: ['typescript'],\n });\n};\n\nexport default tsAstroDocsGenerator;\n"],"names":["addProjectConfiguration","generateFiles","joinPathFragments","OverwriteStrategy","addTsDependencies","declareDependencies","formatFilesInSubtree","installDependencies","addGeneratorMetricsIfApplicable","isEsmWorkspace","toKebabCase","getNpmScopePrefix","addGeneratorMetadata","getGeneratorInfo","projectExists","getPackageManagerDisplayCommands","ensureProjectPackageJson","DEPENDENCIES","ts","name","when","m","includeBlog","includeTranslation","dev","root","TS_ASTRO_DOCS_GENERATOR_INFO","filename","tsAstroDocsGenerator","tree","schema","noTranslation","noBlog","npmScopePrefix","docsNameKebabCase","fullyQualifiedName","dir","directory","subDirectory","alreadyExists","targets","build","executor","options","command","cwd","outputs","cache","start","continuous","serve","dependsOn","preview","forwardAllArgs","sourceRoot","projectType","templateOptions","title","esm","pkgMgrCmd","exec","today","Date","toISOString","slice","dirname","overwriteStrategy","KeepExisting","delete","metadata","framework","projectRoot","preferInstallDependencies","languages"],"mappings":"AAAA;;;CAGC,GACD,SACEA,uBAAuB,EAEvBC,aAAa,EACbC,iBAAiB,EACjBC,iBAAiB,QAGZ,aAAa;AACpB,SAASC,iBAAiB,QAAQ,kCAAkC;AACpE,SAASC,mBAAmB,QAAQ,uCAAuC;AAC3E,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,mBAAmB,QAAQ,yBAAyB;AAC7D,SAASC,+BAA+B,QAAQ,yBAAyB;AACzE,SAASC,cAAc,QAAQ,+BAA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C,KAAK,CAAC,GAAG;IAC3C;IAEA/D,cACE4B,MACA3B,kBAAkB,YAAY+D,OAAO,EAAE,SAAS,SAChD7B,KACAoB,iBACA;QAAEU,mBAAmB/D,kBAAkBgE,YAAY;IAAC;IAGtD,gFAAgF;IAChF,IAAI,CAAC7C,aAAa;QAChBO,KAAKuC,MAAM,CACTlE,kBACEkC,KACA,OACA,WACA,QACA,MACA,QACA;IAGN;IAEA,IAAIb,oBAAoB;QACtBtB,cACE4B,MACA3B,kBAAkB,YAAY+D,OAAO,EAAE,SAAS,gBAChD7B,KACAoB,iBACA;YAAEU,mBAAmB/D,kBAAkBgE,YAAY;QAAC;IAExD;IAEA,0EAA0E;IAC1E,8DAA8D;IAC9D,MAAME,WAAgC;QACpCC,WAAW;QACX/C;QACAD;IACF;IACAV,qBACEiB,MACAM,oBACAT,8BACA2C;IAGFjE,kBAAkByB,MAAMZ,cAAc;QAAEoD;QAAUE,aAAanC;IAAI;IAEnE,MAAM5B,gCAAgCqB,MAAM;QAACH;KAA6B;IAE1E,MAAMpB,qBAAqBuB;IAC3B,OAAO,IACLtB,oBAAoBsB,MAAMC,OAAO0C,yBAAyB,EAAE;YAC1DC,WAAW;gBAAC;aAAa;QAC3B;AACJ,EAAE;AAEF,eAAe7C,qBAAqB"}
|
|
@@ -35,7 +35,7 @@ exports[`ts#dynamodb generator > should generate terraform modules when iac is t
|
|
|
35
35
|
required_providers {
|
|
36
36
|
aws = {
|
|
37
37
|
source = "hashicorp/aws"
|
|
38
|
-
version = "6.
|
|
38
|
+
version = "6.61.0"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -226,7 +226,7 @@ exports[`ts#dynamodb generator > should generate terraform modules when iac is t
|
|
|
226
226
|
required_providers {
|
|
227
227
|
aws = {
|
|
228
228
|
source = "hashicorp/aws"
|
|
229
|
-
version = "6.
|
|
229
|
+
version = "6.61.0"
|
|
230
230
|
}
|
|
231
231
|
random = {
|
|
232
232
|
source = "hashicorp/random"
|
|
@@ -141,7 +141,7 @@ exports[`ts-lambda-function generator > terraform iac > should generate terrafor
|
|
|
141
141
|
required_providers {
|
|
142
142
|
aws = {
|
|
143
143
|
source = "hashicorp/aws"
|
|
144
|
-
version = "6.
|
|
144
|
+
version = "6.61.0"
|
|
145
145
|
}
|
|
146
146
|
archive = {
|
|
147
147
|
source = "hashicorp/archive"
|
|
@@ -322,7 +322,7 @@ exports[`ts-lambda-function generator > terraform iac > should match snapshot fo
|
|
|
322
322
|
required_providers {
|
|
323
323
|
aws = {
|
|
324
324
|
source = "hashicorp/aws"
|
|
325
|
-
version = "6.
|
|
325
|
+
version = "6.61.0"
|
|
326
326
|
}
|
|
327
327
|
archive = {
|
|
328
328
|
source = "hashicorp/archive"
|
|
@@ -155,7 +155,7 @@ exports[`ts#mcp-server generator > should match snapshot for Terraform generated
|
|
|
155
155
|
required_providers {
|
|
156
156
|
aws = {
|
|
157
157
|
source = "hashicorp/aws"
|
|
158
|
-
version = "6.
|
|
158
|
+
version = "6.61.0"
|
|
159
159
|
}
|
|
160
160
|
null = {
|
|
161
161
|
source = "hashicorp/null"
|
|
@@ -571,7 +571,7 @@ resource "null_resource" "runtime_ready" {
|
|
|
571
571
|
|
|
572
572
|
provisioner "local-exec" {
|
|
573
573
|
command = <<-EOT
|
|
574
|
-
uv run --with boto3==1.43.
|
|
574
|
+
uv run --with boto3==1.43.78 python -c "
|
|
575
575
|
import boto3
|
|
576
576
|
import json
|
|
577
577
|
import os
|
|
@@ -800,7 +800,7 @@ terraform {
|
|
|
800
800
|
required_providers {
|
|
801
801
|
aws = {
|
|
802
802
|
source = "hashicorp/aws"
|
|
803
|
-
version = "6.
|
|
803
|
+
version = "6.61.0"
|
|
804
804
|
}
|
|
805
805
|
null = {
|
|
806
806
|
source = "hashicorp/null"
|
|
@@ -1554,7 +1554,7 @@ exports[`ts#rdb generator > should generate terraform modules when iac is Terraf
|
|
|
1554
1554
|
}
|
|
1555
1555
|
aws = {
|
|
1556
1556
|
source = "hashicorp/aws"
|
|
1557
|
-
version = "6.
|
|
1557
|
+
version = "6.61.0"
|
|
1558
1558
|
}
|
|
1559
1559
|
null = {
|
|
1560
1560
|
source = "hashicorp/null"
|
|
@@ -2286,7 +2286,7 @@ terraform {
|
|
|
2286
2286
|
required_providers {
|
|
2287
2287
|
aws = {
|
|
2288
2288
|
source = "hashicorp/aws"
|
|
2289
|
-
version = "6.
|
|
2289
|
+
version = "6.61.0"
|
|
2290
2290
|
}
|
|
2291
2291
|
null = {
|
|
2292
2292
|
source = "hashicorp/null"
|
|
@@ -3040,7 +3040,7 @@ exports[`ts#rdb generator > should generate terraform modules with MySQL engine
|
|
|
3040
3040
|
}
|
|
3041
3041
|
aws = {
|
|
3042
3042
|
source = "hashicorp/aws"
|
|
3043
|
-
version = "6.
|
|
3043
|
+
version = "6.61.0"
|
|
3044
3044
|
}
|
|
3045
3045
|
null = {
|
|
3046
3046
|
source = "hashicorp/null"
|
|
@@ -131,7 +131,7 @@ exports[`react-website generator > TailwindCSS integration > terraform iac > sho
|
|
|
131
131
|
required_providers {
|
|
132
132
|
aws = {
|
|
133
133
|
source = "hashicorp/aws"
|
|
134
|
-
version = "6.
|
|
134
|
+
version = "6.61.0"
|
|
135
135
|
configuration_aliases = [aws.us_east_1]
|
|
136
136
|
}
|
|
137
137
|
random = {
|
|
@@ -741,7 +741,7 @@ resource "null_resource" "upload_website_files" {
|
|
|
741
741
|
provisioner "local-exec" {
|
|
742
742
|
command = <<-EOT
|
|
743
743
|
cd "$ROOT_PATH"
|
|
744
|
-
uv run --with boto3==1.43.
|
|
744
|
+
uv run --with boto3==1.43.78 python3 -c "
|
|
745
745
|
import os
|
|
746
746
|
import sys
|
|
747
747
|
import boto3
|
|
@@ -864,7 +864,7 @@ resource "null_resource" "cloudfront_invalidation" {
|
|
|
864
864
|
|
|
865
865
|
provisioner "local-exec" {
|
|
866
866
|
command = <<-EOT
|
|
867
|
-
uv run --with boto3==1.43.
|
|
867
|
+
uv run --with boto3==1.43.78 python3 -c "
|
|
868
868
|
import boto3
|
|
869
869
|
import os
|
|
870
870
|
import sys
|
|
@@ -950,7 +950,7 @@ output "waf_web_acl_arn" {
|
|
|
950
950
|
required_providers {
|
|
951
951
|
aws = {
|
|
952
952
|
source = "hashicorp/aws"
|
|
953
|
-
version = "6.
|
|
953
|
+
version = "6.61.0"
|
|
954
954
|
configuration_aliases = [aws.us_east_1]
|
|
955
955
|
}
|
|
956
956
|
}
|
|
@@ -1058,7 +1058,7 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1058
1058
|
|
|
1059
1059
|
exports[`react-website generator > Tanstack router integration > should generate website with no router correctly > biome.json 1`] = `
|
|
1060
1060
|
"{
|
|
1061
|
-
"$schema": "https://biomejs.dev/schemas/2.5.
|
|
1061
|
+
"$schema": "https://biomejs.dev/schemas/2.5.10/schema.json",
|
|
1062
1062
|
"root": true,
|
|
1063
1063
|
"formatter": {
|
|
1064
1064
|
"enabled": true,
|
|
@@ -2312,20 +2312,20 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
2312
2312
|
- test-app
|
|
2313
2313
|
- packages/common/*
|
|
2314
2314
|
catalog:
|
|
2315
|
-
vite: 8.2.
|
|
2316
|
-
vitest: 4.1.
|
|
2317
|
-
'@vitest/coverage-v8': 4.1.
|
|
2315
|
+
vite: 8.2.2
|
|
2316
|
+
vitest: 4.1.11
|
|
2317
|
+
'@vitest/coverage-v8': 4.1.11
|
|
2318
2318
|
constructs: 10.8.1
|
|
2319
|
-
aws-cdk-lib: 2.
|
|
2319
|
+
aws-cdk-lib: 2.266.0
|
|
2320
2320
|
'@types/node': 26.2.0
|
|
2321
2321
|
react: 19.2.8
|
|
2322
2322
|
react-dom: 19.2.8
|
|
2323
|
-
'@cloudscape-design/components': 3.0.
|
|
2324
|
-
'@cloudscape-design/board-components': 3.0.
|
|
2325
|
-
'@cloudscape-design/global-styles': 1.0.
|
|
2323
|
+
'@cloudscape-design/components': 3.0.1352
|
|
2324
|
+
'@cloudscape-design/board-components': 3.0.220
|
|
2325
|
+
'@cloudscape-design/global-styles': 1.0.67
|
|
2326
2326
|
tailwindcss: 4.3.3
|
|
2327
2327
|
'@nx/react': 23.1.1
|
|
2328
|
-
'@vitest/ui': 4.1.
|
|
2328
|
+
'@vitest/ui': 4.1.11
|
|
2329
2329
|
'@tailwindcss/vite': 4.3.3
|
|
2330
2330
|
"
|
|
2331
2331
|
`;
|
|
@@ -2917,7 +2917,7 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
2917
2917
|
|
|
2918
2918
|
exports[`react-website generator > Tanstack router integration > should generate website with router correctly > biome.json 1`] = `
|
|
2919
2919
|
"{
|
|
2920
|
-
"$schema": "https://biomejs.dev/schemas/2.5.
|
|
2920
|
+
"$schema": "https://biomejs.dev/schemas/2.5.10/schema.json",
|
|
2921
2921
|
"root": true,
|
|
2922
2922
|
"formatter": {
|
|
2923
2923
|
"enabled": true,
|
|
@@ -4175,24 +4175,24 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
4175
4175
|
- test-app
|
|
4176
4176
|
- packages/common/*
|
|
4177
4177
|
catalog:
|
|
4178
|
-
vite: 8.2.
|
|
4179
|
-
vitest: 4.1.
|
|
4180
|
-
'@vitest/coverage-v8': 4.1.
|
|
4178
|
+
vite: 8.2.2
|
|
4179
|
+
vitest: 4.1.11
|
|
4180
|
+
'@vitest/coverage-v8': 4.1.11
|
|
4181
4181
|
constructs: 10.8.1
|
|
4182
|
-
aws-cdk-lib: 2.
|
|
4182
|
+
aws-cdk-lib: 2.266.0
|
|
4183
4183
|
'@types/node': 26.2.0
|
|
4184
4184
|
react: 19.2.8
|
|
4185
4185
|
react-dom: 19.2.8
|
|
4186
|
-
'@cloudscape-design/components': 3.0.
|
|
4187
|
-
'@cloudscape-design/board-components': 3.0.
|
|
4188
|
-
'@cloudscape-design/global-styles': 1.0.
|
|
4186
|
+
'@cloudscape-design/components': 3.0.1352
|
|
4187
|
+
'@cloudscape-design/board-components': 3.0.220
|
|
4188
|
+
'@cloudscape-design/global-styles': 1.0.67
|
|
4189
4189
|
tailwindcss: 4.3.3
|
|
4190
|
-
'@tanstack/react-router': 1.170.
|
|
4190
|
+
'@tanstack/react-router': 1.170.31
|
|
4191
4191
|
'@nx/react': 23.1.1
|
|
4192
|
-
'@vitest/ui': 4.1.
|
|
4192
|
+
'@vitest/ui': 4.1.11
|
|
4193
4193
|
'@tailwindcss/vite': 4.3.3
|
|
4194
|
-
'@tanstack/router-plugin': 1.168.
|
|
4195
|
-
'@tanstack/router-generator': 1.167.
|
|
4194
|
+
'@tanstack/router-plugin': 1.168.34
|
|
4195
|
+
'@tanstack/router-generator': 1.167.32
|
|
4196
4196
|
'@tanstack/virtual-file-routes': 1.162.0
|
|
4197
4197
|
'@tanstack/router-utils': 1.162.2
|
|
4198
4198
|
"
|
|
@@ -18,7 +18,7 @@ import { sortObjectKeys } from "../../../utils/object.js";
|
|
|
18
18
|
import { getRelativePathToRoot } from "../../../utils/paths.js";
|
|
19
19
|
import { getPackageManagerDisplayCommands } from "../../../utils/pkg-manager.js";
|
|
20
20
|
import { SHARED_CONSTRUCTS_DEPENDENCIES, sharedConstructsGenerator } from "../../../utils/shared-constructs.js";
|
|
21
|
-
import { PACKAGES_DIR, SHARED_SHADCN_DIR } from "../../../utils/shared-constructs-constants.js";
|
|
21
|
+
import { PACKAGES_DIR, SHARED_SHADCN_DIR, TERRAFORM_WEBSITE_RUNTIME_CONFIG_FILE } from "../../../utils/shared-constructs-constants.js";
|
|
22
22
|
import { SHADCN_DEPENDENCIES, sharedShadcnGenerator } from "../../../utils/shared-shadcn.js";
|
|
23
23
|
import { addWebsiteInfra, WEBSITE_CONSTRUCTS_PY_DEPENDENCIES } from "../../../utils/website-constructs/website-constructs.js";
|
|
24
24
|
import { configureTsProject } from "../../lib/ts-project-utils.js";
|
|
@@ -202,7 +202,7 @@ export async function tsReactWebsiteGenerator(tree, schema) {
|
|
|
202
202
|
options: {
|
|
203
203
|
command: 'node -e "const fs=require(\'fs\');fs.mkdirSync(process.env.DEST_DIR,{recursive:true});fs.copyFileSync(process.env.SRC_FILE,process.env.DEST_FILE);"',
|
|
204
204
|
env: {
|
|
205
|
-
SRC_FILE:
|
|
205
|
+
SRC_FILE: TERRAFORM_WEBSITE_RUNTIME_CONFIG_FILE,
|
|
206
206
|
DEST_DIR: `{projectRoot}/public`,
|
|
207
207
|
DEST_FILE: `{projectRoot}/public/runtime-config.json`
|
|
208
208
|
}
|