Skip to content

Commit 41cb6f3

Browse files
authored
chore: refactor tsconfig to support esm deps (#199)
Adjusting the tsconfig values to allow for using an esm-only dependency. Refs: #195
1 parent edada77 commit 41cb6f3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

tsconfig-base.json

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"declarationMap": true,
77
"esModuleInterop": true,
88
"isolatedModules": true,
9-
"moduleResolution": "node",
109
"skipLibCheck": true
1110
}
1211
}

tsconfig-esm.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"exclude": ["./test", "./tap-snapshots"],
44
"compilerOptions": {
55
"module": "esnext",
6+
"moduleResolution": "node",
67
"outDir": "dist/mjs"
78
}
89
}

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "./tsconfig-base.json",
33
"compilerOptions": {
4-
"module": "commonjs",
4+
"module": "node16",
5+
"moduleResolution": "node16",
56
"outDir": "dist/cjs"
67
}
78
}

0 commit comments

Comments
 (0)