Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 619b09e

Browse files
committed
build: only specify sourceMap options in dist tsconfig
Fixes error during tests
1 parent 8ef79c2 commit 619b09e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tsconfig.dist.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": false,
5+
"declaration": true,
6+
"inlineSourceMap": true,
7+
"inlineSources": true
8+
},
39
"include": ["src/**/*"],
410
"exclude": ["src/**/*.test.ts", "src/testutils"]
511
}

tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
"target": "es2018",
55
"module": "es2015",
66
"moduleResolution": "node",
7-
"inlineSourceMap": true,
8-
"inlineSources": true,
7+
"noEmit": true,
98
"declaration": true,
109
"outDir": "lib",
1110
"allowSyntheticDefaultImports": true,
1211
"esModuleInterop": true,
1312
"jsx": "react",
14-
"lib": ["es2017", "dom", "dom.iterable"],
15-
"sourceRoot": "src"
13+
"lib": ["es2017", "dom", "dom.iterable"]
1614
}
1715
}

0 commit comments

Comments
 (0)