Skip to content

Commit 023d3fe

Browse files
committed
add tests to tsconfig for checking
1 parent 8e9c7dd commit 023d3fe

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"lib"
2424
],
2525
"scripts": {
26-
"build": "tsc --build",
26+
"build": "tsc --build tsconfig.build.json",
2727
"build:docs": "cd docs && JEKYLL_ENV=production bundle exec jekyll build",
28-
"clean": "tsc --build --clean",
28+
"clean": "tsc --build --clean tsconfig.build.json",
2929
"lint": "eslint . --ignore-path .gitignore",
3030
"prepack": "npm run build",
3131
"presize": "npm run build",

tsconfig.build.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"exclude": ["test"],
3+
"extends": "./tsconfig.json",
4+
"compilerOptions": {
5+
"declaration": true,
6+
"declarationMap": true,
7+
"outDir": "./lib",
8+
"noEmit": false
9+
}
10+
}

tsconfig.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
{
2-
"include": ["src"],
2+
"include": ["src", "test"],
33
"compilerOptions": {
44
"baseUrl": ".",
5-
"declaration": true,
6-
"declarationMap": true,
75
"esModuleInterop": true,
86
"experimentalDecorators": true,
97
"lib": ["es6", "dom", "dom.iterable"],
108
"module": "ESNext",
119
"moduleResolution": "node",
12-
"noEmit": false,
13-
"outDir": "./lib",
10+
"noEmit": true,
1411
"sourceMap": true,
1512
"strict": true,
1613
"target": "ES2020"

0 commit comments

Comments
 (0)