Skip to content

Commit b5aff48

Browse files
committed
Fix lack of source maps in ESM output
1 parent def691d commit b5aff48

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

tsconfig.build.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": { "outDir": "./dist/esm" },
4-
"include": ["src/**/*.ts"]
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"declaration": true,
5+
"declarationMap": true,
6+
"declarationDir": "./dist/types",
7+
"sourceMap": true,
8+
"outDir": "./dist/esm"
9+
},
10+
"include": ["src/**/*.ts"]
511
}

tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"compilerOptions": {
33
// We don't want to check node_modules
44
"skipLibCheck": true,
5-
"declaration": true,
6-
"declarationMap": true,
7-
"declarationDir": "./dist/types",
85
"module": "node16",
96
// Node.js 18 supports up to ES2022 according to https://www.npmjs.com/package/@tsconfig/node18
107
"target": "es2022",

0 commit comments

Comments
 (0)