Skip to content

Commit 76e0fa0

Browse files
authored
chore: enable isolatedModules in TypeScript configs (#36024)
### Reason for this change Follow-up to #35997 in which I missed many tsconfigs and also didn't actually remove the deprecated `ts-jest` config. ### Description of changes - Added `"isolatedModules": true` to all `tsconfig.json` and `tsconfig.dev.json` files across packages and tools - Removed the redundant `isolatedModules` override from the Jest configuration in `cdk-build-tools` since it's now set globally in TypeScript configs ### Describe any new or updated permissions being added None ### Description of how you validated changes This is a build configuration change that enables stricter TypeScript compilation checks. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 3f5c5ac commit 76e0fa0

File tree

26 files changed

+27
-7
lines changed

26 files changed

+27
-7
lines changed

packages/@aws-cdk-testing/framework-integ/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"noFallthroughCasesInSwitch": true,
1616
"resolveJsonModule": true,
1717
"composite": true,
18+
"isolatedModules": true,
1819
"incremental": true
1920
},
2021
"include": [

packages/@aws-cdk/aws-ec2-alpha/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"stripInternal": false,
2626
"target": "es2022",
2727
"composite": true,
28+
"isolatedModules": true,
2829
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
2930
"esModuleInterop": true
3031
},

packages/@aws-cdk/aws-imagebuilder-alpha/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"stripInternal": false,
2626
"target": "es2022",
2727
"composite": true,
28+
"isolatedModules": true,
2829
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
2930
"esModuleInterop": false
3031
},

packages/@aws-cdk/aws-pipes-alpha/tsconfig.dev.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"stripInternal": false,
2626
"target": "ES2022",
2727
"composite": false,
28+
"isolatedModules": true,
2829
"tsBuildInfoFile": "tsconfig.dev.tsbuildinfo"
2930
},
3031
"include": [

packages/@aws-cdk/aws-pipes-alpha/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"stripInternal": false,
2626
"target": "es2022",
2727
"composite": true,
28+
"isolatedModules": true,
2829
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
29-
"esModuleInterop": false,
30-
"isolatedModules": true
30+
"esModuleInterop": false
3131
},
3232
"include": [
3333
"**/*.ts"

packages/@aws-cdk/aws-pipes-enrichments-alpha/tsconfig.dev.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"stripInternal": false,
2626
"target": "ES2022",
2727
"composite": false,
28+
"isolatedModules": true,
2829
"tsBuildInfoFile": "tsconfig.dev.tsbuildinfo"
2930
},
3031
"include": [

packages/@aws-cdk/aws-pipes-sources-alpha/tsconfig.dev.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"stripInternal": false,
2626
"target": "ES2022",
2727
"composite": false,
28+
"isolatedModules": true,
2829
"tsBuildInfoFile": "tsconfig.dev.tsbuildinfo"
2930
},
3031
"include": [

packages/@aws-cdk/aws-pipes-targets-alpha/tsconfig.dev.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"stripInternal": false,
2626
"target": "ES2022",
2727
"composite": false,
28+
"isolatedModules": true,
2829
"tsBuildInfoFile": "tsconfig.dev.tsbuildinfo"
2930
},
3031
"include": [

packages/@aws-cdk/aws-route53resolver-alpha/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"stripInternal": false,
2626
"target": "es2022",
2727
"composite": true,
28+
"isolatedModules": true,
2829
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
2930
"esModuleInterop": true
3031
},

packages/@aws-cdk/aws-servicecatalogappregistry-alpha/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"stripInternal": false,
2626
"target": "es2022",
2727
"composite": true,
28+
"isolatedModules": true,
2829
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
2930
"esModuleInterop": true
3031
},

0 commit comments

Comments
 (0)