Skip to content

Commit dba2f66

Browse files
authored
fix(typescript): use modern module and resolution (#321)
See https://www.typescriptlang.org/tsconfig#module
1 parent 4f075c9 commit dba2f66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cdk/RegistryLambdas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PackedLambda } from './registry'
1+
import type { PackedLambda } from './registry.js'
22

33
export type RegistryLambdas = {
44
publishToS3: PackedLambda

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"allowSyntheticDefaultImports": true,
77
"strict": true,
88
"forceConsistentCasingInFileNames": true,
9-
"module": "ES2022",
10-
"moduleResolution": "node",
9+
"module": "nodenext",
10+
"moduleResolution": "nodenext",
1111
"resolveJsonModule": true,
1212
"noEmit": true,
1313
"noFallthroughCasesInSwitch": true,

0 commit comments

Comments
 (0)