@aws/nx-plugin 1.0.0-rc.97 → 1.0.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.
Files changed (207) hide show
  1. package/LICENSE-THIRD-PARTY +9 -9
  2. package/migrations.json +125 -115
  3. package/package.json +3 -3
  4. package/src/agentcore-gateway/__snapshots__/generator.spec.ts.snap +1 -1
  5. package/src/infra/app/__snapshots__/generator.spec.ts.snap +4 -4
  6. package/src/infra/app/generator.js +5 -2
  7. package/src/infra/app/generator.js.map +1 -1
  8. package/src/internal/test-matrix/generator.js +2 -2
  9. package/src/internal/test-matrix/generator.js.map +1 -1
  10. package/src/license/sync/generator.d.ts +10 -0
  11. package/src/license/sync/generator.js +1 -1
  12. package/src/license/sync/generator.js.map +1 -1
  13. package/src/migrations/latest/sandbox-pattern-nested-stacks/metadata.json +3 -0
  14. package/src/migrations/latest/sandbox-pattern-nested-stacks/migration.js +68 -0
  15. package/src/migrations/latest/sandbox-pattern-nested-stacks/migration.js.map +1 -0
  16. package/src/migrations/latest/shadcn-cn-package/metadata.json +3 -0
  17. package/src/migrations/latest/shadcn-cn-package/migration.js +114 -0
  18. package/src/migrations/latest/shadcn-cn-package/migration.js.map +1 -0
  19. package/src/migrations/v1.0.0-rc.90/0001-dev-target-depends-on-pull-image/migration.js.map +1 -0
  20. package/src/migrations/v1.0.0-rc.90/0002-open-api-codegen-executor/migration.js.map +1 -0
  21. package/src/migrations/v1.0.0-rc.90/0003-terraform-provider-plugin-cache/migration.js.map +1 -0
  22. package/src/migrations/v1.0.0-rc.90/0004-python-test-input-scoping/migration.js.map +1 -0
  23. package/src/migrations/v1.0.0-rc.90/0005-vitest-coverage-output-dir/migration.js.map +1 -0
  24. package/src/migrations/v1.0.0-rc.90/0006-add-assemble-target/migration.js.map +1 -0
  25. package/src/migrations/v1.0.0-rc.90/0007-docker-target-cache-soundness/migration.js.map +1 -0
  26. package/src/migrations/v1.0.0-rc.90/0008-declare-cacheable-target-inputs/migration.js.map +1 -0
  27. package/src/migrations/v1.0.0-rc.90/0009-terraform-fmt-check/migration.js.map +1 -0
  28. package/src/migrations/v1.0.0-rc.92/0001-react-website-unique-dev-ports/migration.js.map +1 -0
  29. package/src/migrations/v1.0.0-rc.94/0001-infra-deploy-express-mode/migration.js.map +1 -0
  30. package/src/migrations/v1.0.0-rc.94/0002-shx-fs-commands/migration.js.map +1 -0
  31. package/src/migrations/v1.0.0-rc.94/0003-agent-core-vendor-target/migration.js.map +1 -0
  32. package/src/migrations/v1.0.0-rc.95/0001-rolldown-config-bundle-transient/migration.js.map +1 -0
  33. package/src/migrations/v1.0.0-rc.95/0002-agent-connection-pin-strands-peers/migration.js.map +1 -0
  34. package/src/migrations/v1.0.0-rc.95/0003-ignore-package-manager-temp-files/migration.js.map +1 -0
  35. package/src/migrations/v1.0.0-rc.95/0004-shadcn-package-imports-exports/migration.js.map +1 -0
  36. package/src/migrations/v1.0.0-rc.97/0001-gateway-url-accessor/migration.js.map +1 -0
  37. package/src/migrations/v1.0.0-rc.97/0002-checkov-scan-cache-inputs/migration.js.map +1 -0
  38. package/src/migrations/v1.0.0-rc.97/0003-terraform-validate-without-backend/migration.js.map +1 -0
  39. package/src/migrations/v1.0.0-rc.97/0004-py-lambda-powertools-context/migration.d.ts +6 -0
  40. package/src/migrations/v1.0.0-rc.97/0004-py-lambda-powertools-context/migration.js.map +1 -0
  41. package/src/migrations/v1.0.0-rc.97/0005-smithy-extension-trait-aliases/migration.js.map +1 -0
  42. package/src/migrations/v1.0.0-rc.97/0006-script-project-quality-gates/migration.d.ts +6 -0
  43. package/src/migrations/v1.0.0-rc.97/0006-script-project-quality-gates/migration.js.map +1 -0
  44. package/src/preset/__snapshots__/generator.spec.ts.snap +2 -2
  45. package/src/py/agent/__snapshots__/generator.constructs.spec.ts.snap +2 -2
  46. package/src/py/agent/__snapshots__/generator.frameworks.spec.ts.snap +4 -4
  47. package/src/py/agent/__snapshots__/generator.protocols.spec.ts.snap +4 -4
  48. package/src/py/agent/a2a-connection/generator.d.ts +1 -1
  49. package/src/py/agent/gateway-connection/generator.d.ts +1 -1
  50. package/src/py/agent/mcp-connection/generator.d.ts +1 -1
  51. package/src/py/agent/react-connection/generator.d.ts +1 -7
  52. package/src/py/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
  53. package/src/py/fast-api/__snapshots__/generator.terraform.spec.ts.snap +12 -12
  54. package/src/py/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
  55. package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +3 -3
  56. package/src/py/rdb/__snapshots__/generator.spec.ts.snap +3 -3
  57. package/src/smithy/project/__snapshots__/generator.spec.ts.snap +5 -5
  58. package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +8 -8
  59. package/src/terraform/project/schema.d.js +0 -3
  60. package/src/terraform/project/schema.d.js.map +1 -1
  61. package/src/terraform/project/schema.d.ts +0 -4
  62. package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +12 -12
  63. package/src/ts/agent/__snapshots__/generator.spec.ts.snap +4 -4
  64. package/src/ts/agent/a2a-connection/__snapshots__/generator.spec.ts.snap +2 -2
  65. package/src/ts/agent/gateway-connection/__snapshots__/generator.spec.ts.snap +2 -2
  66. package/src/ts/agent/mcp-connection/__snapshots__/generator.spec.ts.snap +2 -2
  67. package/src/ts/agent/react-connection/generator.d.ts +1 -9
  68. package/src/ts/astro-docs/files/translation/scripts/translate.ts.template +47 -2
  69. package/src/ts/dcr-proxy/__snapshots__/generator.spec.ts.snap +1 -1
  70. package/src/ts/dynamodb/__snapshots__/generator.spec.ts.snap +6 -6
  71. package/src/ts/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
  72. package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +3 -3
  73. package/src/ts/mcp-server/files/app/http.ts.template +1 -1
  74. package/src/ts/nx-generator/__snapshots__/generator.spec.ts.snap +2 -2
  75. package/src/ts/nx-generator/files/local/generator.spec.ts.template +2 -2
  76. package/src/ts/nx-migration/generator.js +3 -1
  77. package/src/ts/nx-migration/generator.js.map +1 -1
  78. package/src/ts/nx-plugin/__snapshots__/generator.spec.ts.snap +1 -25
  79. package/src/ts/nx-plugin/generator.js +19 -17
  80. package/src/ts/nx-plugin/generator.js.map +1 -1
  81. package/src/ts/nx-plugin/utils.d.ts +21 -0
  82. package/src/ts/nx-plugin/utils.js +41 -1
  83. package/src/ts/nx-plugin/utils.js.map +1 -1
  84. package/src/ts/rdb/__snapshots__/generator.spec.ts.snap +10 -10
  85. package/src/ts/react-website/agui/generator.d.ts +1 -5
  86. package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +26 -26
  87. package/src/ts/react-website/app/generator.d.ts +1 -5
  88. package/src/ts/react-website/cognito-auth/__snapshots__/generator.terraform.spec.ts.snap +2 -2
  89. package/src/utils/ast.js +55 -16
  90. package/src/utils/ast.js.map +1 -1
  91. package/src/utils/dependencies.d.ts +10 -0
  92. package/src/utils/dependencies.js +93 -1
  93. package/src/utils/dependencies.js.map +1 -1
  94. package/src/utils/files/common/shadcn/src/components/ui/alert.tsx.template +1 -2
  95. package/src/utils/files/common/shadcn/src/components/ui/avatar.tsx.template +1 -2
  96. package/src/utils/files/common/shadcn/src/components/ui/breadcrumb.tsx.template +1 -2
  97. package/src/utils/files/common/shadcn/src/components/ui/button.tsx.template +1 -2
  98. package/src/utils/files/common/shadcn/src/components/ui/card.tsx.template +1 -2
  99. package/src/utils/files/common/shadcn/src/components/ui/input.tsx.template +1 -2
  100. package/src/utils/files/common/shadcn/src/components/ui/separator.tsx.template +1 -2
  101. package/src/utils/files/common/shadcn/src/components/ui/sheet.tsx.template +1 -2
  102. package/src/utils/files/common/shadcn/src/components/ui/sidebar.tsx.template +1 -1
  103. package/src/utils/files/common/shadcn/src/components/ui/skeleton.tsx.template +1 -1
  104. package/src/utils/files/common/shadcn/src/components/ui/spinner.tsx.template +1 -2
  105. package/src/utils/files/common/shadcn/src/components/ui/textarea.tsx.template +1 -2
  106. package/src/utils/files/common/shadcn/src/components/ui/tooltip.tsx.template +1 -2
  107. package/src/utils/files/common/shadcn/src/lib/utils.ts.template +1 -6
  108. package/src/utils/shared-shadcn.d.ts +1 -3
  109. package/src/utils/shared-shadcn.js +1 -4
  110. package/src/utils/shared-shadcn.js.map +1 -1
  111. package/src/utils/versions.d.ts +52 -53
  112. package/src/utils/versions.js +51 -52
  113. package/src/utils/versions.js.map +1 -1
  114. package/src/migrations/latest/add-assemble-target/migration.js.map +0 -1
  115. package/src/migrations/latest/agent-connection-pin-strands-peers/migration.js.map +0 -1
  116. package/src/migrations/latest/agent-core-vendor-target/migration.js.map +0 -1
  117. package/src/migrations/latest/checkov-scan-cache-inputs/migration.js.map +0 -1
  118. package/src/migrations/latest/declare-cacheable-target-inputs/migration.js.map +0 -1
  119. package/src/migrations/latest/dev-target-depends-on-pull-image/migration.js.map +0 -1
  120. package/src/migrations/latest/docker-target-cache-soundness/migration.js.map +0 -1
  121. package/src/migrations/latest/gateway-url-accessor/migration.js.map +0 -1
  122. package/src/migrations/latest/ignore-package-manager-temp-files/migration.js.map +0 -1
  123. package/src/migrations/latest/infra-deploy-express-mode/migration.js.map +0 -1
  124. package/src/migrations/latest/open-api-codegen-executor/migration.js.map +0 -1
  125. package/src/migrations/latest/py-lambda-powertools-context/migration.js.map +0 -1
  126. package/src/migrations/latest/python-test-input-scoping/migration.js.map +0 -1
  127. package/src/migrations/latest/react-website-unique-dev-ports/migration.js.map +0 -1
  128. package/src/migrations/latest/rolldown-config-bundle-transient/migration.js.map +0 -1
  129. package/src/migrations/latest/script-project-quality-gates/migration.js.map +0 -1
  130. package/src/migrations/latest/shadcn-package-imports-exports/migration.js.map +0 -1
  131. package/src/migrations/latest/shx-fs-commands/migration.js.map +0 -1
  132. package/src/migrations/latest/smithy-extension-trait-aliases/migration.js.map +0 -1
  133. package/src/migrations/latest/terraform-fmt-check/migration.js.map +0 -1
  134. package/src/migrations/latest/terraform-provider-plugin-cache/migration.js.map +0 -1
  135. package/src/migrations/latest/terraform-validate-without-backend/migration.js.map +0 -1
  136. package/src/migrations/latest/vitest-coverage-output-dir/migration.js.map +0 -1
  137. /package/src/migrations/latest/{add-assemble-target → sandbox-pattern-nested-stacks}/migration.d.ts +0 -0
  138. /package/src/migrations/latest/{agent-core-vendor-target → shadcn-cn-package}/migration.d.ts +0 -0
  139. /package/src/migrations/{latest/dev-target-depends-on-pull-image → v1.0.0-rc.90/0001-dev-target-depends-on-pull-image}/metadata.json +0 -0
  140. /package/src/migrations/{latest/checkov-scan-cache-inputs → v1.0.0-rc.90/0001-dev-target-depends-on-pull-image}/migration.d.ts +0 -0
  141. /package/src/migrations/{latest/dev-target-depends-on-pull-image → v1.0.0-rc.90/0001-dev-target-depends-on-pull-image}/migration.js +0 -0
  142. /package/src/migrations/{latest/open-api-codegen-executor → v1.0.0-rc.90/0002-open-api-codegen-executor}/metadata.json +0 -0
  143. /package/src/migrations/{latest/declare-cacheable-target-inputs → v1.0.0-rc.90/0002-open-api-codegen-executor}/migration.d.ts +0 -0
  144. /package/src/migrations/{latest/open-api-codegen-executor → v1.0.0-rc.90/0002-open-api-codegen-executor}/migration.js +0 -0
  145. /package/src/migrations/{latest/terraform-provider-plugin-cache → v1.0.0-rc.90/0003-terraform-provider-plugin-cache}/metadata.json +0 -0
  146. /package/src/migrations/{latest/dev-target-depends-on-pull-image → v1.0.0-rc.90/0003-terraform-provider-plugin-cache}/migration.d.ts +0 -0
  147. /package/src/migrations/{latest/terraform-provider-plugin-cache → v1.0.0-rc.90/0003-terraform-provider-plugin-cache}/migration.js +0 -0
  148. /package/src/migrations/{latest/python-test-input-scoping → v1.0.0-rc.90/0004-python-test-input-scoping}/metadata.json +0 -0
  149. /package/src/migrations/{latest/docker-target-cache-soundness → v1.0.0-rc.90/0004-python-test-input-scoping}/migration.d.ts +0 -0
  150. /package/src/migrations/{latest/python-test-input-scoping → v1.0.0-rc.90/0004-python-test-input-scoping}/migration.js +0 -0
  151. /package/src/migrations/{latest/vitest-coverage-output-dir → v1.0.0-rc.90/0005-vitest-coverage-output-dir}/metadata.json +0 -0
  152. /package/src/migrations/{latest/infra-deploy-express-mode → v1.0.0-rc.90/0005-vitest-coverage-output-dir}/migration.d.ts +0 -0
  153. /package/src/migrations/{latest/vitest-coverage-output-dir → v1.0.0-rc.90/0005-vitest-coverage-output-dir}/migration.js +0 -0
  154. /package/src/migrations/{latest/add-assemble-target → v1.0.0-rc.90/0006-add-assemble-target}/metadata.json +0 -0
  155. /package/src/migrations/{latest/open-api-codegen-executor → v1.0.0-rc.90/0006-add-assemble-target}/migration.d.ts +0 -0
  156. /package/src/migrations/{latest/add-assemble-target → v1.0.0-rc.90/0006-add-assemble-target}/migration.js +0 -0
  157. /package/src/migrations/{latest/docker-target-cache-soundness → v1.0.0-rc.90/0007-docker-target-cache-soundness}/metadata.json +0 -0
  158. /package/src/migrations/{latest/py-lambda-powertools-context → v1.0.0-rc.90/0007-docker-target-cache-soundness}/migration.d.ts +0 -0
  159. /package/src/migrations/{latest/docker-target-cache-soundness → v1.0.0-rc.90/0007-docker-target-cache-soundness}/migration.js +0 -0
  160. /package/src/migrations/{latest/declare-cacheable-target-inputs → v1.0.0-rc.90/0008-declare-cacheable-target-inputs}/metadata.json +0 -0
  161. /package/src/migrations/{latest/python-test-input-scoping → v1.0.0-rc.90/0008-declare-cacheable-target-inputs}/migration.d.ts +0 -0
  162. /package/src/migrations/{latest/declare-cacheable-target-inputs → v1.0.0-rc.90/0008-declare-cacheable-target-inputs}/migration.js +0 -0
  163. /package/src/migrations/{latest/terraform-fmt-check → v1.0.0-rc.90/0009-terraform-fmt-check}/metadata.json +0 -0
  164. /package/src/migrations/{latest/react-website-unique-dev-ports → v1.0.0-rc.90/0009-terraform-fmt-check}/migration.d.ts +0 -0
  165. /package/src/migrations/{latest/terraform-fmt-check → v1.0.0-rc.90/0009-terraform-fmt-check}/migration.js +0 -0
  166. /package/src/migrations/{latest/react-website-unique-dev-ports → v1.0.0-rc.92/0001-react-website-unique-dev-ports}/metadata.json +0 -0
  167. /package/src/migrations/{latest/rolldown-config-bundle-transient → v1.0.0-rc.92/0001-react-website-unique-dev-ports}/migration.d.ts +0 -0
  168. /package/src/migrations/{latest/react-website-unique-dev-ports → v1.0.0-rc.92/0001-react-website-unique-dev-ports}/migration.js +0 -0
  169. /package/src/migrations/{latest/infra-deploy-express-mode → v1.0.0-rc.94/0001-infra-deploy-express-mode}/metadata.json +0 -0
  170. /package/src/migrations/{latest/script-project-quality-gates → v1.0.0-rc.94/0001-infra-deploy-express-mode}/migration.d.ts +0 -0
  171. /package/src/migrations/{latest/infra-deploy-express-mode → v1.0.0-rc.94/0001-infra-deploy-express-mode}/migration.js +0 -0
  172. /package/src/migrations/{latest/shx-fs-commands → v1.0.0-rc.94/0002-shx-fs-commands}/metadata.json +0 -0
  173. /package/src/migrations/{latest/shadcn-package-imports-exports → v1.0.0-rc.94/0002-shx-fs-commands}/migration.d.ts +0 -0
  174. /package/src/migrations/{latest/shx-fs-commands → v1.0.0-rc.94/0002-shx-fs-commands}/migration.js +0 -0
  175. /package/src/migrations/{latest/agent-core-vendor-target → v1.0.0-rc.94/0003-agent-core-vendor-target}/metadata.json +0 -0
  176. /package/src/migrations/{latest/shx-fs-commands → v1.0.0-rc.94/0003-agent-core-vendor-target}/migration.d.ts +0 -0
  177. /package/src/migrations/{latest/agent-core-vendor-target → v1.0.0-rc.94/0003-agent-core-vendor-target}/migration.js +0 -0
  178. /package/src/migrations/{latest/rolldown-config-bundle-transient → v1.0.0-rc.95/0001-rolldown-config-bundle-transient}/metadata.json +0 -0
  179. /package/src/migrations/{latest/terraform-fmt-check → v1.0.0-rc.95/0001-rolldown-config-bundle-transient}/migration.d.ts +0 -0
  180. /package/src/migrations/{latest/rolldown-config-bundle-transient → v1.0.0-rc.95/0001-rolldown-config-bundle-transient}/migration.js +0 -0
  181. /package/src/migrations/{latest/agent-connection-pin-strands-peers → v1.0.0-rc.95/0002-agent-connection-pin-strands-peers}/metadata.json +0 -0
  182. /package/src/migrations/{latest/agent-connection-pin-strands-peers → v1.0.0-rc.95/0002-agent-connection-pin-strands-peers}/migration.d.ts +0 -0
  183. /package/src/migrations/{latest/agent-connection-pin-strands-peers → v1.0.0-rc.95/0002-agent-connection-pin-strands-peers}/migration.js +0 -0
  184. /package/src/migrations/{latest/ignore-package-manager-temp-files → v1.0.0-rc.95/0003-ignore-package-manager-temp-files}/metadata.json +0 -0
  185. /package/src/migrations/{latest/ignore-package-manager-temp-files → v1.0.0-rc.95/0003-ignore-package-manager-temp-files}/migration.d.ts +0 -0
  186. /package/src/migrations/{latest/ignore-package-manager-temp-files → v1.0.0-rc.95/0003-ignore-package-manager-temp-files}/migration.js +0 -0
  187. /package/src/migrations/{latest/shadcn-package-imports-exports → v1.0.0-rc.95/0004-shadcn-package-imports-exports}/metadata.json +0 -0
  188. /package/src/migrations/{latest/terraform-provider-plugin-cache → v1.0.0-rc.95/0004-shadcn-package-imports-exports}/migration.d.ts +0 -0
  189. /package/src/migrations/{latest/shadcn-package-imports-exports → v1.0.0-rc.95/0004-shadcn-package-imports-exports}/migration.js +0 -0
  190. /package/src/migrations/{latest/gateway-url-accessor → v1.0.0-rc.97/0001-gateway-url-accessor}/__snapshots__/migration.spec.ts.snap +0 -0
  191. /package/src/migrations/{latest/gateway-url-accessor → v1.0.0-rc.97/0001-gateway-url-accessor}/metadata.json +0 -0
  192. /package/src/migrations/{latest/gateway-url-accessor → v1.0.0-rc.97/0001-gateway-url-accessor}/migration.d.ts +0 -0
  193. /package/src/migrations/{latest/gateway-url-accessor → v1.0.0-rc.97/0001-gateway-url-accessor}/migration.js +0 -0
  194. /package/src/migrations/{latest/checkov-scan-cache-inputs → v1.0.0-rc.97/0002-checkov-scan-cache-inputs}/metadata.json +0 -0
  195. /package/src/migrations/{latest/terraform-validate-without-backend → v1.0.0-rc.97/0002-checkov-scan-cache-inputs}/migration.d.ts +0 -0
  196. /package/src/migrations/{latest/checkov-scan-cache-inputs → v1.0.0-rc.97/0002-checkov-scan-cache-inputs}/migration.js +0 -0
  197. /package/src/migrations/{latest/terraform-validate-without-backend → v1.0.0-rc.97/0003-terraform-validate-without-backend}/metadata.json +0 -0
  198. /package/src/migrations/{latest/vitest-coverage-output-dir → v1.0.0-rc.97/0003-terraform-validate-without-backend}/migration.d.ts +0 -0
  199. /package/src/migrations/{latest/terraform-validate-without-backend → v1.0.0-rc.97/0003-terraform-validate-without-backend}/migration.js +0 -0
  200. /package/src/migrations/{latest/py-lambda-powertools-context → v1.0.0-rc.97/0004-py-lambda-powertools-context}/metadata.json +0 -0
  201. /package/src/migrations/{latest/py-lambda-powertools-context → v1.0.0-rc.97/0004-py-lambda-powertools-context}/migration.js +0 -0
  202. /package/src/migrations/{latest/smithy-extension-trait-aliases → v1.0.0-rc.97/0005-smithy-extension-trait-aliases}/__snapshots__/migration.spec.ts.snap +0 -0
  203. /package/src/migrations/{latest/smithy-extension-trait-aliases → v1.0.0-rc.97/0005-smithy-extension-trait-aliases}/metadata.json +0 -0
  204. /package/src/migrations/{latest/smithy-extension-trait-aliases → v1.0.0-rc.97/0005-smithy-extension-trait-aliases}/migration.d.ts +0 -0
  205. /package/src/migrations/{latest/smithy-extension-trait-aliases → v1.0.0-rc.97/0005-smithy-extension-trait-aliases}/migration.js +0 -0
  206. /package/src/migrations/{latest/script-project-quality-gates → v1.0.0-rc.97/0006-script-project-quality-gates}/metadata.json +0 -0
  207. /package/src/migrations/{latest/script-project-quality-gates → v1.0.0-rc.97/0006-script-project-quality-gates}/migration.js +0 -0
@@ -217,7 +217,7 @@ OTHER DEALINGS IN THE SOFTWARE.
217
217
 
218
218
  ---
219
219
 
220
- The following software may be included in this product: @astral-sh/ruff-wasm-nodejs (0.16.5)
220
+ The following software may be included in this product: @astral-sh/ruff-wasm-nodejs (0.16.6)
221
221
  This software contains the following license and notice below:
222
222
 
223
223
  MIT License
@@ -4945,7 +4945,7 @@ SOFTWARE.
4945
4945
 
4946
4946
  ---
4947
4947
 
4948
- The following software may be included in this product: @oxc-project/types (0.147.0)
4948
+ The following software may be included in this product: @oxc-project/types (0.148.0)
4949
4949
  This software contains the following license and notice below:
4950
4950
 
4951
4951
  MIT License
@@ -5282,7 +5282,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
5282
5282
 
5283
5283
  ---
5284
5284
 
5285
- The following software may be included in this product: @rolldown/binding-linux-x64-gnu (1.2.6)
5285
+ The following software may be included in this product: @rolldown/binding-linux-x64-gnu (1.2.7)
5286
5286
  This software contains the following license and notice below:
5287
5287
 
5288
5288
  MIT License
@@ -5982,7 +5982,7 @@ SOFTWARE
5982
5982
 
5983
5983
  ---
5984
5984
 
5985
- The following software may be included in this product: @types/node (26.4.0)
5985
+ The following software may be included in this product: @types/node (26.4.1)
5986
5986
  This software contains the following license and notice below:
5987
5987
 
5988
5988
  MIT License
@@ -6522,7 +6522,7 @@ SOFTWARE.
6522
6522
 
6523
6523
  ---
6524
6524
 
6525
- The following software may be included in this product: @verdaccio/ui-theme (9.0.0-next-9.28)
6525
+ The following software may be included in this product: @verdaccio/ui-theme (9.0.0-next-9.30)
6526
6526
  This software contains the following license and notice below:
6527
6527
 
6528
6528
  MIT License
@@ -20141,7 +20141,7 @@ SOFTWARE.
20141
20141
 
20142
20142
  ---
20143
20143
 
20144
- The following software may be included in this product: rolldown (1.2.6)
20144
+ The following software may be included in this product: rolldown (1.2.7)
20145
20145
  This software contains the following license and notice below:
20146
20146
 
20147
20147
  MIT License
@@ -22318,7 +22318,7 @@ SOFTWARE.
22318
22318
 
22319
22319
  ---
22320
22320
 
22321
- The following software may be included in this product: tsx (4.23.12)
22321
+ The following software may be included in this product: tsx (4.23.13)
22322
22322
  This software contains the following license and notice below:
22323
22323
 
22324
22324
  MIT License
@@ -22488,7 +22488,7 @@ THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22488
22488
 
22489
22489
  ---
22490
22490
 
22491
- The following software may be included in this product: undici (7.25.0)
22491
+ The following software may be included in this product: undici (7.29.0)
22492
22492
  This software contains the following license and notice below:
22493
22493
 
22494
22494
  MIT License
@@ -23060,7 +23060,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23060
23060
 
23061
23061
  ---
23062
23062
 
23063
- The following software may be included in this product: verdaccio (6.10.1)
23063
+ The following software may be included in this product: verdaccio (6.10.2)
23064
23064
  This software contains the following license and notice below:
23065
23065
 
23066
23066
  MIT License
package/migrations.json CHANGED
@@ -2,120 +2,15 @@
2
2
  "$schema": "http://json-schema.org/schema",
3
3
  "name": "@aws/nx-plugin",
4
4
  "generators": {
5
- "latest-dev-target-depends-on-pull-image": {
6
- "version": "1.0.0-rc.90",
7
- "description": "Add dependsOn pull-image to the dev target of ts#dynamodb and ts#rdb projects",
8
- "implementation": "./src/migrations/latest/dev-target-depends-on-pull-image/migration"
9
- },
10
- "latest-open-api-codegen-executor": {
11
- "version": "1.0.0-rc.90",
12
- "description": "Switch generated OpenAPI codegen targets to the in-process open-api-codegen executor",
13
- "implementation": "./src/migrations/latest/open-api-codegen-executor/migration"
14
- },
15
- "latest-terraform-provider-plugin-cache": {
16
- "version": "1.0.0-rc.90",
17
- "description": "Share Terraform provider downloads across terraform init targets via TF_PLUGIN_CACHE_DIR",
18
- "implementation": "./src/migrations/latest/terraform-provider-plugin-cache/migration"
19
- },
20
- "latest-python-test-input-scoping": {
21
- "version": "1.0.0-rc.90",
22
- "description": "Exclude Python test files from the production named input and scope dependent task outputs to dist so Python test edits do not invalidate build tasks",
23
- "implementation": "./src/migrations/latest/python-test-input-scoping/migration"
5
+ "latest-sandbox-pattern-nested-stacks": {
6
+ "version": "1.0.0-rc.98",
7
+ "description": "Update the deploy-sandbox and destroy-sandbox stage patterns to match stacks nested below the stage's stacks, so cdk destroy removes the website WebACL stack",
8
+ "implementation": "./src/migrations/latest/sandbox-pattern-nested-stacks/migration"
24
9
  },
25
- "latest-vitest-coverage-output-dir": {
26
- "version": "1.0.0-rc.90",
27
- "description": "Write vitest coverage reports to the project's dist directory rather than inside the project",
28
- "implementation": "./src/migrations/latest/vitest-coverage-output-dir/migration"
29
- },
30
- "latest-add-assemble-target": {
31
- "version": "1.0.0-rc.90",
32
- "description": "Add an assemble target as the artifact-only sibling of build, point the deploy targets at it, and narrow compile targets depending on ^build to ^compile",
33
- "implementation": "./src/migrations/latest/add-assemble-target/migration"
34
- },
35
- "latest-docker-target-cache-soundness": {
36
- "version": "1.0.0-rc.90",
37
- "description": "Make container image build and scan targets non-cacheable, so a cache hit can never report success for an image the container engine no longer has",
38
- "implementation": "./src/migrations/latest/docker-target-cache-soundness/migration"
39
- },
40
- "latest-declare-cacheable-target-inputs": {
41
- "version": "1.0.0-rc.90",
42
- "description": "Declare explicit inputs on cacheable bundle, openapi, operations and checkov targets so they no longer read a dependency's whole project directory through Nx's implicit inputs",
43
- "implementation": "./src/migrations/latest/declare-cacheable-target-inputs/migration"
44
- },
45
- "latest-terraform-fmt-check": {
46
- "version": "1.0.0-rc.90",
47
- "description": "Make the terraform fmt target check formatting rather than rewrite its own inputs, moving the write to a fix configuration, and add a lint target which orchestrates it",
48
- "implementation": "./src/migrations/latest/terraform-fmt-check/migration"
49
- },
50
- "latest-react-website-unique-dev-ports": {
51
- "version": "1.0.0-rc.92",
52
- "description": "Assign each react-website project its own dev-server and preview port, and allow-list them for any connected Cognito auth",
53
- "implementation": "./src/migrations/latest/react-website-unique-dev-ports/migration"
54
- },
55
- "latest-infra-deploy-express-mode": {
56
- "version": "1.0.0-rc.94",
57
- "description": "Deploy using CloudFormation express mode from the deploy-sandbox target of ts#infra projects, and wait for full stabilization from deploy",
58
- "implementation": "./src/migrations/latest/infra-deploy-express-mode/migration"
59
- },
60
- "latest-shx-fs-commands": {
61
- "version": "1.0.0-rc.94",
62
- "description": "Replace the ncp, rimraf, make-dir-cli and cpy-cli filesystem CLIs with shx",
63
- "implementation": "./src/migrations/latest/shx-fs-commands/migration"
64
- },
65
- "latest-agent-core-vendor-target": {
66
- "version": "1.0.0-rc.94",
67
- "description": "Cache the AgentCore ADOT install in its own target so editing an agent no longer re-runs it",
68
- "implementation": "./src/migrations/latest/agent-core-vendor-target/migration"
69
- },
70
- "latest-rolldown-config-bundle-transient": {
71
- "version": "1.0.0-rc.95",
72
- "description": "Exclude the transient bundle rolldown writes while loading a TypeScript config from Biome and from git, so a concurrent format or lint target cannot fail on it",
73
- "implementation": "./src/migrations/latest/rolldown-config-bundle-transient/migration"
74
- },
75
- "latest-agent-connection-pin-strands-peers": {
76
- "version": "1.0.0-rc.95",
77
- "description": "Declare @aws-sdk/client-s3 in the shared agent-connection project so @strands-agents/sdk resolves to a single peer-suffixed instance",
78
- "implementation": "./src/migrations/latest/agent-connection-pin-strands-peers/migration"
79
- },
80
- "latest-ignore-package-manager-temp-files": {
81
- "version": "1.0.0-rc.95",
82
- "description": "Ignore the temporary files pnpm writes at the workspace root while materialising packages, which otherwise invalidate the Nx project graph",
83
- "implementation": "./src/migrations/latest/ignore-package-manager-temp-files/migration"
84
- },
85
- "latest-shadcn-package-imports-exports": {
86
- "version": "1.0.0-rc.95",
87
- "description": "Move the shared shadcn package from a tsconfig paths alias to package.json imports/exports, matching the shadcn CLI's own monorepo resolution",
88
- "implementation": "./src/migrations/latest/shadcn-package-imports-exports/migration"
89
- },
90
- "latest-gateway-url-accessor": {
91
- "version": "1.0.0-rc.97",
92
- "description": "Expose a non-optional gatewayUrl accessor on the vended AgentCoreGateway construct",
93
- "implementation": "./src/migrations/latest/gateway-url-accessor/migration"
94
- },
95
- "latest-checkov-scan-cache-inputs": {
96
- "version": "1.0.0-rc.97",
97
- "description": "Scope the CDK infrastructure checkov target's cache inputs so the security scan cannot serve a stale pass",
98
- "implementation": "./src/migrations/latest/checkov-scan-cache-inputs/migration"
99
- },
100
- "latest-terraform-validate-without-backend": {
101
- "version": "1.0.0-rc.97",
102
- "description": "Run the Terraform validate target with -backend=false so it works before bootstrap",
103
- "implementation": "./src/migrations/latest/terraform-validate-without-backend/migration"
104
- },
105
- "latest-py-lambda-powertools-context": {
106
- "version": "1.0.0-rc.97",
107
- "description": "Add powertools Lambda context injection and cold start metrics to Python Lambda handlers",
108
- "implementation": "./src/migrations/latest/py-lambda-powertools-context/migration"
109
- },
110
- "latest-smithy-extension-trait-aliases": {
111
- "version": "1.0.0-rc.97",
112
- "description": "Alias the extensions.smithy vendor-extension traits so Smithy emits x-query / x-mutation / x-cursor",
113
- "implementation": "./src/migrations/latest/smithy-extension-trait-aliases/migration"
114
- },
115
- "latest-script-project-quality-gates": {
116
- "version": "1.0.0-rc.97",
117
- "description": "Add build, lint, format and typecheck targets plus a tsconfig.json to AgentCore Gateway and Harness projects",
118
- "implementation": "./src/migrations/latest/script-project-quality-gates/migration"
10
+ "latest-shadcn-cn-package": {
11
+ "version": "1.0.0-rc.98",
12
+ "description": "Move the shared shadcn package's components onto the cn package the shadcn registry now depends on",
13
+ "implementation": "./src/migrations/latest/shadcn-cn-package/migration"
119
14
  },
120
15
  "v1.0.0-rc.50-0001-modernize-function-props-cast": {
121
16
  "version": "1.0.0-rc.50",
@@ -357,8 +252,123 @@
357
252
  "description": "Set nx.json parallel to 8 so full builds use available cores, preserving an existing value",
358
253
  "implementation": "./src/migrations/v1.0.0-rc.89/0001-nx-parallel-default/migration"
359
254
  },
360
- "sync-vended-versions": {
255
+ "v1.0.0-rc.90-0001-dev-target-depends-on-pull-image": {
256
+ "version": "1.0.0-rc.90",
257
+ "description": "Add dependsOn pull-image to the dev target of ts#dynamodb and ts#rdb projects",
258
+ "implementation": "./src/migrations/v1.0.0-rc.90/0001-dev-target-depends-on-pull-image/migration"
259
+ },
260
+ "v1.0.0-rc.90-0002-open-api-codegen-executor": {
261
+ "version": "1.0.0-rc.90",
262
+ "description": "Switch generated OpenAPI codegen targets to the in-process open-api-codegen executor",
263
+ "implementation": "./src/migrations/v1.0.0-rc.90/0002-open-api-codegen-executor/migration"
264
+ },
265
+ "v1.0.0-rc.90-0003-terraform-provider-plugin-cache": {
266
+ "version": "1.0.0-rc.90",
267
+ "description": "Share Terraform provider downloads across terraform init targets via TF_PLUGIN_CACHE_DIR",
268
+ "implementation": "./src/migrations/v1.0.0-rc.90/0003-terraform-provider-plugin-cache/migration"
269
+ },
270
+ "v1.0.0-rc.90-0004-python-test-input-scoping": {
271
+ "version": "1.0.0-rc.90",
272
+ "description": "Exclude Python test files from the production named input and scope dependent task outputs to dist so Python test edits do not invalidate build tasks",
273
+ "implementation": "./src/migrations/v1.0.0-rc.90/0004-python-test-input-scoping/migration"
274
+ },
275
+ "v1.0.0-rc.90-0005-vitest-coverage-output-dir": {
276
+ "version": "1.0.0-rc.90",
277
+ "description": "Write vitest coverage reports to the project's dist directory rather than inside the project",
278
+ "implementation": "./src/migrations/v1.0.0-rc.90/0005-vitest-coverage-output-dir/migration"
279
+ },
280
+ "v1.0.0-rc.90-0006-add-assemble-target": {
281
+ "version": "1.0.0-rc.90",
282
+ "description": "Add an assemble target as the artifact-only sibling of build, point the deploy targets at it, and narrow compile targets depending on ^build to ^compile",
283
+ "implementation": "./src/migrations/v1.0.0-rc.90/0006-add-assemble-target/migration"
284
+ },
285
+ "v1.0.0-rc.90-0007-docker-target-cache-soundness": {
286
+ "version": "1.0.0-rc.90",
287
+ "description": "Make container image build and scan targets non-cacheable, so a cache hit can never report success for an image the container engine no longer has",
288
+ "implementation": "./src/migrations/v1.0.0-rc.90/0007-docker-target-cache-soundness/migration"
289
+ },
290
+ "v1.0.0-rc.90-0008-declare-cacheable-target-inputs": {
291
+ "version": "1.0.0-rc.90",
292
+ "description": "Declare explicit inputs on cacheable bundle, openapi, operations and checkov targets so they no longer read a dependency's whole project directory through Nx's implicit inputs",
293
+ "implementation": "./src/migrations/v1.0.0-rc.90/0008-declare-cacheable-target-inputs/migration"
294
+ },
295
+ "v1.0.0-rc.90-0009-terraform-fmt-check": {
296
+ "version": "1.0.0-rc.90",
297
+ "description": "Make the terraform fmt target check formatting rather than rewrite its own inputs, moving the write to a fix configuration, and add a lint target which orchestrates it",
298
+ "implementation": "./src/migrations/v1.0.0-rc.90/0009-terraform-fmt-check/migration"
299
+ },
300
+ "v1.0.0-rc.92-0001-react-website-unique-dev-ports": {
301
+ "version": "1.0.0-rc.92",
302
+ "description": "Assign each react-website project its own dev-server and preview port, and allow-list them for any connected Cognito auth",
303
+ "implementation": "./src/migrations/v1.0.0-rc.92/0001-react-website-unique-dev-ports/migration"
304
+ },
305
+ "v1.0.0-rc.94-0001-infra-deploy-express-mode": {
306
+ "version": "1.0.0-rc.94",
307
+ "description": "Deploy using CloudFormation express mode from the deploy-sandbox target of ts#infra projects, and wait for full stabilization from deploy",
308
+ "implementation": "./src/migrations/v1.0.0-rc.94/0001-infra-deploy-express-mode/migration"
309
+ },
310
+ "v1.0.0-rc.94-0002-shx-fs-commands": {
311
+ "version": "1.0.0-rc.94",
312
+ "description": "Replace the ncp, rimraf, make-dir-cli and cpy-cli filesystem CLIs with shx",
313
+ "implementation": "./src/migrations/v1.0.0-rc.94/0002-shx-fs-commands/migration"
314
+ },
315
+ "v1.0.0-rc.94-0003-agent-core-vendor-target": {
316
+ "version": "1.0.0-rc.94",
317
+ "description": "Cache the AgentCore ADOT install in its own target so editing an agent no longer re-runs it",
318
+ "implementation": "./src/migrations/v1.0.0-rc.94/0003-agent-core-vendor-target/migration"
319
+ },
320
+ "v1.0.0-rc.95-0001-rolldown-config-bundle-transient": {
321
+ "version": "1.0.0-rc.95",
322
+ "description": "Exclude the transient bundle rolldown writes while loading a TypeScript config from Biome and from git, so a concurrent format or lint target cannot fail on it",
323
+ "implementation": "./src/migrations/v1.0.0-rc.95/0001-rolldown-config-bundle-transient/migration"
324
+ },
325
+ "v1.0.0-rc.95-0002-agent-connection-pin-strands-peers": {
326
+ "version": "1.0.0-rc.95",
327
+ "description": "Declare @aws-sdk/client-s3 in the shared agent-connection project so @strands-agents/sdk resolves to a single peer-suffixed instance",
328
+ "implementation": "./src/migrations/v1.0.0-rc.95/0002-agent-connection-pin-strands-peers/migration"
329
+ },
330
+ "v1.0.0-rc.95-0003-ignore-package-manager-temp-files": {
331
+ "version": "1.0.0-rc.95",
332
+ "description": "Ignore the temporary files pnpm writes at the workspace root while materialising packages, which otherwise invalidate the Nx project graph",
333
+ "implementation": "./src/migrations/v1.0.0-rc.95/0003-ignore-package-manager-temp-files/migration"
334
+ },
335
+ "v1.0.0-rc.95-0004-shadcn-package-imports-exports": {
336
+ "version": "1.0.0-rc.95",
337
+ "description": "Move the shared shadcn package from a tsconfig paths alias to package.json imports/exports, matching the shadcn CLI's own monorepo resolution",
338
+ "implementation": "./src/migrations/v1.0.0-rc.95/0004-shadcn-package-imports-exports/migration"
339
+ },
340
+ "v1.0.0-rc.97-0001-gateway-url-accessor": {
341
+ "version": "1.0.0-rc.97",
342
+ "description": "Expose a non-optional gatewayUrl accessor on the vended AgentCoreGateway construct",
343
+ "implementation": "./src/migrations/v1.0.0-rc.97/0001-gateway-url-accessor/migration"
344
+ },
345
+ "v1.0.0-rc.97-0002-checkov-scan-cache-inputs": {
361
346
  "version": "1.0.0-rc.97",
347
+ "description": "Scope the CDK infrastructure checkov target's cache inputs so the security scan cannot serve a stale pass",
348
+ "implementation": "./src/migrations/v1.0.0-rc.97/0002-checkov-scan-cache-inputs/migration"
349
+ },
350
+ "v1.0.0-rc.97-0003-terraform-validate-without-backend": {
351
+ "version": "1.0.0-rc.97",
352
+ "description": "Run the Terraform validate target with -backend=false so it works before bootstrap",
353
+ "implementation": "./src/migrations/v1.0.0-rc.97/0003-terraform-validate-without-backend/migration"
354
+ },
355
+ "v1.0.0-rc.97-0004-py-lambda-powertools-context": {
356
+ "version": "1.0.0-rc.97",
357
+ "description": "Add powertools Lambda context injection and cold start metrics to Python Lambda handlers",
358
+ "implementation": "./src/migrations/v1.0.0-rc.97/0004-py-lambda-powertools-context/migration"
359
+ },
360
+ "v1.0.0-rc.97-0005-smithy-extension-trait-aliases": {
361
+ "version": "1.0.0-rc.97",
362
+ "description": "Alias the extensions.smithy vendor-extension traits so Smithy emits x-query / x-mutation / x-cursor",
363
+ "implementation": "./src/migrations/v1.0.0-rc.97/0005-smithy-extension-trait-aliases/migration"
364
+ },
365
+ "v1.0.0-rc.97-0006-script-project-quality-gates": {
366
+ "version": "1.0.0-rc.97",
367
+ "description": "Add build, lint, format and typecheck targets plus a tsconfig.json to AgentCore Gateway and Harness projects",
368
+ "implementation": "./src/migrations/v1.0.0-rc.97/0006-script-project-quality-gates/migration"
369
+ },
370
+ "sync-vended-versions": {
371
+ "version": "1.0.0",
362
372
  "description": "Sync vended dependency versions and the tracked plugin version to those vended by this release",
363
373
  "implementation": "./src/utils/version-upgrade-migration/migration"
364
374
  }
@@ -431,7 +441,7 @@
431
441
  }
432
442
  },
433
443
  "nx-23.2.0-nx-packages": {
434
- "version": "1.0.0-rc.97",
444
+ "version": "1.0.0-rc.96",
435
445
  "packages": {
436
446
  "nx": {
437
447
  "version": "23.2.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/nx-plugin",
3
- "version": "1.0.0-rc.97",
3
+ "version": "1.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",
@@ -40,9 +40,9 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@apidevtools/swagger-parser": "12.1.0",
43
- "@astral-sh/ruff-wasm-nodejs": "0.16.5",
43
+ "@astral-sh/ruff-wasm-nodejs": "0.16.6",
44
44
  "@biomejs/js-api": "6.0.0",
45
- "@biomejs/wasm-nodejs": "2.5.11",
45
+ "@biomejs/wasm-nodejs": "2.5.12",
46
46
  "@getgrit/gritql": "0.0.3",
47
47
  "@iarna/toml": "2.2.5",
48
48
  "@modelcontextprotocol/sdk": "1.30.0",
@@ -7,7 +7,7 @@ exports[`agentcore-gateway generator > protocol: http > omits protocol_type from
7
7
  required_providers {
8
8
  aws = {
9
9
  source = "hashicorp/aws"
10
- version = "6.62.0"
10
+ version = "6.63.0"
11
11
  }
12
12
  time = {
13
13
  source = "hashicorp/time"
@@ -191,7 +191,7 @@ exports[`infra generator > should configure project.json with correct targets >
191
191
  ],
192
192
  "executor": "nx:run-commands",
193
193
  "options": {
194
- "command": "cdk deploy --require-approval=never "proj-test-sandbox/*" --express",
194
+ "command": "cdk deploy --require-approval=never "proj-test-sandbox/**" --express",
195
195
  "cwd": "{projectRoot}",
196
196
  },
197
197
  },
@@ -220,7 +220,7 @@ exports[`infra generator > should configure project.json with correct targets >
220
220
  ],
221
221
  "executor": "nx:run-commands",
222
222
  "options": {
223
- "command": "cdk destroy "proj-test-sandbox/*"",
223
+ "command": "cdk destroy "proj-test-sandbox/**"",
224
224
  "cwd": "{projectRoot}",
225
225
  },
226
226
  },
@@ -803,7 +803,7 @@ exports[`infra generator > should handle custom project names correctly > custom
803
803
  ],
804
804
  "executor": "nx:run-commands",
805
805
  "options": {
806
- "command": "cdk deploy --require-approval=never "proj-custom-infra-sandbox/*" --express",
806
+ "command": "cdk deploy --require-approval=never "proj-custom-infra-sandbox/**" --express",
807
807
  "cwd": "{projectRoot}",
808
808
  },
809
809
  },
@@ -832,7 +832,7 @@ exports[`infra generator > should handle custom project names correctly > custom
832
832
  ],
833
833
  "executor": "nx:run-commands",
834
834
  "options": {
835
- "command": "cdk destroy "proj-custom-infra-sandbox/*"",
835
+ "command": "cdk destroy "proj-custom-infra-sandbox/**"",
836
836
  "cwd": "{projectRoot}",
837
837
  },
838
838
  },
@@ -108,8 +108,11 @@ export async function tsInfraGenerator(tree, schema) {
108
108
  const scopeAlias = npmScopePrefix;
109
109
  const fullyQualifiedName = `${npmScopePrefix}${schema.name}`;
110
110
  const namespace = kebabCase(fullyQualifiedName);
111
- // The stage instantiated in main.ts. Quoted so the shell does not glob `*`.
112
- const sandboxStagePattern = `"${namespace}-sandbox/*"`;
111
+ // The stage instantiated in main.ts. `**` so the pattern also selects stacks
112
+ // nested below the stage's own stacks, such as the `us-east-1` WebACL stack a
113
+ // website creates - `cdk destroy` only deletes the stacks its pattern selects,
114
+ // so a single `*` leaves those behind. Quoted so the shell does not glob.
115
+ const sandboxStagePattern = `"${namespace}-sandbox/**"`;
113
116
  // `tsProjectGenerator` scaffolds a library `src`, which the CDK app layout
114
117
  // replaces. Only on creation — on a re-run this is the user's infrastructure.
115
118
  if (isNewProject) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../packages/nx-plugin/src/infra/app/generator.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {\n type GeneratorCallback,\n generateFiles,\n joinPathFragments,\n OverwriteStrategy,\n type ProjectConfiguration,\n readProjectConfiguration,\n type Tree,\n updateJson,\n} from '@nx/devkit';\nimport path from 'path';\nimport tsProjectGenerator, { getTsLibDetails } from '../../ts/lib/generator.js';\nimport { mergeTsReferences } from '../../ts/lib/ts-project-utils.js';\nimport { addTsDependencies } from '../../utils/add-dependencies.js';\nimport { resolveContainers } from '../../utils/containers.js';\nimport {\n declareDependencies,\n ownedElsewhere,\n} from '../../utils/declared-dependencies.js';\nimport { formatFilesInSubtree } from '../../utils/format.js';\nimport { installDependencies } from '../../utils/install.js';\nimport { addLocalProjectDependency } from '../../utils/local-project-dependency.js';\nimport { addGeneratorMetricsIfApplicable } from '../../utils/metrics.js';\nimport { esmVars } from '../../utils/module-format.js';\nimport { kebabCase } from '../../utils/names.js';\nimport { getNpmScopePrefix } from '../../utils/npm-scope.js';\nimport {\n addArtifactDependencyToTargets,\n addDependencyToTargetIfNotPresent,\n addGeneratorMetadata,\n getGeneratorInfo,\n type NxGeneratorInfo,\n projectExists,\n} from '../../utils/nx.js';\nimport { sortObjectKeys } from '../../utils/object.js';\nimport { getPackageManagerDisplayCommands } from '../../utils/pkg-manager.js';\nimport { uvxCommand } from '../../utils/py.js';\nimport {\n SHARED_CONSTRUCTS_DEPENDENCIES,\n sharedConstructsGenerator,\n} from '../../utils/shared-constructs.js';\nimport {\n PACKAGES_DIR,\n SHARED_CONSTRUCTS_DIR,\n SHARED_INFRA_CONFIG_DIR,\n} from '../../utils/shared-constructs-constants.js';\nimport { sharedInfraConfigGenerator } from '../../utils/shared-infra-config.js';\nimport {\n SHARED_INFRA_SCRIPTS_DEPENDENCIES,\n sharedInfraScriptsGenerator,\n} from '../../utils/shared-infra-scripts.js';\nimport type { TsInfraGeneratorSchema } from './schema';\n\n// This generator records no metadata, so nothing a predicate could read: the\n// CDK app always needs the app libraries, and the CLI, bundler and tsx are\n// shared tooling.\nexport const DEPENDENCIES = declareDependencies()({\n ts: [\n { name: 'aws-cdk-lib' },\n { name: 'constructs' },\n { name: 'source-map-support' },\n // The `aws-cdk` CLI, esbuild (CDK bundling) and tsx are shared tooling.\n { name: 'aws-cdk', dev: true, root: true },\n { name: 'esbuild', dev: true, root: true },\n { name: 'tsx', dev: true, root: true },\n ...ownedElsewhere(SHARED_CONSTRUCTS_DEPENDENCIES),\n ...ownedElsewhere(SHARED_INFRA_SCRIPTS_DEPENDENCIES),\n ],\n});\n\nexport const INFRA_APP_GENERATOR_INFO: NxGeneratorInfo = getGeneratorInfo(\n import.meta.filename,\n);\n\nexport async function tsInfraGenerator(\n tree: Tree,\n schema: TsInfraGeneratorSchema,\n): Promise<GeneratorCallback> {\n const lib = getTsLibDetails(tree, schema);\n\n const isNewProject = !projectExists(tree, lib.fullyQualifiedName);\n if (isNewProject) {\n await tsProjectGenerator(tree, {\n ...schema,\n preferInstallDependencies: false,\n });\n }\n\n // CDK shells out to a container engine to build image assets. Default\n // (docker) needs no env override; finch is set via CDK_DOCKER per\n // https://docs.aws.amazon.com/cdk/v2/guide/build-containers.html#build-container-replace.\n const containers = await resolveContainers(tree, 'inherit');\n const cdkEnv: Record<string, string> | undefined =\n containers === 'docker' ? undefined : { CDK_DOCKER: containers };\n const withCdkEnv = <T extends Record<string, unknown>>(opts: T): T => {\n if (!cdkEnv) return opts;\n const existingEnv = (opts.env as Record<string, string> | undefined) ?? {};\n return { ...opts, env: { ...existingEnv, ...cdkEnv } } as T;\n };\n\n // This generator IS the CDK infrastructure project, so the provider is fixed.\n addGeneratorMetadata(tree, lib.fullyQualifiedName, INFRA_APP_GENERATOR_INFO, {\n iac: 'cdk',\n });\n\n // Shared constructs always in CDK for typescript infra generator\n await sharedConstructsGenerator(\n tree,\n {\n iac: 'cdk',\n },\n DEPENDENCIES,\n );\n\n // Shared infra-config and infra-scripts packages (lazy creation, only when enabled)\n const stageConfig = schema.stageConfig ?? false;\n if (stageConfig) {\n await sharedInfraConfigGenerator(tree);\n await sharedInfraScriptsGenerator(tree, DEPENDENCIES);\n }\n\n const synthDirFromRoot = `/dist/${lib.dir}/cdk.out`;\n const synthDirFromProject =\n lib.dir\n .split('/')\n .map(() => '..')\n .join('/') + `/dist/${lib.dir}/cdk.out`;\n const distDirFromProjectRoot =\n lib.dir\n .split('/')\n .map(() => '..')\n .join('/') + '/dist/{projectRoot}/cdk.out';\n const projectConfig = readProjectConfiguration(tree, lib.fullyQualifiedName);\n const libraryRoot = projectConfig.root;\n const npmScopePrefix = getNpmScopePrefix(tree);\n const scopeAlias = npmScopePrefix;\n const fullyQualifiedName = `${npmScopePrefix}${schema.name}`;\n const namespace = kebabCase(fullyQualifiedName);\n // The stage instantiated in main.ts. Quoted so the shell does not glob `*`.\n const sandboxStagePattern = `\"${namespace}-sandbox/*\"`;\n\n // `tsProjectGenerator` scaffolds a library `src`, which the CDK app layout\n // replaces. Only on creation — on a re-run this is the user's infrastructure.\n if (isNewProject) {\n tree.delete(joinPathFragments(libraryRoot, 'src'));\n }\n\n // The guide walks through declaring resources in\n // `src/stacks/application-stack.ts` and adding stages to `src/main.ts`, so\n // everything here is scaffolded once and then left alone.\n generateFiles(\n tree,\n joinPathFragments(import.meta.dirname, './files/app'),\n libraryRoot,\n {\n synthDir: synthDirFromProject,\n scopeAlias: scopeAlias,\n namespace,\n fullyQualifiedName,\n pkgMgrCmd: getPackageManagerDisplayCommands().exec,\n dir: lib.dir,\n stageConfig,\n ...schema,\n ...esmVars(tree),\n },\n {\n overwriteStrategy: OverwriteStrategy.KeepExisting,\n },\n );\n\n updateJson(\n tree,\n `${libraryRoot}/project.json`,\n (config: ProjectConfiguration) => {\n config.projectType = 'application';\n // `synth` is the CDK artifact, so it belongs on `assemble` too; `checkov`\n // is a quality gate, so it stays on `build` alone.\n addArtifactDependencyToTargets(config, 'synth');\n addDependencyToTargetIfNotPresent(config, 'build', 'checkov');\n config.targets.compile.outputs = [\n '{workspaceRoot}/dist/{projectRoot}/tsc',\n ];\n config.targets.synth = {\n cache: true,\n executor: 'nx:run-commands',\n inputs: ['default'],\n outputs: ['{workspaceRoot}/dist/{projectRoot}/cdk.out'],\n dependsOn: ['^assemble', 'compile'], // compile clobbers dist directory, so ensure synth runs afterwards\n options: withCdkEnv({\n cwd: '{projectRoot}',\n command: 'cdk synth',\n }),\n };\n // `default` rather than the synth directory: `dist` is gitignored, so a\n // fileset input pointed at it matches no tracked file and hashes to a\n // constant — the scan would cache-hit forever and pass on infrastructure\n // it never read. `default` carries the project's own sources plus the\n // transitive `dependentTasksOutputFiles` entry, which resolves against\n // the upstream `synth` task and so hashes the template actually scanned.\n config.targets.checkov = {\n cache: true,\n executor: 'nx:run-commands',\n inputs: ['default'],\n outputs: ['{workspaceRoot}/dist/{projectRoot}/checkov'],\n dependsOn: ['synth'],\n options: {\n command: uvxCommand(\n 'checkov',\n '--config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation',\n ),\n },\n };\n config.targets.deploy = {\n executor: 'nx:run-commands',\n dependsOn: ['^assemble', 'compile'],\n // No --express: this target deploys whichever stage is named, including\n // beta and prod, so it waits for full resource stabilization. Express\n // mode belongs to `deploy-sandbox`, which only ever deploys a sandbox.\n options: stageConfig\n ? withCdkEnv({\n command: `tsx packages/common/scripts/src/infra/infra-deploy.ts ${libraryRoot}`,\n })\n : withCdkEnv({\n cwd: '{projectRoot}',\n command: 'cdk deploy --require-approval=never',\n }),\n };\n config.targets['deploy-sandbox'] = {\n executor: 'nx:run-commands',\n dependsOn: ['^assemble', 'compile'],\n options: stageConfig\n ? withCdkEnv({\n command: `tsx packages/common/scripts/src/infra/infra-deploy.ts ${libraryRoot} ${sandboxStagePattern} --express`,\n })\n : withCdkEnv({\n cwd: '{projectRoot}',\n command: `cdk deploy --require-approval=never ${sandboxStagePattern} --express`,\n }),\n };\n config.targets['deploy-ci'] = {\n executor: 'nx:run-commands',\n options: withCdkEnv({\n cwd: '{projectRoot}',\n command: `cdk deploy --require-approval=never --app ${distDirFromProjectRoot}`,\n }),\n };\n config.targets.destroy = {\n executor: 'nx:run-commands',\n dependsOn: ['^assemble', 'compile'],\n options: stageConfig\n ? withCdkEnv({\n command: `tsx packages/common/scripts/src/infra/infra-destroy.ts ${libraryRoot}`,\n })\n : withCdkEnv({\n cwd: '{projectRoot}',\n command: 'cdk destroy',\n }),\n };\n config.targets['destroy-sandbox'] = {\n executor: 'nx:run-commands',\n dependsOn: ['^assemble', 'compile'],\n options: stageConfig\n ? withCdkEnv({\n command: `tsx packages/common/scripts/src/infra/infra-destroy.ts ${libraryRoot} ${sandboxStagePattern}`,\n })\n : withCdkEnv({\n cwd: '{projectRoot}',\n command: `cdk destroy ${sandboxStagePattern}`,\n }),\n };\n config.targets['destroy-ci'] = {\n executor: 'nx:run-commands',\n options: withCdkEnv({\n cwd: '{projectRoot}',\n command: `cdk destroy --app ${distDirFromProjectRoot}`,\n }),\n };\n config.targets.cdk = {\n executor: 'nx:run-commands',\n options: withCdkEnv({\n cwd: '{projectRoot}',\n command: 'cdk',\n }),\n };\n config.targets.bootstrap = {\n executor: 'nx:run-commands',\n options: withCdkEnv({\n cwd: '{projectRoot}',\n command: 'cdk bootstrap',\n }),\n };\n config.targets = sortObjectKeys(config.targets);\n return config;\n },\n );\n\n addTsDependencies(tree, DEPENDENCIES, { projectRoot: libraryRoot });\n\n updateJson(tree, `${libraryRoot}/tsconfig.lib.json`, (tsConfig) => ({\n ...tsConfig,\n references: mergeTsReferences(tsConfig.references, [\n {\n path: `${path.relative(\n libraryRoot,\n `${tree.root}/${PACKAGES_DIR}`,\n )}/${SHARED_CONSTRUCTS_DIR}/tsconfig.lib.json`,\n },\n ...(stageConfig\n ? [\n {\n path: `${path.relative(\n libraryRoot,\n `${tree.root}/${PACKAGES_DIR}`,\n )}/${SHARED_INFRA_CONFIG_DIR}/tsconfig.json`,\n },\n ]\n : []),\n ]),\n }));\n\n // `main.ts` and the application stack import the shared constructs.\n addLocalProjectDependency(tree, {\n consumerRoot: libraryRoot,\n dependencyRoot: joinPathFragments(PACKAGES_DIR, SHARED_CONSTRUCTS_DIR),\n });\n if (stageConfig) {\n addLocalProjectDependency(tree, {\n consumerRoot: libraryRoot,\n dependencyRoot: joinPathFragments(PACKAGES_DIR, SHARED_INFRA_CONFIG_DIR),\n });\n }\n\n await addGeneratorMetricsIfApplicable(tree, [INFRA_APP_GENERATOR_INFO]);\n\n await formatFilesInSubtree(tree);\n return () =>\n installDependencies(tree, schema.preferInstallDependencies, {\n languages: ['typescript'],\n });\n}\nexport default tsInfraGenerator;\n"],"names":["generateFiles","joinPathFragments","OverwriteStrategy","readProjectConfiguration","updateJson","path","tsProjectGenerator","getTsLibDetails","mergeTsReferences","addTsDependencies","resolveContainers","declareDependencies","ownedElsewhere","formatFilesInSubtree","installDependencies","addLocalProjectDependency","addGeneratorMetricsIfApplicable","esmVars","kebabCase","getNpmScopePrefix","addArtifactDependencyToTargets","addDependencyToTargetIfNotPresent","addGeneratorMetadata","getGeneratorInfo","projectExists","sortObjectKeys","getPackageManagerDisplayCommands","uvxCommand","SHARED_CONSTRUCTS_DEPENDENCIES","sharedConstructsGenerator","PACKAGES_DIR","SHARED_CONSTRUCTS_DIR","SHARED_INFRA_CONFIG_DIR","sharedInfraConfigGenerator","SHARED_INFRA_SCRIPTS_DEPENDENCIES","sharedInfraScriptsGenerator","DEPENDENCIES","ts","name","dev","root","INFRA_APP_GENERATOR_INFO","filename","tsInfraGenerator","tree","schema","lib","isNewProject","fullyQualifiedName","preferInstallDependencies","containers","cdkEnv","undefined","CDK_DOCKER","withCdkEnv","opts","existingEnv","env","iac","stageConfig","synthDirFromRoot","dir","synthDirFromProject","split","map","join","distDirFromProjectRoot","projectConfig","libraryRoot","npmScopePrefix","scopeAlias","namespace","sandboxStagePattern","delete","dirname","synthDir","pkgMgrCmd","exec","overwriteStrategy","KeepExisting","config","projectType","targets","compile","outputs","synth","cache","executor","inputs","dependsOn","options","cwd","command","checkov","deploy","destroy","cdk","bootstrap","projectRoot","tsConfig","references","relative","consumerRoot","dependencyRoot","languages"],"mappings":"AAAA;;;CAGC,GACD,SAEEA,aAAa,EACbC,iBAAiB,EACjBC,iBAAiB,EAEjBC,wBAAwB,EAExBC,UAAU,QACL,aAAa;AACpB,OAAOC,UAAU,OAAO;AACxB,OAAOC,sBAAsBC,eAAe,QAAQ,4BAA4B;AAChF,SAASC,iBAAiB,QAAQ,mCAAmC;AACrE,SAASC,iBAAiB,QAAQ,kCAAkC;AACpE,SAASC,iBAAiB,QAAQ,4BAA4B;AAC9D,SACEC,mBAAmB,EACnBC,cAAc,QACT,uCAAuC;AAC9C,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,mBAAmB,QAAQ,yBAAyB;AAC7D,SAASC,yBAAyB,QAAQ,0CAA0C;AACpF,SAASC,+BAA+B,QAAQ,yBAAyB;AACzE,SAASC,OAAO,QAAQ,+BAA+B;AACvD,SAASC,SAAS,QAAQ,uBAAuB;AACjD,SAASC,iBAAiB,QAAQ,2BAA2B;AAC7D,SACEC,8BAA8B,EAC9BC,iCAAiC,EACjCC,oBAAoB,EACpBC,gBAAgB,EAEhBC,aAAa,QACR,oBAAoB;AAC3B,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,gCAAgC,QAAQ,6BAA6B;AAC9E,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SACEC,8BAA8B,EAC9BC,yBAAyB,QACpB,mCAAmC;AAC1C,SACEC,YAAY,EACZC,qBAAqB,EACrBC,uBAAuB,QAClB,6CAA6C;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B,CAAC,EAAE,CAAC+B,WAAc,CAAA;YAClE,GAAGA,QAAQ;YACXC,YAAY5F,kBAAkB2F,SAASC,UAAU,EAAE;gBACjD;oBACE/F,MAAM,GAAGA,KAAKgG,QAAQ,CACpBjC,aACA,GAAGxB,KAAKJ,IAAI,CAAC,CAAC,EAAEV,cAAc,EAC9B,CAAC,EAAEC,sBAAsB,kBAAkB,CAAC;gBAChD;mBACI4B,cACA;oBACE;wBACEtD,MAAM,GAAGA,KAAKgG,QAAQ,CACpBjC,aACA,GAAGxB,KAAKJ,IAAI,CAAC,CAAC,EAAEV,cAAc,EAC9B,CAAC,EAAEE,wBAAwB,cAAc,CAAC;oBAC9C;iBACD,GACD,EAAE;aACP;QACH,CAAA;IAEA,oEAAoE;IACpEjB,0BAA0B6B,MAAM;QAC9B0D,cAAclC;QACdmC,gBAAgBtG,kBAAkB6B,cAAcC;IAClD;IACA,IAAI4B,aAAa;QACf5C,0BAA0B6B,MAAM;YAC9B0D,cAAclC;YACdmC,gBAAgBtG,kBAAkB6B,cAAcE;QAClD;IACF;IAEA,MAAMhB,gCAAgC4B,MAAM;QAACH;KAAyB;IAEtE,MAAM5B,qBAAqB+B;IAC3B,OAAO,IACL9B,oBAAoB8B,MAAMC,OAAOI,yBAAyB,EAAE;YAC1DuD,WAAW;gBAAC;aAAa;QAC3B;AACJ;AACA,eAAe7D,iBAAiB"}
1
+ {"version":3,"sources":["../../../../../../packages/nx-plugin/src/infra/app/generator.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {\n type GeneratorCallback,\n generateFiles,\n joinPathFragments,\n OverwriteStrategy,\n type ProjectConfiguration,\n readProjectConfiguration,\n type Tree,\n updateJson,\n} from '@nx/devkit';\nimport path from 'path';\nimport tsProjectGenerator, { getTsLibDetails } from '../../ts/lib/generator.js';\nimport { mergeTsReferences } from '../../ts/lib/ts-project-utils.js';\nimport { addTsDependencies } from '../../utils/add-dependencies.js';\nimport { resolveContainers } from '../../utils/containers.js';\nimport {\n declareDependencies,\n ownedElsewhere,\n} from '../../utils/declared-dependencies.js';\nimport { formatFilesInSubtree } from '../../utils/format.js';\nimport { installDependencies } from '../../utils/install.js';\nimport { addLocalProjectDependency } from '../../utils/local-project-dependency.js';\nimport { addGeneratorMetricsIfApplicable } from '../../utils/metrics.js';\nimport { esmVars } from '../../utils/module-format.js';\nimport { kebabCase } from '../../utils/names.js';\nimport { getNpmScopePrefix } from '../../utils/npm-scope.js';\nimport {\n addArtifactDependencyToTargets,\n addDependencyToTargetIfNotPresent,\n addGeneratorMetadata,\n getGeneratorInfo,\n type NxGeneratorInfo,\n projectExists,\n} from '../../utils/nx.js';\nimport { sortObjectKeys } from '../../utils/object.js';\nimport { getPackageManagerDisplayCommands } from '../../utils/pkg-manager.js';\nimport { uvxCommand } from '../../utils/py.js';\nimport {\n SHARED_CONSTRUCTS_DEPENDENCIES,\n sharedConstructsGenerator,\n} from '../../utils/shared-constructs.js';\nimport {\n PACKAGES_DIR,\n SHARED_CONSTRUCTS_DIR,\n SHARED_INFRA_CONFIG_DIR,\n} from '../../utils/shared-constructs-constants.js';\nimport { sharedInfraConfigGenerator } from '../../utils/shared-infra-config.js';\nimport {\n SHARED_INFRA_SCRIPTS_DEPENDENCIES,\n sharedInfraScriptsGenerator,\n} from '../../utils/shared-infra-scripts.js';\nimport type { TsInfraGeneratorSchema } from './schema';\n\n// This generator records no metadata, so nothing a predicate could read: the\n// CDK app always needs the app libraries, and the CLI, bundler and tsx are\n// shared tooling.\nexport const DEPENDENCIES = declareDependencies()({\n ts: [\n { name: 'aws-cdk-lib' },\n { name: 'constructs' },\n { name: 'source-map-support' },\n // The `aws-cdk` CLI, esbuild (CDK bundling) and tsx are shared tooling.\n { name: 'aws-cdk', dev: true, root: true },\n { name: 'esbuild', dev: true, root: true },\n { name: 'tsx', dev: true, root: true },\n ...ownedElsewhere(SHARED_CONSTRUCTS_DEPENDENCIES),\n ...ownedElsewhere(SHARED_INFRA_SCRIPTS_DEPENDENCIES),\n ],\n});\n\nexport const INFRA_APP_GENERATOR_INFO: NxGeneratorInfo = getGeneratorInfo(\n import.meta.filename,\n);\n\nexport async function tsInfraGenerator(\n tree: Tree,\n schema: TsInfraGeneratorSchema,\n): Promise<GeneratorCallback> {\n const lib = getTsLibDetails(tree, schema);\n\n const isNewProject = !projectExists(tree, lib.fullyQualifiedName);\n if (isNewProject) {\n await tsProjectGenerator(tree, {\n ...schema,\n preferInstallDependencies: false,\n });\n }\n\n // CDK shells out to a container engine to build image assets. Default\n // (docker) needs no env override; finch is set via CDK_DOCKER per\n // https://docs.aws.amazon.com/cdk/v2/guide/build-containers.html#build-container-replace.\n const containers = await resolveContainers(tree, 'inherit');\n const cdkEnv: Record<string, string> | undefined =\n containers === 'docker' ? undefined : { CDK_DOCKER: containers };\n const withCdkEnv = <T extends Record<string, unknown>>(opts: T): T => {\n if (!cdkEnv) return opts;\n const existingEnv = (opts.env as Record<string, string> | undefined) ?? {};\n return { ...opts, env: { ...existingEnv, ...cdkEnv } } as T;\n };\n\n // This generator IS the CDK infrastructure project, so the provider is fixed.\n addGeneratorMetadata(tree, lib.fullyQualifiedName, INFRA_APP_GENERATOR_INFO, {\n iac: 'cdk',\n });\n\n // Shared constructs always in CDK for typescript infra generator\n await sharedConstructsGenerator(\n tree,\n {\n iac: 'cdk',\n },\n DEPENDENCIES,\n );\n\n // Shared infra-config and infra-scripts packages (lazy creation, only when enabled)\n const stageConfig = schema.stageConfig ?? false;\n if (stageConfig) {\n await sharedInfraConfigGenerator(tree);\n await sharedInfraScriptsGenerator(tree, DEPENDENCIES);\n }\n\n const synthDirFromRoot = `/dist/${lib.dir}/cdk.out`;\n const synthDirFromProject =\n lib.dir\n .split('/')\n .map(() => '..')\n .join('/') + `/dist/${lib.dir}/cdk.out`;\n const distDirFromProjectRoot =\n lib.dir\n .split('/')\n .map(() => '..')\n .join('/') + '/dist/{projectRoot}/cdk.out';\n const projectConfig = readProjectConfiguration(tree, lib.fullyQualifiedName);\n const libraryRoot = projectConfig.root;\n const npmScopePrefix = getNpmScopePrefix(tree);\n const scopeAlias = npmScopePrefix;\n const fullyQualifiedName = `${npmScopePrefix}${schema.name}`;\n const namespace = kebabCase(fullyQualifiedName);\n // The stage instantiated in main.ts. `**` so the pattern also selects stacks\n // nested below the stage's own stacks, such as the `us-east-1` WebACL stack a\n // website creates - `cdk destroy` only deletes the stacks its pattern selects,\n // so a single `*` leaves those behind. Quoted so the shell does not glob.\n const sandboxStagePattern = `\"${namespace}-sandbox/**\"`;\n\n // `tsProjectGenerator` scaffolds a library `src`, which the CDK app layout\n // replaces. Only on creation — on a re-run this is the user's infrastructure.\n if (isNewProject) {\n tree.delete(joinPathFragments(libraryRoot, 'src'));\n }\n\n // The guide walks through declaring resources in\n // `src/stacks/application-stack.ts` and adding stages to `src/main.ts`, so\n // everything here is scaffolded once and then left alone.\n generateFiles(\n tree,\n joinPathFragments(import.meta.dirname, './files/app'),\n libraryRoot,\n {\n synthDir: synthDirFromProject,\n scopeAlias: scopeAlias,\n namespace,\n fullyQualifiedName,\n pkgMgrCmd: getPackageManagerDisplayCommands().exec,\n dir: lib.dir,\n stageConfig,\n ...schema,\n ...esmVars(tree),\n },\n {\n overwriteStrategy: OverwriteStrategy.KeepExisting,\n },\n );\n\n updateJson(\n tree,\n `${libraryRoot}/project.json`,\n (config: ProjectConfiguration) => {\n config.projectType = 'application';\n // `synth` is the CDK artifact, so it belongs on `assemble` too; `checkov`\n // is a quality gate, so it stays on `build` alone.\n addArtifactDependencyToTargets(config, 'synth');\n addDependencyToTargetIfNotPresent(config, 'build', 'checkov');\n config.targets.compile.outputs = [\n '{workspaceRoot}/dist/{projectRoot}/tsc',\n ];\n config.targets.synth = {\n cache: true,\n executor: 'nx:run-commands',\n inputs: ['default'],\n outputs: ['{workspaceRoot}/dist/{projectRoot}/cdk.out'],\n dependsOn: ['^assemble', 'compile'], // compile clobbers dist directory, so ensure synth runs afterwards\n options: withCdkEnv({\n cwd: '{projectRoot}',\n command: 'cdk synth',\n }),\n };\n // `default` rather than the synth directory: `dist` is gitignored, so a\n // fileset input pointed at it matches no tracked file and hashes to a\n // constant — the scan would cache-hit forever and pass on infrastructure\n // it never read. `default` carries the project's own sources plus the\n // transitive `dependentTasksOutputFiles` entry, which resolves against\n // the upstream `synth` task and so hashes the template actually scanned.\n config.targets.checkov = {\n cache: true,\n executor: 'nx:run-commands',\n inputs: ['default'],\n outputs: ['{workspaceRoot}/dist/{projectRoot}/checkov'],\n dependsOn: ['synth'],\n options: {\n command: uvxCommand(\n 'checkov',\n '--config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation',\n ),\n },\n };\n config.targets.deploy = {\n executor: 'nx:run-commands',\n dependsOn: ['^assemble', 'compile'],\n // No --express: this target deploys whichever stage is named, including\n // beta and prod, so it waits for full resource stabilization. Express\n // mode belongs to `deploy-sandbox`, which only ever deploys a sandbox.\n options: stageConfig\n ? withCdkEnv({\n command: `tsx packages/common/scripts/src/infra/infra-deploy.ts ${libraryRoot}`,\n })\n : withCdkEnv({\n cwd: '{projectRoot}',\n command: 'cdk deploy --require-approval=never',\n }),\n };\n config.targets['deploy-sandbox'] = {\n executor: 'nx:run-commands',\n dependsOn: ['^assemble', 'compile'],\n options: stageConfig\n ? withCdkEnv({\n command: `tsx packages/common/scripts/src/infra/infra-deploy.ts ${libraryRoot} ${sandboxStagePattern} --express`,\n })\n : withCdkEnv({\n cwd: '{projectRoot}',\n command: `cdk deploy --require-approval=never ${sandboxStagePattern} --express`,\n }),\n };\n config.targets['deploy-ci'] = {\n executor: 'nx:run-commands',\n options: withCdkEnv({\n cwd: '{projectRoot}',\n command: `cdk deploy --require-approval=never --app ${distDirFromProjectRoot}`,\n }),\n };\n config.targets.destroy = {\n executor: 'nx:run-commands',\n dependsOn: ['^assemble', 'compile'],\n options: stageConfig\n ? withCdkEnv({\n command: `tsx packages/common/scripts/src/infra/infra-destroy.ts ${libraryRoot}`,\n })\n : withCdkEnv({\n cwd: '{projectRoot}',\n command: 'cdk destroy',\n }),\n };\n config.targets['destroy-sandbox'] = {\n executor: 'nx:run-commands',\n dependsOn: ['^assemble', 'compile'],\n options: stageConfig\n ? withCdkEnv({\n command: `tsx packages/common/scripts/src/infra/infra-destroy.ts ${libraryRoot} ${sandboxStagePattern}`,\n })\n : withCdkEnv({\n cwd: '{projectRoot}',\n command: `cdk destroy ${sandboxStagePattern}`,\n }),\n };\n config.targets['destroy-ci'] = {\n executor: 'nx:run-commands',\n options: withCdkEnv({\n cwd: '{projectRoot}',\n command: `cdk destroy --app ${distDirFromProjectRoot}`,\n }),\n };\n config.targets.cdk = {\n executor: 'nx:run-commands',\n options: withCdkEnv({\n cwd: '{projectRoot}',\n command: 'cdk',\n }),\n };\n config.targets.bootstrap = {\n executor: 'nx:run-commands',\n options: withCdkEnv({\n cwd: '{projectRoot}',\n command: 'cdk bootstrap',\n }),\n };\n config.targets = sortObjectKeys(config.targets);\n return config;\n },\n );\n\n addTsDependencies(tree, DEPENDENCIES, { projectRoot: libraryRoot });\n\n updateJson(tree, `${libraryRoot}/tsconfig.lib.json`, (tsConfig) => ({\n ...tsConfig,\n references: mergeTsReferences(tsConfig.references, [\n {\n path: `${path.relative(\n libraryRoot,\n `${tree.root}/${PACKAGES_DIR}`,\n )}/${SHARED_CONSTRUCTS_DIR}/tsconfig.lib.json`,\n },\n ...(stageConfig\n ? [\n {\n path: `${path.relative(\n libraryRoot,\n `${tree.root}/${PACKAGES_DIR}`,\n )}/${SHARED_INFRA_CONFIG_DIR}/tsconfig.json`,\n },\n ]\n : []),\n ]),\n }));\n\n // `main.ts` and the application stack import the shared constructs.\n addLocalProjectDependency(tree, {\n consumerRoot: libraryRoot,\n dependencyRoot: joinPathFragments(PACKAGES_DIR, SHARED_CONSTRUCTS_DIR),\n });\n if (stageConfig) {\n addLocalProjectDependency(tree, {\n consumerRoot: libraryRoot,\n dependencyRoot: joinPathFragments(PACKAGES_DIR, SHARED_INFRA_CONFIG_DIR),\n });\n }\n\n await addGeneratorMetricsIfApplicable(tree, [INFRA_APP_GENERATOR_INFO]);\n\n await formatFilesInSubtree(tree);\n return () =>\n installDependencies(tree, schema.preferInstallDependencies, {\n languages: ['typescript'],\n });\n}\nexport default tsInfraGenerator;\n"],"names":["generateFiles","joinPathFragments","OverwriteStrategy","readProjectConfiguration","updateJson","path","tsProjectGenerator","getTsLibDetails","mergeTsReferences","addTsDependencies","resolveContainers","declareDependencies","ownedElsewhere","formatFilesInSubtree","installDependencies","addLocalProjectDependency","addGeneratorMetricsIfApplicable","esmVars","kebabCase","getNpmScopePrefix","addArtifactDependencyToTargets","addDependencyToTargetIfNotPresent","addGeneratorMetadata","getGeneratorInfo","projectExists","sortObjectKeys","getPackageManagerDisplayCommands","uvxCommand","SHARED_CONSTRUCTS_DEPENDENCIES","sharedConstructsGenerator","PACKAGES_DIR","SHARED_CONSTRUCTS_DIR","SHARED_INFRA_CONFIG_DIR","sharedInfraConfigGenerator","SHARED_INFRA_SCRIPTS_DEPENDENCIES","sharedInfraScriptsGenerator","DEPENDENCIES","ts","name","dev","root","INFRA_APP_GENERATOR_INFO","filename","tsInfraGenerator","tree","schema","lib","isNewProject","fullyQualifiedName","preferInstallDependencies","containers","cdkEnv","undefined","CDK_DOCKER","withCdkEnv","opts","existingEnv","env","iac","stageConfig","synthDirFromRoot","dir","synthDirFromProject","split","map","join","distDirFromProjectRoot","projectConfig","libraryRoot","npmScopePrefix","scopeAlias","namespace","sandboxStagePattern","delete","dirname","synthDir","pkgMgrCmd","exec","overwriteStrategy","KeepExisting","config","projectType","targets","compile","outputs","synth","cache","executor","inputs","dependsOn","options","cwd","command","checkov","deploy","destroy","cdk","bootstrap","projectRoot","tsConfig","references","relative","consumerRoot","dependencyRoot","languages"],"mappings":"AAAA;;;CAGC,GACD,SAEEA,aAAa,EACbC,iBAAiB,EACjBC,iBAAiB,EAEjBC,wBAAwB,EAExBC,UAAU,QACL,aA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C,EAAEE,wBAAwB,cAAc,CAAC;oBAC9C;iBACD,GACD,EAAE;aACP;QACH,CAAA;IAEA,oEAAoE;IACpEjB,0BAA0B6B,MAAM;QAC9B0D,cAAclC;QACdmC,gBAAgBtG,kBAAkB6B,cAAcC;IAClD;IACA,IAAI4B,aAAa;QACf5C,0BAA0B6B,MAAM;YAC9B0D,cAAclC;YACdmC,gBAAgBtG,kBAAkB6B,cAAcE;QAClD;IACF;IAEA,MAAMhB,gCAAgC4B,MAAM;QAACH;KAAyB;IAEtE,MAAM5B,qBAAqB+B;IAC3B,OAAO,IACL9B,oBAAoB8B,MAAMC,OAAOI,yBAAyB,EAAE;YAC1DuD,WAAW;gBAAC;aAAa;QAC3B;AACJ;AACA,eAAe7D,iBAAiB"}
@@ -8,7 +8,7 @@ import { licenseGenerator } from "../../sdk/license.js";
8
8
  import { pyAgentGenerator, pyApiGenerator, pyDynamoDBGenerator, pyLambdaFunctionGenerator, pyMcpServerGenerator, pyProjectGenerator, pyRdbGenerator } from "../../sdk/py.js";
9
9
  import { smithyProjectGenerator } from "../../sdk/smithy.js";
10
10
  import { terraformProjectGenerator } from "../../sdk/terraform.js";
11
- import { tsAgentGenerator, tsApiGenerator, tsAstroDocsGenerator, tsDcrProxyGenerator, tsDynamoDBGenerator, tsInfraGenerator, tsLambdaFunctionGenerator, tsMcpServerGenerator, tsNxGeneratorGenerator, tsNxMigrationGenerator, tsNxPluginGenerator, tsProjectGenerator, tsRdbGenerator, tsWebsiteAuthGenerator, tsWebsiteGenerator } from "../../sdk/ts.js";
11
+ import { tsAgentGenerator, tsApiGenerator, tsDcrProxyGenerator, tsDocsGenerator, tsDynamoDBGenerator, tsInfraGenerator, tsLambdaFunctionGenerator, tsMcpServerGenerator, tsNxGeneratorGenerator, tsNxMigrationGenerator, tsNxPluginGenerator, tsProjectGenerator, tsRdbGenerator, tsWebsiteAuthGenerator, tsWebsiteGenerator } from "../../sdk/ts.js";
12
12
  import { installDependencies } from "../../utils/install.js";
13
13
  import { toSnakeCase } from "../../utils/names.js";
14
14
  import { getNpmScope, getNpmScopePrefix } from "../../utils/npm-scope.js";
@@ -79,7 +79,7 @@ import { getNpmScope, getNpmScopePrefix } from "../../utils/npm-scope.js";
79
79
  iac: 'inherit',
80
80
  ...projectDefaults
81
81
  });
82
- await tsAstroDocsGenerator(tree, {
82
+ await tsDocsGenerator(tree, {
83
83
  name: 'docs-site',
84
84
  ...defaults
85
85
  });