aws-cdk 2.1130.0 → 2.1132.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 (30) hide show
  1. package/THIRD_PARTY_LICENSES +205 -0
  2. package/build-info.json +2 -2
  3. package/lib/cli/cli-config.js +4 -1
  4. package/lib/cli/cli-type-registry.json +3 -0
  5. package/lib/cli/cli.js +5 -1
  6. package/lib/cli/convert-to-user-input.js +6 -1
  7. package/lib/cli/io-host/cli-io-host.d.ts +1 -1
  8. package/lib/cli/io-host/cli-io-host.js +1 -1
  9. package/lib/cli/parse-command-line-arguments.js +2 -1
  10. package/lib/cli/user-configuration.d.ts +1 -0
  11. package/lib/cli/user-configuration.js +2 -1
  12. package/lib/cli/user-input.d.ts +4 -0
  13. package/lib/cli/user-input.js +1 -1
  14. package/lib/commands/lsp.d.ts +9 -0
  15. package/lib/commands/lsp.js +56 -0
  16. package/lib/index.js +21192 -5151
  17. package/lib/init-templates/app/typescript/README.md +2 -2
  18. package/lib/init-templates/app/typescript/cdk.template.json +1 -1
  19. package/lib/init-templates/app/typescript/jest.config.js +1 -1
  20. package/lib/init-templates/app/typescript/package.json +4 -3
  21. package/lib/init-templates/app/typescript/tsconfig.json +6 -0
  22. package/lib/init-templates/lib/typescript/jest.config.js +1 -1
  23. package/lib/init-templates/lib/typescript/package.json +3 -2
  24. package/lib/init-templates/lib/typescript/tsconfig.json +4 -0
  25. package/lib/init-templates/sample-app/typescript/README.template.md +2 -2
  26. package/lib/init-templates/sample-app/typescript/cdk.template.json +1 -1
  27. package/lib/init-templates/sample-app/typescript/jest.config.js +1 -1
  28. package/lib/init-templates/sample-app/typescript/package.json +4 -3
  29. package/lib/init-templates/sample-app/typescript/tsconfig.json +6 -0
  30. package/package.json +6 -5
@@ -6,8 +6,8 @@ The `cdk.json` file tells the CDK Toolkit how to execute your app.
6
6
 
7
7
  ## Useful commands
8
8
 
9
- * `%pm-cmd% build` compile typescript to js
10
- * `%pm-cmd% watch` watch for changes and compile
9
+ * `%pm-cmd% build` type-check the project
10
+ * `%pm-cmd% watch` watch for changes and type-check
11
11
  * `%pm-cmd% test` perform the jest unit tests
12
12
  * `npx cdk deploy` deploy this stack to your default AWS account/region
13
13
  * `npx cdk diff` compare deployed stack with current state
@@ -1,5 +1,5 @@
1
1
  {
2
- "app": "npx ts-node --prefer-ts-exts bin/%name%.ts",
2
+ "app": "npx tsc && npx tsx bin/%name%.ts",
3
3
  "watch": {
4
4
  "include": ["**"],
5
5
  "exclude": [
@@ -3,7 +3,7 @@ module.exports = {
3
3
  roots: ['<rootDir>/test'],
4
4
  testMatch: ['**/*.test.ts'],
5
5
  transform: {
6
- '^.+\\.tsx?$': 'ts-jest'
6
+ '^.+\\.tsx?$': ['@swc/jest']
7
7
  },
8
8
  setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean'],
9
9
  };
@@ -8,13 +8,14 @@
8
8
  "cdk": "cdk"
9
9
  },
10
10
  "devDependencies": {
11
+ "@swc/core": "^1.15.0",
12
+ "@swc/jest": "^0.2.39",
11
13
  "@types/jest": "^30",
12
14
  "@types/node": "^24.10.1",
13
15
  "jest": "^30",
14
- "ts-jest": "^29",
15
16
  "aws-cdk": "%cdk-cli-version%",
16
- "ts-node": "^10.9.2",
17
- "typescript": "~5.9.3"
17
+ "tsx": "^4.23.0",
18
+ "typescript": "~7.0.2"
18
19
  },
19
20
  "dependencies": {
20
21
  "aws-cdk-lib": "%cdk-version%",
@@ -23,6 +23,12 @@
23
23
  "skipLibCheck": true,
24
24
  "typeRoots": [
25
25
  "./node_modules/@types"
26
+ ],
27
+ "noEmit": true,
28
+ "isolatedModules": true,
29
+ "types": [
30
+ "jest",
31
+ "node"
26
32
  ]
27
33
  },
28
34
  "exclude": [
@@ -3,7 +3,7 @@ module.exports = {
3
3
  roots: ['<rootDir>/test'],
4
4
  testMatch: ['**/*.test.ts'],
5
5
  transform: {
6
- '^.+\\.tsx?$': 'ts-jest'
6
+ '^.+\\.tsx?$': ['@swc/jest']
7
7
  },
8
8
  setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean'],
9
9
  };
@@ -9,13 +9,14 @@
9
9
  "test": "jest"
10
10
  },
11
11
  "devDependencies": {
12
+ "@swc/core": "^1.15.0",
13
+ "@swc/jest": "^0.2.39",
12
14
  "@types/jest": "^30",
13
15
  "@types/node": "^20.19.24",
14
16
  "aws-cdk-lib": "%cdk-version%",
15
17
  "constructs": "%constructs-version%",
16
18
  "jest": "^30",
17
- "ts-jest": "^29",
18
- "typescript": "~5.9.3"
19
+ "typescript": "~7.0.2"
19
20
  },
20
21
  "peerDependencies": {
21
22
  "aws-cdk-lib": "%cdk-version%",
@@ -23,6 +23,10 @@
23
23
  "skipLibCheck": true,
24
24
  "typeRoots": [
25
25
  "./node_modules/@types"
26
+ ],
27
+ "types": [
28
+ "jest",
29
+ "node"
26
30
  ]
27
31
  },
28
32
  "exclude": [
@@ -7,8 +7,8 @@ The `cdk.json` file tells the CDK Toolkit how to execute your app.
7
7
 
8
8
  ## Useful commands
9
9
 
10
- * `%pm-cmd% build` compile typescript to js
11
- * `%pm-cmd% watch` watch for changes and compile
10
+ * `%pm-cmd% build` type-check the project
11
+ * `%pm-cmd% watch` watch for changes and type-check
12
12
  * `%pm-cmd% test` perform the jest unit tests
13
13
  * `cdk deploy` deploy this stack to your default AWS account/region
14
14
  * `cdk diff` compare deployed stack with current state
@@ -1,5 +1,5 @@
1
1
  {
2
- "app": "npx ts-node --prefer-ts-exts bin/%name%.ts",
2
+ "app": "npx tsc && npx tsx bin/%name%.ts",
3
3
  "watch": {
4
4
  "include": ["**"],
5
5
  "exclude": [
@@ -3,7 +3,7 @@ module.exports = {
3
3
  roots: ['<rootDir>/test'],
4
4
  testMatch: ['**/*.test.ts'],
5
5
  transform: {
6
- '^.+\\.tsx?$': 'ts-jest'
6
+ '^.+\\.tsx?$': ['@swc/jest']
7
7
  },
8
8
  setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean'],
9
9
  };
@@ -8,13 +8,14 @@
8
8
  "cdk": "cdk"
9
9
  },
10
10
  "devDependencies": {
11
+ "@swc/core": "^1.15.0",
12
+ "@swc/jest": "^0.2.39",
11
13
  "@types/jest": "^30",
12
14
  "@types/node": "^24.10.1",
13
15
  "jest": "^30",
14
- "ts-jest": "^29",
15
16
  "aws-cdk": "%cdk-cli-version%",
16
- "ts-node": "^10.9.2",
17
- "typescript": "~5.9.3"
17
+ "tsx": "^4.23.0",
18
+ "typescript": "~7.0.2"
18
19
  },
19
20
  "dependencies": {
20
21
  "aws-cdk-lib": "%cdk-version%",
@@ -23,6 +23,12 @@
23
23
  "skipLibCheck": true,
24
24
  "typeRoots": [
25
25
  "./node_modules/@types"
26
+ ],
27
+ "noEmit": true,
28
+ "isolatedModules": true,
29
+ "types": [
30
+ "jest",
31
+ "node"
26
32
  ]
27
33
  },
28
34
  "exclude": [
package/package.json CHANGED
@@ -81,13 +81,14 @@
81
81
  "ts-node": "^10.9.2",
82
82
  "tsx": "^4.22.4",
83
83
  "typescript": "5.9",
84
- "@aws-cdk/cdk-assets-lib": "^1.4.13",
85
- "@aws-cdk/cloud-assembly-api": "2.2.6",
86
- "@aws-cdk/cloud-assembly-schema": ">=54.9.0",
84
+ "@aws-cdk/cdk-assets-lib": "^1.4.14",
85
+ "@aws-cdk/cdk-explorer": "^0.0.0",
86
+ "@aws-cdk/cloud-assembly-api": "2.3.0",
87
+ "@aws-cdk/cloud-assembly-schema": ">=54.12.0",
87
88
  "@aws-cdk/cloudformation-diff": "2.187.2",
88
89
  "@aws-cdk/cx-api": "^2",
89
90
  "@aws-cdk/private-tools": "^0.0.0",
90
- "@aws-cdk/toolkit-lib": "^1.33.0",
91
+ "@aws-cdk/toolkit-lib": "^1.35.0",
91
92
  "@aws-sdk/client-appsync": "^3",
92
93
  "@aws-sdk/client-bedrock-agentcore-control": "^3",
93
94
  "@aws-sdk/client-cloudcontrol": "^3",
@@ -158,7 +159,7 @@
158
159
  "publishConfig": {
159
160
  "access": "public"
160
161
  },
161
- "version": "2.1130.0",
162
+ "version": "2.1132.0",
162
163
  "packageManager": "yarn@4.13.0",
163
164
  "types": "lib/index.d.ts",
164
165
  "exports": {