@aws/nx-plugin 1.0.0-rc.1 → 1.0.0-rc.10

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 (466) hide show
  1. package/LICENSE-THIRD-PARTY +3399 -4104
  2. package/README.md +8 -8
  3. package/executors.json +9 -0
  4. package/generators.json +44 -5
  5. package/package.json +16 -12
  6. package/sdk/license.d.ts +8 -0
  7. package/sdk/license.js +13 -0
  8. package/sdk/license.js.map +1 -0
  9. package/src/connection/agent-runtime-config.d.ts +1 -1
  10. package/src/connection/agent-runtime-config.js.map +1 -1
  11. package/src/connection/agent-serve-local.d.ts +2 -2
  12. package/src/connection/agent-serve-local.js +1 -1
  13. package/src/connection/agent-serve-local.js.map +1 -1
  14. package/src/connection/generator.d.ts +5 -5
  15. package/src/connection/generator.js +56 -37
  16. package/src/connection/generator.js.map +1 -1
  17. package/src/connection/serve-local.d.ts +1 -1
  18. package/src/connection/serve-local.js +1 -1
  19. package/src/connection/serve-local.js.map +1 -1
  20. package/src/infra/app/__snapshots__/generator.spec.ts.snap +38 -49
  21. package/src/infra/app/generator.d.ts +3 -3
  22. package/src/infra/app/generator.js +16 -14
  23. package/src/infra/app/generator.js.map +1 -1
  24. package/src/license/__snapshots__/config.spec.ts.snap +23 -0
  25. package/src/license/config-types.d.ts +18 -1
  26. package/src/license/config-types.js +4 -0
  27. package/src/license/config-types.js.map +1 -1
  28. package/src/license/config.d.ts +65 -7
  29. package/src/license/config.js +315 -7
  30. package/src/license/config.js.map +1 -1
  31. package/src/license/dependency-check/check.d.ts +16 -0
  32. package/src/license/dependency-check/check.js +111 -0
  33. package/src/license/dependency-check/check.js.map +1 -0
  34. package/src/license/dependency-check/collectors/collector.d.ts +21 -0
  35. package/src/license/dependency-check/collectors/collector.js +76 -0
  36. package/src/license/dependency-check/collectors/collector.js.map +1 -0
  37. package/src/license/dependency-check/collectors/npm-collector.d.ts +10 -0
  38. package/src/license/dependency-check/collectors/npm-collector.js +75 -0
  39. package/src/license/dependency-check/collectors/npm-collector.js.map +1 -0
  40. package/src/license/dependency-check/collectors/python-collector.d.ts +23 -0
  41. package/src/license/dependency-check/collectors/python-collector.js +121 -0
  42. package/src/license/dependency-check/collectors/python-collector.js.map +1 -0
  43. package/src/license/dependency-check/evaluator.d.ts +9 -0
  44. package/src/license/dependency-check/evaluator.js +122 -0
  45. package/src/license/dependency-check/evaluator.js.map +1 -0
  46. package/src/license/dependency-check/executor-schema.json +6 -0
  47. package/src/license/dependency-check/executor.d.ts +9 -0
  48. package/src/license/dependency-check/executor.js +43 -0
  49. package/src/license/dependency-check/executor.js.map +1 -0
  50. package/src/license/dependency-check/pre-approved.d.ts +6 -0
  51. package/src/license/dependency-check/pre-approved.js +1280 -0
  52. package/src/license/dependency-check/pre-approved.js.map +1 -0
  53. package/src/license/dependency-check/types.d.ts +45 -0
  54. package/src/license/dependency-check/types.js +7 -0
  55. package/src/license/dependency-check/types.js.map +1 -0
  56. package/src/license/generator.d.ts +3 -3
  57. package/src/license/generator.js +113 -14
  58. package/src/license/generator.js.map +1 -1
  59. package/src/license/index.d.ts +8 -0
  60. package/src/license/index.js +13 -0
  61. package/src/license/index.js.map +1 -0
  62. package/src/license/known-exceptions.d.ts +7 -0
  63. package/src/license/known-exceptions.js +33 -0
  64. package/src/license/known-exceptions.js.map +1 -0
  65. package/src/license/schema.d.ts +5 -0
  66. package/src/license/schema.json +6 -0
  67. package/src/license/sync/generator.d.ts +2 -2
  68. package/src/license/sync/generator.js +15 -15
  69. package/src/license/sync/generator.js.map +1 -1
  70. package/src/license/sync/project-file-sync.d.ts +3 -3
  71. package/src/license/sync/project-file-sync.js.map +1 -1
  72. package/src/mcp-server/generator-info.d.ts +5 -1
  73. package/src/mcp-server/generator-info.js +7 -7
  74. package/src/mcp-server/generator-info.js.map +1 -1
  75. package/src/mcp-server/guide-pipeline.d.ts +1 -1
  76. package/src/mcp-server/guide-pipeline.js +2 -2
  77. package/src/mcp-server/guide-pipeline.js.map +1 -1
  78. package/src/mcp-server/mdx-ast.js +4 -0
  79. package/src/mcp-server/mdx-ast.js.map +1 -1
  80. package/src/mcp-server/server.js +3 -3
  81. package/src/mcp-server/server.js.map +1 -1
  82. package/src/mcp-server/tools/create-workspace-command.d.ts +1 -1
  83. package/src/mcp-server/tools/create-workspace-command.js +4 -4
  84. package/src/mcp-server/tools/create-workspace-command.js.map +1 -1
  85. package/src/mcp-server/tools/general-guidance.d.ts +2 -2
  86. package/src/mcp-server/tools/general-guidance.js +2 -2
  87. package/src/mcp-server/tools/general-guidance.js.map +1 -1
  88. package/src/mcp-server/tools/generator-guide.d.ts +2 -2
  89. package/src/mcp-server/tools/generator-guide.js.map +1 -1
  90. package/src/mcp-server/tools/list-generators.d.ts +2 -2
  91. package/src/mcp-server/tools/list-generators.js +1 -1
  92. package/src/mcp-server/tools/list-generators.js.map +1 -1
  93. package/src/open-api/ts-client/__snapshots__/generator.reserved-keywords.spec.ts.snap +1 -1
  94. package/src/open-api/ts-client/generator.d.ts +3 -3
  95. package/src/open-api/ts-client/generator.js +2 -2
  96. package/src/open-api/ts-client/generator.js.map +1 -1
  97. package/src/open-api/ts-hooks/generator.d.ts +3 -3
  98. package/src/open-api/ts-hooks/generator.js +2 -2
  99. package/src/open-api/ts-hooks/generator.js.map +1 -1
  100. package/src/open-api/ts-hooks/generator.spec.tsx +14 -14
  101. package/src/open-api/ts-metadata/generator.d.ts +3 -3
  102. package/src/open-api/ts-metadata/generator.js +1 -1
  103. package/src/open-api/ts-metadata/generator.js.map +1 -1
  104. package/src/open-api/utils/codegen-data/languages.d.ts +5 -1
  105. package/src/open-api/utils/codegen-data/languages.js +4 -4
  106. package/src/open-api/utils/codegen-data/languages.js.map +1 -1
  107. package/src/open-api/utils/codegen-data.d.ts +6 -2
  108. package/src/open-api/utils/codegen-data.js +6 -6
  109. package/src/open-api/utils/codegen-data.js.map +1 -1
  110. package/src/open-api/utils/normalise.d.ts +5 -1
  111. package/src/open-api/utils/normalise.js +5 -5
  112. package/src/open-api/utils/normalise.js.map +1 -1
  113. package/src/open-api/utils/parse.d.ts +2 -2
  114. package/src/open-api/utils/parse.js +4 -0
  115. package/src/open-api/utils/parse.js.map +1 -1
  116. package/src/open-api/utils/refs.d.ts +1 -1
  117. package/src/preset/__snapshots__/generator.spec.ts.snap +127 -13
  118. package/src/preset/generator.d.ts +4 -4
  119. package/src/preset/generator.js +21 -14
  120. package/src/preset/generator.js.map +1 -1
  121. package/src/preset/schema.d.ts +3 -1
  122. package/src/preset/schema.json +5 -0
  123. package/src/py/agent/__snapshots__/generator.spec.ts.snap +9 -8
  124. package/src/py/agent/a2a-connection/generator.d.ts +3 -3
  125. package/src/py/agent/a2a-connection/generator.js +4 -4
  126. package/src/py/agent/a2a-connection/generator.js.map +1 -1
  127. package/src/py/agent/files/common/agent.py.template +2 -0
  128. package/src/py/agent/files/http/init.py.template +2 -2
  129. package/src/py/agent/files/http/main.py.template +0 -1
  130. package/src/py/agent/generator.d.ts +3 -3
  131. package/src/py/agent/generator.js +22 -16
  132. package/src/py/agent/generator.js.map +1 -1
  133. package/src/py/agent/mcp-connection/__snapshots__/generator.spec.ts.snap +4 -0
  134. package/src/py/agent/mcp-connection/generator.d.ts +3 -3
  135. package/src/py/agent/mcp-connection/generator.js +4 -4
  136. package/src/py/agent/mcp-connection/generator.js.map +1 -1
  137. package/src/py/agent/react-connection/generator.d.ts +3 -3
  138. package/src/py/agent/react-connection/generator.js +4 -4
  139. package/src/py/agent/react-connection/generator.js.map +1 -1
  140. package/src/py/agent/react-connection/serve-local.d.ts +2 -2
  141. package/src/py/agent/react-connection/serve-local.js.map +1 -1
  142. package/src/py/api/generator.d.ts +3 -3
  143. package/src/py/api/generator.js.map +1 -1
  144. package/src/py/api/schema.d.ts +1 -1
  145. package/src/py/api/schema.json +2 -2
  146. package/src/py/fast-api/generator.d.ts +3 -3
  147. package/src/py/fast-api/generator.js +71 -53
  148. package/src/py/fast-api/generator.js.map +1 -1
  149. package/src/py/fast-api/react/generator.d.ts +3 -3
  150. package/src/py/fast-api/react/generator.js +2 -2
  151. package/src/py/fast-api/react/generator.js.map +1 -1
  152. package/src/py/fast-api/react/open-api.d.ts +1 -1
  153. package/src/py/fast-api/react/open-api.js +5 -2
  154. package/src/py/fast-api/react/open-api.js.map +1 -1
  155. package/src/py/fast-api/schema.d.ts +1 -1
  156. package/src/py/fast-api/schema.json +2 -2
  157. package/src/py/lambda-function/generator.d.ts +3 -3
  158. package/src/py/lambda-function/generator.js +30 -27
  159. package/src/py/lambda-function/generator.js.map +1 -1
  160. package/src/py/lambda-function/schema.d.ts +3 -0
  161. package/src/py/lambda-function/schema.json +8 -0
  162. package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +4 -4
  163. package/src/py/mcp-server/generator.d.ts +3 -3
  164. package/src/py/mcp-server/generator.js +33 -26
  165. package/src/py/mcp-server/generator.js.map +1 -1
  166. package/src/py/project/generator.d.ts +3 -3
  167. package/src/py/project/generator.js +88 -69
  168. package/src/py/project/generator.js.map +1 -1
  169. package/src/smithy/project/__snapshots__/generator.spec.ts.snap +18 -16
  170. package/src/smithy/project/files/build.Dockerfile.template +1 -0
  171. package/src/smithy/project/generator.d.ts +3 -3
  172. package/src/smithy/project/generator.js +30 -28
  173. package/src/smithy/project/generator.js.map +1 -1
  174. package/src/smithy/react-connection/generator.d.ts +3 -3
  175. package/src/smithy/react-connection/generator.js +3 -3
  176. package/src/smithy/react-connection/generator.js.map +1 -1
  177. package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +8 -34
  178. package/src/smithy/ts/api/generator.d.ts +3 -3
  179. package/src/smithy/ts/api/generator.js +88 -65
  180. package/src/smithy/ts/api/generator.js.map +1 -1
  181. package/src/smithy/ts/api/schema.d.ts +1 -1
  182. package/src/smithy/ts/api/schema.json +1 -1
  183. package/src/terraform/project/generator.d.ts +3 -3
  184. package/src/terraform/project/generator.js +13 -8
  185. package/src/terraform/project/generator.js.map +1 -1
  186. package/src/trpc/backend/generator.d.ts +3 -3
  187. package/src/trpc/backend/generator.js +67 -48
  188. package/src/trpc/backend/generator.js.map +1 -1
  189. package/src/trpc/backend/schema.d.ts +3 -3
  190. package/src/trpc/backend/schema.json +2 -2
  191. package/src/trpc/react/generator.d.ts +3 -3
  192. package/src/trpc/react/generator.js +5 -5
  193. package/src/trpc/react/generator.js.map +1 -1
  194. package/src/ts/agent/__snapshots__/generator.spec.ts.snap +10 -4
  195. package/src/ts/agent/a2a-connection/generator.d.ts +3 -3
  196. package/src/ts/agent/a2a-connection/generator.js +5 -5
  197. package/src/ts/agent/a2a-connection/generator.js.map +1 -1
  198. package/src/ts/agent/files/common/agent.ts.template +6 -2
  199. package/src/ts/agent/generator.d.ts +3 -3
  200. package/src/ts/agent/generator.js +18 -13
  201. package/src/ts/agent/generator.js.map +1 -1
  202. package/src/ts/agent/mcp-connection/__snapshots__/generator.spec.ts.snap +5 -2
  203. package/src/ts/agent/mcp-connection/generator.d.ts +3 -3
  204. package/src/ts/agent/mcp-connection/generator.js +5 -5
  205. package/src/ts/agent/mcp-connection/generator.js.map +1 -1
  206. package/src/ts/agent/react-connection/generator.d.ts +3 -3
  207. package/src/ts/agent/react-connection/generator.js +9 -9
  208. package/src/ts/agent/react-connection/generator.js.map +1 -1
  209. package/src/ts/agent/react-connection/serve-local.d.ts +2 -2
  210. package/src/ts/api/generator.d.ts +3 -3
  211. package/src/ts/api/generator.js +7 -5
  212. package/src/ts/api/generator.js.map +1 -1
  213. package/src/ts/api/schema.d.ts +3 -2
  214. package/src/ts/api/schema.json +1 -1
  215. package/src/ts/astro-docs/__snapshots__/generator.spec.ts.snap +7 -8
  216. package/src/ts/astro-docs/generator.d.ts +3 -3
  217. package/src/ts/astro-docs/generator.js +14 -11
  218. package/src/ts/astro-docs/generator.js.map +1 -1
  219. package/src/ts/docs/generator.d.ts +3 -3
  220. package/src/ts/docs/generator.js.map +1 -1
  221. package/src/ts/dynamodb/__snapshots__/generator.spec.ts.snap +1502 -0
  222. package/src/ts/dynamodb/agent-connection/__snapshots__/generator.spec.ts.snap +45 -0
  223. package/src/ts/dynamodb/agent-connection/generator.d.ts +10 -0
  224. package/src/ts/dynamodb/agent-connection/generator.js +32 -0
  225. package/src/ts/dynamodb/agent-connection/generator.js.map +1 -0
  226. package/src/ts/dynamodb/agent-connection/schema.d.ts +14 -0
  227. package/src/ts/dynamodb/agent-connection/schema.json +22 -0
  228. package/src/ts/dynamodb/files/scripts/create-local-table.ts.template +161 -0
  229. package/src/ts/{rdb/files/scripts/docker-pull.ts.template → dynamodb/files/scripts/pull-image.ts.template} +1 -1
  230. package/src/ts/dynamodb/files/scripts/start-container.ts.template +81 -0
  231. package/src/ts/dynamodb/files/src/client.ts.template +45 -0
  232. package/src/ts/dynamodb/files/src/constants.ts.template +9 -0
  233. package/src/ts/dynamodb/files/src/entities/example.ts.template +47 -0
  234. package/src/ts/dynamodb/files/src/entities/index.ts.template +1 -0
  235. package/src/ts/dynamodb/files/src/gsi.ts.template +14 -0
  236. package/src/ts/dynamodb/files/src/index.ts.template +11 -0
  237. package/src/ts/dynamodb/generator.d.ts +10 -0
  238. package/src/ts/dynamodb/generator.js +106 -0
  239. package/src/ts/dynamodb/generator.js.map +1 -0
  240. package/src/ts/dynamodb/mcp-server-connection/__snapshots__/generator.spec.ts.snap +45 -0
  241. package/src/ts/dynamodb/mcp-server-connection/generator.d.ts +10 -0
  242. package/src/ts/dynamodb/mcp-server-connection/generator.js +32 -0
  243. package/src/ts/dynamodb/mcp-server-connection/generator.js.map +1 -0
  244. package/src/ts/dynamodb/mcp-server-connection/schema.d.ts +14 -0
  245. package/src/ts/dynamodb/mcp-server-connection/schema.json +22 -0
  246. package/src/ts/dynamodb/schema.d.ts +14 -0
  247. package/src/ts/dynamodb/schema.json +52 -0
  248. package/src/ts/dynamodb/smithy-connection/__snapshots__/generator.spec.ts.snap +23 -0
  249. package/src/ts/dynamodb/smithy-connection/generator.d.ts +10 -0
  250. package/src/ts/dynamodb/smithy-connection/generator.js +30 -0
  251. package/src/ts/dynamodb/smithy-connection/generator.js.map +1 -0
  252. package/src/ts/dynamodb/smithy-connection/schema.d.ts +12 -0
  253. package/src/ts/dynamodb/smithy-connection/schema.json +18 -0
  254. package/src/ts/dynamodb/trpc-connection/__snapshots__/generator.spec.ts.snap +23 -0
  255. package/src/ts/dynamodb/trpc-connection/generator.d.ts +10 -0
  256. package/src/ts/dynamodb/trpc-connection/generator.js +30 -0
  257. package/src/ts/dynamodb/trpc-connection/generator.js.map +1 -0
  258. package/src/ts/dynamodb/trpc-connection/schema.d.ts +12 -0
  259. package/src/ts/dynamodb/trpc-connection/schema.json +18 -0
  260. package/src/ts/lambda-function/generator.d.ts +3 -3
  261. package/src/ts/lambda-function/generator.js +34 -29
  262. package/src/ts/lambda-function/generator.js.map +1 -1
  263. package/src/ts/lambda-function/schema.d.ts +3 -0
  264. package/src/ts/lambda-function/schema.json +8 -0
  265. package/src/ts/lib/__snapshots__/generator.spec.ts.snap +32 -65
  266. package/src/ts/lib/__snapshots__/vitest.spec.ts.snap +24 -0
  267. package/src/ts/lib/biome.d.ts +7 -0
  268. package/src/ts/lib/biome.js +58 -0
  269. package/src/ts/lib/biome.js.map +1 -0
  270. package/src/ts/lib/generator.d.ts +3 -3
  271. package/src/ts/lib/generator.js +27 -29
  272. package/src/ts/lib/generator.js.map +1 -1
  273. package/src/ts/lib/grit/vitest-pass-with-no-tests.grit +1 -1
  274. package/src/ts/lib/ts-project-utils.d.ts +12 -2
  275. package/src/ts/lib/ts-project-utils.js +30 -10
  276. package/src/ts/lib/ts-project-utils.js.map +1 -1
  277. package/src/ts/lib/vitest.d.ts +2 -2
  278. package/src/ts/lib/vitest.js +1 -1
  279. package/src/ts/lib/vitest.js.map +1 -1
  280. package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +3 -3
  281. package/src/ts/mcp-server/generator.d.ts +3 -3
  282. package/src/ts/mcp-server/generator.js +34 -12
  283. package/src/ts/mcp-server/generator.js.map +1 -1
  284. package/src/ts/nx-generator/__snapshots__/generator.spec.ts.snap +19 -14
  285. package/src/ts/nx-generator/generator.d.ts +2 -2
  286. package/src/ts/nx-generator/generator.js +23 -19
  287. package/src/ts/nx-generator/generator.js.map +1 -1
  288. package/src/ts/nx-plugin/generator.d.ts +3 -3
  289. package/src/ts/nx-plugin/generator.js +10 -9
  290. package/src/ts/nx-plugin/generator.js.map +1 -1
  291. package/src/ts/nx-plugin/utils.d.ts +1 -1
  292. package/src/ts/nx-plugin/utils.js +10 -4
  293. package/src/ts/nx-plugin/utils.js.map +1 -1
  294. package/src/ts/rdb/__snapshots__/generator.spec.ts.snap +118 -58
  295. package/src/ts/rdb/agent-connection/generator.d.ts +3 -3
  296. package/src/ts/rdb/agent-connection/generator.js +4 -4
  297. package/src/ts/rdb/agent-connection/generator.js.map +1 -1
  298. package/src/ts/rdb/files/scripts/pull-image.ts.template +15 -0
  299. package/src/ts/rdb/files/scripts/{docker-start.ts.template → start-container.ts.template} +23 -23
  300. package/src/ts/rdb/generator.d.ts +3 -3
  301. package/src/ts/rdb/generator.js +96 -75
  302. package/src/ts/rdb/generator.js.map +1 -1
  303. package/src/ts/rdb/mcp-server-connection/generator.d.ts +3 -3
  304. package/src/ts/rdb/mcp-server-connection/generator.js +4 -4
  305. package/src/ts/rdb/mcp-server-connection/generator.js.map +1 -1
  306. package/src/ts/rdb/schema.d.ts +1 -1
  307. package/src/ts/rdb/schema.json +1 -1
  308. package/src/ts/rdb/smithy-connection/generator.d.ts +3 -3
  309. package/src/ts/rdb/smithy-connection/generator.js +4 -4
  310. package/src/ts/rdb/smithy-connection/generator.js.map +1 -1
  311. package/src/ts/rdb/trpc-connection/generator.d.ts +3 -3
  312. package/src/ts/rdb/trpc-connection/generator.js +3 -3
  313. package/src/ts/rdb/trpc-connection/generator.js.map +1 -1
  314. package/src/ts/rdb/utils.d.ts +1 -1
  315. package/src/ts/react-website/agui/generator.d.ts +1 -1
  316. package/src/ts/react-website/agui/generator.js +4 -4
  317. package/src/ts/react-website/agui/generator.js.map +1 -1
  318. package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +400 -363
  319. package/src/ts/react-website/app/generator.d.ts +3 -3
  320. package/src/ts/react-website/app/generator.js +101 -91
  321. package/src/ts/react-website/app/generator.js.map +1 -1
  322. package/src/ts/react-website/app/schema.d.ts +3 -0
  323. package/src/ts/react-website/cognito-auth/__snapshots__/generator.spec.ts.snap +1 -7
  324. package/src/ts/react-website/cognito-auth/__snapshots__/generator.ux-provider.spec.ts.snap +0 -20
  325. package/src/ts/react-website/cognito-auth/generator.d.ts +3 -3
  326. package/src/ts/react-website/cognito-auth/generator.js +10 -13
  327. package/src/ts/react-website/cognito-auth/generator.js.map +1 -1
  328. package/src/ts/react-website/cognito-auth/grit/cloudscape-auth-menu.grit +8 -6
  329. package/src/ts/react-website/cognito-auth/grit/cognito-auth-wrapper.grit +1 -1
  330. package/src/ts/react-website/cognito-auth/grit/none-auth-menu.grit +1 -0
  331. package/src/ts/react-website/cognito-auth/grit/shadcn-auth-menu.grit +3 -1
  332. package/src/ts/react-website/cognito-auth/grit/shadcn-state-declarations.grit +3 -1
  333. package/src/ts/react-website/cognito-auth/utils.d.ts +1 -1
  334. package/src/ts/react-website/cognito-auth/utils.js +1 -1
  335. package/src/ts/react-website/cognito-auth/utils.js.map +1 -1
  336. package/src/ts/react-website/runtime-config/generator.d.ts +3 -3
  337. package/src/ts/react-website/runtime-config/generator.js +4 -4
  338. package/src/ts/react-website/runtime-config/generator.js.map +1 -1
  339. package/src/ts/sync/generator.d.ts +3 -3
  340. package/src/ts/sync/generator.js +2 -2
  341. package/src/ts/sync/generator.js.map +1 -1
  342. package/src/ts/website/app/generator.d.ts +3 -3
  343. package/src/ts/website/app/generator.js +1 -1
  344. package/src/ts/website/app/generator.js.map +1 -1
  345. package/src/ts/website/app/schema.d.ts +2 -0
  346. package/src/ts/website/app/schema.json +8 -0
  347. package/src/ts/website/auth/generator.d.ts +3 -3
  348. package/src/ts/website/auth/generator.js +1 -1
  349. package/src/ts/website/auth/generator.js.map +1 -1
  350. package/src/utils/agent-connection/agent-connection.d.ts +1 -1
  351. package/src/utils/agent-connection/agent-connection.js +16 -10
  352. package/src/utils/agent-connection/agent-connection.js.map +1 -1
  353. package/src/utils/agent-connection/files/core-runtime-config/model-errors.ts.template +36 -0
  354. package/src/utils/agent-connection/files/py-core-runtime-config/model_errors.py.template +40 -0
  355. package/src/utils/agent-core-constructs/agent-core-constructs.d.ts +3 -3
  356. package/src/utils/agent-core-constructs/agent-core-constructs.js +3 -11
  357. package/src/utils/agent-core-constructs/agent-core-constructs.js.map +1 -1
  358. package/src/utils/api-constructs/api-constructs.d.ts +2 -2
  359. package/src/utils/api-constructs/api-constructs.js +1 -1
  360. package/src/utils/api-constructs/api-constructs.js.map +1 -1
  361. package/src/utils/api-constructs/open-api-metadata.d.ts +2 -2
  362. package/src/utils/api-constructs/open-api-metadata.js.map +1 -1
  363. package/src/utils/ast/website.d.ts +5 -1
  364. package/src/utils/ast/website.js +3 -3
  365. package/src/utils/ast/website.js.map +1 -1
  366. package/src/utils/ast.d.ts +33 -1
  367. package/src/utils/ast.js +89 -4
  368. package/src/utils/ast.js.map +1 -1
  369. package/src/utils/bundle/bundle.d.ts +1 -1
  370. package/src/utils/bundle/bundle.js +2 -2
  371. package/src/utils/bundle/bundle.js.map +1 -1
  372. package/src/utils/config/index.d.ts +5 -5
  373. package/src/utils/config/utils.d.ts +13 -3
  374. package/src/utils/config/utils.js +37 -5
  375. package/src/utils/config/utils.js.map +1 -1
  376. package/src/utils/connection/open-api/react.d.ts +1 -1
  377. package/src/utils/connection/open-api/react.js +4 -4
  378. package/src/utils/connection/open-api/react.js.map +1 -1
  379. package/src/utils/containers.d.ts +1 -1
  380. package/src/utils/dynamodb-constructs/dynamodb-constructs.d.ts +18 -0
  381. package/src/utils/dynamodb-constructs/dynamodb-constructs.js +49 -0
  382. package/src/utils/dynamodb-constructs/dynamodb-constructs.js.map +1 -0
  383. package/src/utils/dynamodb-constructs/files/cdk/app/dynamodb/__nameKebabCase__.ts.template +30 -0
  384. package/src/utils/dynamodb-constructs/files/cdk/core/dynamodb.ts.template +105 -0
  385. package/src/utils/dynamodb-constructs/files/terraform/app/dynamodb/__nameKebabCase__/__nameKebabCase__.tf.template +65 -0
  386. package/src/utils/dynamodb-constructs/files/terraform/core/dynamodb/dynamodb.tf.template +155 -0
  387. package/src/utils/format.d.ts +45 -2
  388. package/src/utils/format.js +167 -46
  389. package/src/utils/format.js.map +1 -1
  390. package/src/utils/fs.d.ts +1 -1
  391. package/src/utils/fs.js.map +1 -1
  392. package/src/utils/function-constructs/function-constructs.d.ts +2 -2
  393. package/src/utils/function-constructs/function-constructs.js +1 -1
  394. package/src/utils/function-constructs/function-constructs.js.map +1 -1
  395. package/src/utils/generators.d.ts +4 -0
  396. package/src/utils/generators.js +4 -4
  397. package/src/utils/generators.js.map +1 -1
  398. package/src/utils/git.d.ts +1 -1
  399. package/src/utils/git.js.map +1 -1
  400. package/src/utils/iac.d.ts +1 -1
  401. package/src/utils/iac.js.map +1 -1
  402. package/src/utils/identity-constructs/files/cdk/core/user-identity.ts.template +1 -5
  403. package/src/utils/identity-constructs/files/terraform/core/user-identity/identity/identity.tf.template +2 -4
  404. package/src/utils/identity-constructs/identity-constructs.d.ts +2 -2
  405. package/src/utils/identity-constructs/identity-constructs.js +1 -1
  406. package/src/utils/identity-constructs/identity-constructs.js.map +1 -1
  407. package/src/utils/js.d.ts +4 -0
  408. package/src/utils/js.js +4 -4
  409. package/src/utils/js.js.map +1 -1
  410. package/src/utils/mcp.d.ts +25 -0
  411. package/src/utils/mcp.js +81 -0
  412. package/src/utils/mcp.js.map +1 -0
  413. package/src/utils/metrics.d.ts +9 -3
  414. package/src/utils/metrics.js +58 -28
  415. package/src/utils/metrics.js.map +1 -1
  416. package/src/utils/npm-scope.d.ts +1 -1
  417. package/src/utils/npm-scope.js.map +1 -1
  418. package/src/utils/nx.d.ts +7 -2
  419. package/src/utils/nx.js +46 -14
  420. package/src/utils/nx.js.map +1 -1
  421. package/src/utils/nxlv-python.d.ts +1 -1
  422. package/src/utils/paths.d.ts +1 -1
  423. package/src/utils/pnpm-workspace.d.ts +1 -1
  424. package/src/utils/pnpm-workspace.js.map +1 -1
  425. package/src/utils/port.d.ts +30 -3
  426. package/src/utils/port.js +72 -4
  427. package/src/utils/port.js.map +1 -1
  428. package/src/utils/py.d.ts +2 -2
  429. package/src/utils/py.js +13 -6
  430. package/src/utils/py.js.map +1 -1
  431. package/src/utils/rdb-constructs/files/cdk/core/rdb/aurora.ts.template +30 -1
  432. package/src/utils/rdb-constructs/files/terraform/app/dbs/__nameKebabCase__/__nameKebabCase__.tf.template +4 -4
  433. package/src/utils/rdb-constructs/files/terraform/core/rdb/aurora/aurora.tf.template +18 -9
  434. package/src/utils/rdb-constructs/rdb-constructs.d.ts +4 -4
  435. package/src/utils/rdb-constructs/rdb-constructs.js +3 -11
  436. package/src/utils/rdb-constructs/rdb-constructs.js.map +1 -1
  437. package/src/utils/shared-constructs.d.ts +2 -2
  438. package/src/utils/shared-constructs.js +7 -7
  439. package/src/utils/shared-constructs.js.map +1 -1
  440. package/src/utils/shared-infra-config.d.ts +1 -1
  441. package/src/utils/shared-infra-config.js +1 -1
  442. package/src/utils/shared-infra-config.js.map +1 -1
  443. package/src/utils/shared-scripts.d.ts +1 -1
  444. package/src/utils/shared-scripts.js +2 -2
  445. package/src/utils/shared-scripts.js.map +1 -1
  446. package/src/utils/shared-shadcn.d.ts +1 -1
  447. package/src/utils/shared-shadcn.js +1 -13
  448. package/src/utils/shared-shadcn.js.map +1 -1
  449. package/src/utils/test.d.ts +5 -1
  450. package/src/utils/test.js +9 -5
  451. package/src/utils/test.js.map +1 -1
  452. package/src/utils/toml.d.ts +1 -1
  453. package/src/utils/toml.js +4 -0
  454. package/src/utils/toml.js.map +1 -1
  455. package/src/utils/versions.d.ts +68 -72
  456. package/src/utils/versions.js +67 -71
  457. package/src/utils/versions.js.map +1 -1
  458. package/src/utils/website-constructs/files/cdk/core/static-website.ts.template +52 -5
  459. package/src/utils/website-constructs/files/terraform/core/static-website/static-website.tf.template +38 -11
  460. package/src/utils/website-constructs/website-constructs.d.ts +2 -2
  461. package/src/utils/website-constructs/website-constructs.js +1 -1
  462. package/src/utils/website-constructs/website-constructs.js.map +1 -1
  463. package/src/ts/lib/eslint.d.ts +0 -14
  464. package/src/ts/lib/eslint.js +0 -90
  465. package/src/ts/lib/eslint.js.map +0 -1
  466. package/src/ts/lib/grit/eslint-dependency-checks-warn.grit +0 -1
@@ -13,17 +13,6 @@ exports[`ts lib generator > should configure named inputs in nx.json 1`] = `
13
13
  "lint": {
14
14
  "cache": true
15
15
  },
16
- "@nx/eslint:lint": {
17
- "cache": true,
18
- "inputs": [
19
- "default",
20
- "^default",
21
- "{workspaceRoot}/.eslintrc.json",
22
- "{workspaceRoot}/.eslintignore",
23
- "{workspaceRoot}/eslint.config.mjs",
24
- "{workspaceRoot}/tools/eslint-rules/**/*"
25
- ]
26
- },
27
16
  "@nx/vitest:test": {
28
17
  "cache": true,
29
18
  "inputs": ["default", "^default"],
@@ -43,11 +32,7 @@ exports[`ts lib generator > should configure named inputs in nx.json 1`] = `
43
32
  }
44
33
  },
45
34
  "namedInputs": {
46
- "eslint": [
47
- "default",
48
- "{workspaceRoot}/eslint.config.mjs",
49
- "{projectRoot}/eslint.config.mjs"
50
- ],
35
+ "biome": ["default", "{workspaceRoot}/biome.json"],
51
36
  "default": [
52
37
  {
53
38
  "dependentTasksOutputFiles": "**/*",
@@ -87,6 +72,9 @@ exports[`ts lib generator > should generate library with custom directory > cust
87
72
  "sourceRoot": "libs/test-lib/src",
88
73
  "projectType": "library",
89
74
  "tags": [],
75
+ "metadata": {
76
+ "generator": "ts#project"
77
+ },
90
78
  "targets": {
91
79
  "build": {
92
80
  "dependsOn": ["lint", "compile", "test"]
@@ -100,15 +88,18 @@ exports[`ts lib generator > should generate library with custom directory > cust
100
88
  }
101
89
  },
102
90
  "lint": {
103
- "executor": "@nx/eslint:lint",
91
+ "executor": "nx:run-commands",
104
92
  "cache": true,
105
- "inputs": ["eslint"],
93
+ "inputs": ["biome"],
94
+ "options": {
95
+ "command": "biome lint {projectRoot}"
96
+ },
106
97
  "configurations": {
107
98
  "fix": {
108
- "fix": true
99
+ "command": "biome check --write {projectRoot}"
109
100
  },
110
101
  "skip-lint": {
111
- "force": true
102
+ "command": "node -e \\"\\""
112
103
  }
113
104
  }
114
105
  },
@@ -119,9 +110,6 @@ exports[`ts lib generator > should generate library with custom directory > cust
119
110
  "reportsDirectory": "{workspaceRoot}/coverage/{projectRoot}"
120
111
  }
121
112
  }
122
- },
123
- "metadata": {
124
- "generator": "ts#project"
125
113
  }
126
114
  }
127
115
  "
@@ -145,34 +133,7 @@ exports[`ts lib generator > should generate library with custom directory > cust
145
133
  "
146
134
  `;
147
135
 
148
- exports[`ts lib generator > should generate library with default options > eslint.config.mjs 1`] = `
149
- "import baseConfig from '../eslint.config.mjs';
150
-
151
- export default [
152
- ...baseConfig,
153
- {
154
- files: ['**/*.json'],
155
- rules: {
156
- '@nx/dependency-checks': [
157
- 'warn',
158
- {
159
- ignoredFiles: [
160
- '{projectRoot}/eslint.config.{js,cjs,mjs,ts,cts,mts}',
161
- '{projectRoot}/vitest.config.{js,ts,mjs,mts}',
162
- ],
163
- },
164
- ],
165
- },
166
- languageOptions: {
167
- parser: await import('jsonc-eslint-parser'),
168
- },
169
- },
170
- {
171
- ignores: ['**/out-tsc'],
172
- },
173
- ];
174
- "
175
- `;
136
+ exports[`ts lib generator > should generate library with default options > eslint.config.mjs 1`] = `null`;
176
137
 
177
138
  exports[`ts lib generator > should generate library with default options > index.ts 1`] = `
178
139
  "// Export your library code here
@@ -186,6 +147,9 @@ exports[`ts lib generator > should generate library with default options > proje
186
147
  "sourceRoot": "test-lib/src",
187
148
  "projectType": "library",
188
149
  "tags": [],
150
+ "metadata": {
151
+ "generator": "ts#project"
152
+ },
189
153
  "targets": {
190
154
  "build": {
191
155
  "dependsOn": ["lint", "compile", "test"]
@@ -199,15 +163,18 @@ exports[`ts lib generator > should generate library with default options > proje
199
163
  }
200
164
  },
201
165
  "lint": {
202
- "executor": "@nx/eslint:lint",
166
+ "executor": "nx:run-commands",
203
167
  "cache": true,
204
- "inputs": ["eslint"],
168
+ "inputs": ["biome"],
169
+ "options": {
170
+ "command": "biome lint {projectRoot}"
171
+ },
205
172
  "configurations": {
206
173
  "fix": {
207
- "fix": true
174
+ "command": "biome check --write {projectRoot}"
208
175
  },
209
176
  "skip-lint": {
210
- "force": true
177
+ "command": "node -e \\"\\""
211
178
  }
212
179
  }
213
180
  },
@@ -218,9 +185,6 @@ exports[`ts lib generator > should generate library with default options > proje
218
185
  "reportsDirectory": "{workspaceRoot}/coverage/{projectRoot}"
219
186
  }
220
187
  }
221
- },
222
- "metadata": {
223
- "generator": "ts#project"
224
188
  }
225
189
  }
226
190
  "
@@ -256,6 +220,9 @@ exports[`ts lib generator > should generate library with subdirectory > subdir-p
256
220
  "sourceRoot": "feature/test-lib/src",
257
221
  "projectType": "library",
258
222
  "tags": [],
223
+ "metadata": {
224
+ "generator": "ts#project"
225
+ },
259
226
  "targets": {
260
227
  "build": {
261
228
  "dependsOn": ["lint", "compile", "test"]
@@ -269,15 +236,18 @@ exports[`ts lib generator > should generate library with subdirectory > subdir-p
269
236
  }
270
237
  },
271
238
  "lint": {
272
- "executor": "@nx/eslint:lint",
239
+ "executor": "nx:run-commands",
273
240
  "cache": true,
274
- "inputs": ["eslint"],
241
+ "inputs": ["biome"],
242
+ "options": {
243
+ "command": "biome lint {projectRoot}"
244
+ },
275
245
  "configurations": {
276
246
  "fix": {
277
- "fix": true
247
+ "command": "biome check --write {projectRoot}"
278
248
  },
279
249
  "skip-lint": {
280
- "force": true
250
+ "command": "node -e \\"\\""
281
251
  }
282
252
  }
283
253
  },
@@ -288,9 +258,6 @@ exports[`ts lib generator > should generate library with subdirectory > subdir-p
288
258
  "reportsDirectory": "{workspaceRoot}/coverage/{projectRoot}"
289
259
  }
290
260
  }
291
- },
292
- "metadata": {
293
- "generator": "ts#project"
294
261
  }
295
262
  }
296
263
  "
@@ -0,0 +1,24 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`vitest utils > should generate a valid vitest.config.mts without a double comma > vitest.config.mts 1`] = `
4
+ "import { defineConfig } from 'vitest/config';
5
+
6
+ export default defineConfig(() => ({
7
+ root: __dirname,
8
+ cacheDir: '../node_modules/.vite/test',
9
+ test: {
10
+ passWithNoTests: true,
11
+ name: '@proj/test',
12
+ watch: false,
13
+ globals: true,
14
+ environment: 'jsdom',
15
+ include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
16
+ reporters: ['default'],
17
+ coverage: {
18
+ reportsDirectory: './test-output/vitest/coverage',
19
+ provider: 'v8' as const,
20
+ },
21
+ },
22
+ }));
23
+ "
24
+ `;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { type Tree } from '@nx/devkit';
6
+ import type { ConfigureProjectOptions } from './types';
7
+ export declare const configureBiomeLint: (tree: Tree, options: ConfigureProjectOptions) => Promise<void>;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.configureBiomeLint = void 0;
4
+ /**
5
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ */
8
+ const devkit_1 = require("@nx/devkit");
9
+ const nx_1 = require("../../utils/nx");
10
+ const object_1 = require("../../utils/object");
11
+ const configureBiomeLint = async (tree, options) => {
12
+ const projectJson = (0, nx_1.readProjectConfigurationUnqualified)(tree, options.fullyQualifiedName);
13
+ // When there's no root Biome configuration (eg the user removed it), make the
14
+ // lint target a no-op rather than failing on a missing config.
15
+ const lintTarget = tree.exists('biome.json')
16
+ ? {
17
+ executor: 'nx:run-commands',
18
+ cache: true,
19
+ inputs: ['biome'],
20
+ options: {
21
+ command: 'biome lint {projectRoot}',
22
+ },
23
+ configurations: {
24
+ fix: {
25
+ command: 'biome check --write {projectRoot}',
26
+ },
27
+ 'skip-lint': {
28
+ // Cross-platform no-op (`true` is not available on Windows cmd).
29
+ command: 'node -e ""',
30
+ },
31
+ },
32
+ }
33
+ : { executor: 'nx:noop' };
34
+ (0, devkit_1.updateProjectConfiguration)(tree, options.fullyQualifiedName, {
35
+ ...projectJson,
36
+ // Sort targets so the lint target lands in a deterministic position
37
+ // regardless of whether it already existed (keeps re-runs stable)
38
+ targets: (0, object_1.sortObjectKeys)({
39
+ ...projectJson?.targets,
40
+ lint: lintTarget,
41
+ }),
42
+ });
43
+ // Register the `biome` named input so lint targets are cache-invalidated when
44
+ // the root biome.json changes.
45
+ const nxJson = (0, devkit_1.readNxJson)(tree);
46
+ if (!nxJson.namedInputs?.biome ||
47
+ !nxJson.namedInputs.biome.includes('{workspaceRoot}/biome.json')) {
48
+ (0, devkit_1.updateNxJson)(tree, {
49
+ ...nxJson,
50
+ namedInputs: {
51
+ ...nxJson.namedInputs,
52
+ biome: ['default', '{workspaceRoot}/biome.json'],
53
+ },
54
+ });
55
+ }
56
+ };
57
+ exports.configureBiomeLint = configureBiomeLint;
58
+ //# sourceMappingURL=biome.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"biome.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/lib/biome.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAKoB;AACpB,uCAAqE;AACrE,+CAAoD;AAG7C,MAAM,kBAAkB,GAAG,KAAK,EACrC,IAAU,EACV,OAAgC,EAChC,EAAE;IACF,MAAM,WAAW,GAAG,IAAA,wCAAmC,EACrD,IAAI,EACJ,OAAO,CAAC,kBAAkB,CAC3B,CAAC;IAEF,8EAA8E;IAC9E,+DAA+D;IAC/D,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;QAC1C,CAAC,CAAC;YACE,QAAQ,EAAE,iBAAiB;YAC3B,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,CAAC,OAAO,CAAC;YACjB,OAAO,EAAE;gBACP,OAAO,EAAE,0BAA0B;aACpC;YACD,cAAc,EAAE;gBACd,GAAG,EAAE;oBACH,OAAO,EAAE,mCAAmC;iBAC7C;gBACD,WAAW,EAAE;oBACX,iEAAiE;oBACjE,OAAO,EAAE,YAAY;iBACtB;aACF;SACF;QACH,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAE5B,IAAA,mCAA0B,EAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,EAAE;QAC3D,GAAG,WAAW;QACd,oEAAoE;QACpE,kEAAkE;QAClE,OAAO,EAAE,IAAA,uBAAc,EAAC;YACtB,GAAG,WAAW,EAAE,OAAO;YACvB,IAAI,EAAE,UAAU;SACjB,CAAC;KACH,CAAC,CAAC;IAEH,8EAA8E;IAC9E,+BAA+B;IAC/B,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC;IAChC,IACE,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK;QAC1B,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,4BAA4B,CAAC,EAChE,CAAC;QACD,IAAA,qBAAY,EAAC,IAAI,EAAE;YACjB,GAAG,MAAM;YACT,WAAW,EAAE;gBACX,GAAG,MAAM,CAAC,WAAW;gBACrB,KAAK,EAAE,CAAC,SAAS,EAAE,4BAA4B,CAAC;aACjD;SACF,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC;AAxDW,QAAA,kBAAkB,sBAwD7B"}
@@ -2,9 +2,9 @@
2
2
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- import { GeneratorCallback, Tree } from '@nx/devkit';
6
- import { TsProjectGeneratorSchema } from './schema';
7
- import { NxGeneratorInfo } from '../../utils/nx';
5
+ import { type GeneratorCallback, type Tree } from '@nx/devkit';
6
+ import { type NxGeneratorInfo } from '../../utils/nx';
7
+ import type { TsProjectGeneratorSchema } from './schema';
8
8
  export declare const TS_LIB_GENERATOR_INFO: NxGeneratorInfo;
9
9
  export interface TsLibDetails {
10
10
  /**
@@ -7,18 +7,14 @@ exports.tsProjectGenerator = exports.getTsLibDetails = exports.TS_LIB_GENERATOR_
7
7
  */
8
8
  const devkit_1 = require("@nx/devkit");
9
9
  const js_1 = require("@nx/js");
10
- const npm_scope_1 = require("../../utils/npm-scope");
11
- const ts_project_utils_1 = require("./ts-project-utils");
12
- const names_1 = require("../../utils/names");
13
10
  const format_1 = require("../../utils/format");
14
- const pkg_manager_1 = require("../../utils/pkg-manager");
15
- const object_1 = require("../../utils/object");
16
- const nx_1 = require("../../utils/nx");
17
11
  const metrics_1 = require("../../utils/metrics");
18
- const ast_1 = require("../../utils/ast");
19
- const fs_1 = require("fs");
20
- const path_1 = require("path");
21
- const readGritPattern = (name) => (0, fs_1.readFileSync)((0, path_1.join)(__dirname, 'grit', `${name}.grit`), 'utf-8').trim();
12
+ const names_1 = require("../../utils/names");
13
+ const npm_scope_1 = require("../../utils/npm-scope");
14
+ const nx_1 = require("../../utils/nx");
15
+ const object_1 = require("../../utils/object");
16
+ const pkg_manager_1 = require("../../utils/pkg-manager");
17
+ const ts_project_utils_1 = require("./ts-project-utils");
22
18
  exports.TS_LIB_GENERATOR_INFO = (0, nx_1.getGeneratorInfo)(__filename);
23
19
  /**
24
20
  * Returns details about the TS library to be created
@@ -37,23 +33,27 @@ exports.getTsLibDetails = getTsLibDetails;
37
33
  */
38
34
  const tsProjectGenerator = async (tree, schema) => {
39
35
  const { fullyQualifiedName, dir } = (0, exports.getTsLibDetails)(tree, schema);
40
- await (0, js_1.libraryGenerator)(tree, {
41
- ...schema,
42
- name: fullyQualifiedName,
43
- directory: dir,
44
- skipPackageJson: true,
45
- bundler: 'tsc', // TODO: consider supporting others
46
- linter: 'eslint',
47
- unitTestRunner: 'vitest',
48
- });
49
- // Replace with simpler sample source code
50
- tree.delete((0, devkit_1.joinPathFragments)(dir, 'src'));
51
- (0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, 'files'), (0, devkit_1.joinPathFragments)(dir), {
52
- fullyQualifiedName,
53
- pkgMgrCmd: (0, pkg_manager_1.getPackageManagerDisplayCommands)().exec,
54
- }, {
55
- overwriteStrategy: devkit_1.OverwriteStrategy.KeepExisting,
56
- });
36
+ // Only scaffold the project on first run; on re-run skip creation so user
37
+ // edits are preserved, but continue to (re)apply the configuration below.
38
+ if (!(0, nx_1.projectExists)(tree, fullyQualifiedName)) {
39
+ await (0, js_1.libraryGenerator)(tree, {
40
+ ...schema,
41
+ name: fullyQualifiedName,
42
+ directory: dir,
43
+ skipPackageJson: true,
44
+ bundler: 'tsc', // TODO: consider supporting others
45
+ linter: 'none',
46
+ unitTestRunner: 'vitest',
47
+ });
48
+ // Replace with simpler sample source code
49
+ tree.delete((0, devkit_1.joinPathFragments)(dir, 'src'));
50
+ (0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, 'files'), (0, devkit_1.joinPathFragments)(dir), {
51
+ fullyQualifiedName,
52
+ pkgMgrCmd: (0, pkg_manager_1.getPackageManagerDisplayCommands)().exec,
53
+ }, {
54
+ overwriteStrategy: devkit_1.OverwriteStrategy.KeepExisting,
55
+ });
56
+ }
57
57
  await (0, ts_project_utils_1.configureTsProject)(tree, {
58
58
  dir,
59
59
  fullyQualifiedName,
@@ -140,8 +140,6 @@ const tsProjectGenerator = async (tree, schema) => {
140
140
  ];
141
141
  return nxJson;
142
142
  });
143
- // change error to warn for the @nx/dependency-checks rule
144
- await (0, ast_1.applyGritQL)(tree, (0, devkit_1.joinPathFragments)(dir, 'eslint.config.mjs'), readGritPattern('eslint-dependency-checks-warn'));
145
143
  await (0, metrics_1.addGeneratorMetricsIfApplicable)(tree, [exports.TS_LIB_GENERATOR_INFO]);
146
144
  await (0, format_1.formatFilesInSubtree)(tree);
147
145
  return () => {
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/lib/generator.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAWoB;AAEpB,+BAA0C;AAC1C,qDAA0D;AAC1D,yDAAwD;AACxD,6CAAgD;AAChD,+CAA0D;AAC1D,yDAA2E;AAC3E,+CAAoD;AACpD,uCAIwB;AACxB,iDAAsE;AACtE,yCAA8C;AAC9C,2BAAkC;AAClC,+BAA4B;AAE5B,MAAM,eAAe,GAAG,CAAC,IAAY,EAAU,EAAE,CAC/C,IAAA,iBAAY,EAAC,IAAA,WAAI,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;AAE3D,QAAA,qBAAqB,GAChC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAa/B;;GAEG;AACI,MAAM,eAAe,GAAG,CAC7B,IAAU,EACV,MAAgC,EAClB,EAAE;IAChB,MAAM,KAAK,GAAG,IAAA,6BAAiB,EAAC,IAAI,CAAC,CAAC;IACtC,MAAM,cAAc,GAAG,IAAA,mBAAW,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,kBAAkB,GAAG,GAAG,KAAK,GAAG,cAAc,EAAE,CAAC;IACvD,yDAAyD;IACzD,MAAM,GAAG,GAAG,IAAA,0BAAiB,EAC3B,MAAM,CAAC,SAAS,IAAI,GAAG,EACvB,MAAM,CAAC,YAAY,IAAI,cAAc,CACtC,CAAC;IACF,OAAO,EAAE,GAAG,EAAE,kBAAkB,EAAE,CAAC;AACrC,CAAC,CAAC;AAbW,QAAA,eAAe,mBAa1B;AAEF;;GAEG;AACI,MAAM,kBAAkB,GAAG,KAAK,EACrC,IAAU,EACV,MAA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+B,EAAC,IAAI,EAAE,CAAC,6BAAqB,CAAC,CAAC,CAAC;IAErE,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;IAEjC,OAAO,GAAG,EAAE;QACV,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;YACxB,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC,CAAC;AACJ,CAAC,CAAC;AA1JW,QAAA,kBAAkB,sBA0J7B;AACF,kBAAe,0BAAkB,CAAC"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/lib/generator.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAWoB;AACpB,+BAA0C;AAC1C,+CAA0D;AAC1D,iDAAsE;AACtE,6CAAgD;AAChD,qDAA0D;AAC1D,uCAKwB;AACxB,+CAAoD;AACpD,yDAA2E;AAE3E,yDAAwD;AAE3C,QAAA,qBAAqB,GAChC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAa/B;;GAEG;AACI,MAAM,eAAe,GAAG,CAC7B,IAAU,EACV,MAAgC,EAClB,EAAE;IAChB,MAAM,KAAK,GAAG,IAAA,6BAAiB,EAAC,IAAI,CAAC,CAAC;IACtC,MAAM,cAAc,GAAG,IAAA,mBAAW,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,kBAAkB,GAAG,GAAG,KAAK,GAAG,cAAc,EAAE,CAAC;IACvD,yDAAyD;IACzD,MAAM,GAAG,GAAG,IAAA,0BAAiB,EAC3B,MAAM,CAAC,SAAS,IAAI,GAAG,EACvB,MAAM,CAAC,YAAY,IAAI,cAAc,CACtC,CAAC;IACF,OAAO,EAAE,GAAG,EAAE,kBAAkB,EAAE,CAAC;AACrC,CAAC,CAAC;AAbW,QAAA,eAAe,mBAa1B;AAEF;;GAEG;AACI,MAAM,kBAAkB,GAAG,KAAK,EACrC,IAAU,EACV,MAAgC,EACJ,EA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AC,CAAC;IAErE,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;IAEjC,OAAO,GAAG,EAAE;QACV,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;YACxB,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC,CAAC;AACJ,CAAC,CAAC;AAxJW,QAAA,kBAAkB,sBAwJ7B;AACF,kBAAe,0BAAkB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  `test: { $props }` => raw`test: {
2
- $props
3
2
  passWithNoTests: true,
3
+ $props
4
4
  }` where {
5
5
  $props <: within `defineConfig($_)`,
6
6
  $props <: not some `passWithNoTests: $_`
@@ -2,9 +2,19 @@
2
2
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- import { Tree } from '@nx/devkit';
6
- import { ConfigureProjectOptions } from './types';
5
+ import { type Tree } from '@nx/devkit';
6
+ import type { ConfigureProjectOptions } from './types';
7
+ interface TsConfigReference {
8
+ path: string;
9
+ }
10
+ /**
11
+ * Merges new TypeScript project references into existing ones, deduplicating by
12
+ * path and preserving the order of existing references so re-running a
13
+ * generator neither duplicates nor reorders references.
14
+ */
15
+ export declare const mergeTsReferences: (existing: TsConfigReference[] | undefined, toAdd: TsConfigReference[]) => TsConfigReference[];
7
16
  /**
8
17
  * Updates typescript projects
9
18
  */
10
19
  export declare const configureTsProject: (tree: Tree, options: ConfigureProjectOptions) => Promise<void>;
20
+ export {};
@@ -1,15 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.configureTsProject = void 0;
3
+ exports.configureTsProject = exports.mergeTsReferences = void 0;
4
4
  /**
5
5
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
6
  * SPDX-License-Identifier: Apache-2.0
7
7
  */
8
8
  const devkit_1 = require("@nx/devkit");
9
9
  const path_1 = require("path");
10
+ const config_1 = require("../../license/config");
10
11
  const npm_scope_1 = require("../../utils/npm-scope");
12
+ const biome_1 = require("./biome");
11
13
  const vitest_1 = require("./vitest");
12
- const eslint_1 = require("./eslint");
14
+ /**
15
+ * Merges new TypeScript project references into existing ones, deduplicating by
16
+ * path and preserving the order of existing references so re-running a
17
+ * generator neither duplicates nor reorders references.
18
+ */
19
+ const mergeTsReferences = (existing, toAdd) => {
20
+ const references = [...(existing ?? [])];
21
+ const existingPaths = new Set(references.map((ref) => ref.path));
22
+ for (const ref of toAdd) {
23
+ if (!existingPaths.has(ref.path)) {
24
+ references.push(ref);
25
+ existingPaths.add(ref.path);
26
+ }
27
+ }
28
+ return references;
29
+ };
30
+ exports.mergeTsReferences = mergeTsReferences;
13
31
  /**
14
32
  * Updates typescript projects
15
33
  */
@@ -60,13 +78,10 @@ const configureTsProject = async (tree, options) => {
60
78
  if (tree.exists('tsconfig.json')) {
61
79
  (0, devkit_1.updateJson)(tree, 'tsconfig.json', (tsConfig) => ({
62
80
  ...tsConfig,
63
- references: [
64
- // Add project references, ensuring no duplication
65
- ...(tsConfig.references ?? []).filter((ref) => ref.path !== `./${options.dir}`),
66
- {
67
- path: `./${options.dir}`,
68
- },
69
- ],
81
+ // Add project references, deduplicating and preserving existing order
82
+ references: (0, exports.mergeTsReferences)(tsConfig.references, [
83
+ { path: `./${options.dir}` },
84
+ ]),
70
85
  }));
71
86
  }
72
87
  // Update the root package.json
@@ -78,8 +93,13 @@ const configureTsProject = async (tree, options) => {
78
93
  if (tree.exists((0, path_1.join)(options.dir, 'package.json'))) {
79
94
  tree.delete((0, path_1.join)(options.dir, 'package.json'));
80
95
  }
81
- await (0, eslint_1.configureEslint)(tree, options);
96
+ await (0, biome_1.configureBiomeLint)(tree, options);
82
97
  await (0, vitest_1.configureVitest)(tree, options);
98
+ // If license checking is configured, make this project's lint target depend
99
+ // on the root license-check target. No-op if there's no license-check target
100
+ // (i.e. the license generator hasn't run); the license generator wires up
101
+ // existing projects itself, so this works regardless of generator order.
102
+ (0, config_1.addLicenseCheckToLintTarget)(tree, options.fullyQualifiedName);
83
103
  };
84
104
  exports.configureTsProject = configureTsProject;
85
105
  //# sourceMappingURL=ts-project-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ts-project-utils.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/lib/ts-project-utils.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAAiE;AACjE,+BAAsC;AACtC,qDAAqD;AAErD,qCAA2C;AAC3C,qCAA2C;AAE3C;;GAEG;AACI,MAAM,kBAAkB,GAAG,KAAK,EACrC,IAAU,EACV,OAAgC,EAChC,EAAE;IACF,mDAAmD;IACnD,IAAA,mBAAU,EAAC,IAAI,EAAE,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAClE,GAAG,QAAQ;QACX,eAAe,EAAE;YACf,GAAG,QAAQ,CAAC,eAAe;YAC3B,MAAM,EACJ,QAAQ,CAAC,eAAe,EAAE,MAAM,KAAK,UAAU;gBAC7C,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM;SACvC;KACF,CAAC,CAAC,CAAC;IACJ,MAAM,wBAAwB,GAAG,IAAA,eAAQ,EACvC,IAAA,WAAI,EAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,EAC5B,IAAI,CAAC,IAAI,CACV,CAAC;IACF,MAAM,OAAO,GAAG,IAAA,WAAI,EAAC,wBAAwB,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC3E,wDAAwD;IACxD,IAAI,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC;QACxD,IAAA,mBAAU,EAAC,IAAI,EAAE,IAAA,WAAI,E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gBAClD,GAAG,CAAC,QAAQ,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,MAAM,CACnC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,KAAK,OAAO,CAAC,GAAG,EAAE,CACzC;gBACD;oBACE,IAAI,EAAE,KAAK,OAAO,CAAC,GAAG,EAAE;iBACzB;aACF;SACF,CAAC,CAAC,CAAC;IACN,CAAC;IACD,+BAA+B;IAC/B,IAAA,mBAAU,EAAC,IAAI,EAAE,cAAc,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QACjD,GAAG,WAAW;QACd,IAAI,EAAE,QAAQ;KACf,CAAC,CAAC,CAAC;IACJ,mCAAmC;IACnC,IAAI,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC;QACnD,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,IAAA,wBAAe,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACrC,MAAM,IAAA,wBAAe,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC,CAAC;AAjFW,QAAA,kBAAkB,sBAiF7B"}
1
+ {"version":3,"file":"ts-project-utils.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/lib/ts-project-utils.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAAsE;AACtE,+BAAsC;AACtC,iDAAmE;AACnE,qDAAqD;AACrD,mCAA6C;AAE7C,qCAA2C;AAM3C;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,CAC/B,QAAyC,EACzC,KAA0B,EACL,EAAE;IACvB,MAAM,UAAU,GAAG,CAAC,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC;IACzC,MAAM,aAAa,GAAG,IAAI,GAA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E,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAC/C,GAAG,QAAQ;YACX,sEAAsE;YACtE,UAAU,EAAE,IAAA,yBAAiB,EAAC,QAAQ,CAAC,UAAU,EAAE;gBACjD,EAAE,IAAI,EAAE,KAAK,OAAO,CAAC,GAAG,EAAE,EAAE;aAC7B,CAAC;SACH,CAAC,CAAC,CAAC;IACN,CAAC;IACD,+BAA+B;IAC/B,IAAA,mBAAU,EAAC,IAAI,EAAE,cAAc,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QACjD,GAAG,WAAW;QACd,IAAI,EAAE,QAAQ;KACf,CAAC,CAAC,CAAC;IACJ,mCAAmC;IACnC,IAAI,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC;QACnD,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,IAAA,0BAAkB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACxC,MAAM,IAAA,wBAAe,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAErC,4EAA4E;IAC5E,6EAA6E;IAC7E,0EAA0E;IAC1E,yEAAyE;IACzE,IAAA,oCAA2B,EAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAChE,CAAC,CAAC;AAlFW,QAAA,kBAAkB,sBAkF7B"}
@@ -2,6 +2,6 @@
2
2
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- import { Tree } from '@nx/devkit';
6
- import { ConfigureProjectOptions } from './types';
5
+ import { type Tree } from '@nx/devkit';
6
+ import type { ConfigureProjectOptions } from './types';
7
7
  export declare const configureVitest: (tree: Tree, options: ConfigureProjectOptions) => Promise<void>;
@@ -6,10 +6,10 @@ exports.configureVitest = void 0;
6
6
  * SPDX-License-Identifier: Apache-2.0
7
7
  */
8
8
  const devkit_1 = require("@nx/devkit");
9
+ const fs_1 = require("fs");
9
10
  const path_1 = require("path");
10
11
  const ast_1 = require("../../utils/ast");
11
12
  const versions_1 = require("../../utils/versions");
12
- const fs_1 = require("fs");
13
13
  const readGritPattern = (name) => (0, fs_1.readFileSync)((0, path_1.join)(__dirname, 'grit', `${name}.grit`), 'utf-8').trim();
14
14
  const configureVitest = async (tree, options) => {
15
15
  // Find vitest.config.mts or vite.config.mts
@@ -1 +1 @@
1
- {"version":3,"file":"vitest.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/lib/vitest.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAKoB;AACpB,+BAA4B;AAE5B,yCAA8C;AAC9C,mDAAoD;AACpD,2BAAkC;AAElC,MAAM,eAAe,GAAG,CAAC,IAAY,EAAU,EAAE,CAC/C,IAAA,iBAAY,EAAC,IAAA,WAAI,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;AAEjE,MAAM,eAAe,GAAG,KAAK,EAClC,IAAU,EACV,OAAgC,EAChC,EAAE;IACF,4CAA4C;IAC5C,MAAM,UAAU,GAAG;QACjB,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,mBAAmB,CAAC;QACtC,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,iBAAiB,CAAC;KACrC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAExC,IAAI,UAAU,EAAE,CAAC;QACf,MAAM,IAAA,iBAAW,EACf,IAAI,EACJ,UAAU,EACV,eAAe,CAAC,2BAA2B,CAAC,CAC7C,CAAC;QAEF,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,IAAI,CAAC,C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I,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAExC,IAAI,UAAU,EAAE,CAAC;QACf,MAAM,IAAA,iBAAW,EACf,IAAI,EACJ,UAAU,EACV,eAAe,CAAC,2BAA2B,CAAC,CAC7C,CAAC;QAEF,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC;QAChC,IAAA,qBAAY,EAAC,IAAI,EAAE;YACjB,GAAG,MAAM;YACT,cAAc,EAAE;gBACd,GAAG,CAAC,MAAM,CAAC,cAAc,IAAI,EAAE,CAAC;gBAChC,iBAAiB,EAAE;oBACjB,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;oBAClC,cAAc,EAAE;wBACd,iBAAiB,EAAE;4BACjB,IAAI,EAAE,UAAU;yBACjB;qBACF;oBACD,GAAG,MAAM,CAAC,cAAc,CAAC,iBAAiB,CAAC;iBAC5C;aACF;SACF,CAAC,CAAC;IACL,CAAC;IAED,IAAA,qCAA4B,EAC1B,IAAI,EACJ,EAAE,EACF,IAAA,uBAAY,EAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,qBAAqB,CAAC,CAAC,CACxD,CAAC;AACJ,CAAC,CAAC;AAzCW,QAAA,eAAe,mBAyC1B"}
@@ -726,8 +726,8 @@ exports[`ts#mcp-server generator > should match snapshot for generated files > u
726
726
  "snapshot-server": "./src/snapshot-server/stdio.js"
727
727
  },
728
728
  "dependencies": {
729
- "@aws-lambda-powertools/parameters": "2.33.0",
730
- "@aws-sdk/client-appconfigdata": "3.1053.0",
729
+ "@aws-lambda-powertools/parameters": "2.33.1",
730
+ "@aws-sdk/client-appconfigdata": "3.1063.0",
731
731
  "@modelcontextprotocol/sdk": "1.29.0",
732
732
  "express": "5.2.1",
733
733
  "zod": "4.4.3"
@@ -735,7 +735,7 @@ exports[`ts#mcp-server generator > should match snapshot for generated files > u
735
735
  "devDependencies": {
736
736
  "@modelcontextprotocol/inspector": "0.19.0",
737
737
  "@types/express": "5.0.6",
738
- "tsx": "4.22.3"
738
+ "tsx": "4.22.4"
739
739
  }
740
740
  }
741
741
  "
@@ -2,9 +2,9 @@
2
2
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- import { GeneratorCallback, Tree } from '@nx/devkit';
6
- import { TsMcpServerGeneratorSchema } from './schema';
7
- import { NxGeneratorInfo } from '../../utils/nx';
5
+ import { type GeneratorCallback, type Tree } from '@nx/devkit';
6
+ import { type NxGeneratorInfo } from '../../utils/nx';
7
+ import type { TsMcpServerGeneratorSchema } from './schema';
8
8
  export declare const TS_MCP_SERVER_GENERATOR_INFO: NxGeneratorInfo;
9
9
  export declare const tsMcpServerGenerator: (tree: Tree, options: TsMcpServerGeneratorSchema) => Promise<GeneratorCallback>;
10
10
  export default tsMcpServerGenerator;