Skip to content

Commit b3b3ff4

Browse files
committed
chore: create tsconfig.build.json for building
to avoid palantir/tslint#3677
1 parent 663e61d commit b3b3ff4

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"dev": "parcel ./demo/index.html",
99
"build:demo": "parcel build ./demo/index.html --out-dir ./demo/dist --public-url ./",
10-
"build": "rm -rf ./dist && tsc",
10+
"build": "rm -rf ./dist && tsc -p ./tsconfig.build.json",
1111
"prettier": "prettier '@(src|demo)/**/*.@(ts|tsx|html|less)' --write",
1212
"lint": "tslint -p tsconfig.json --fix",
1313
"test": "echo \"Error: no test specified\" && exit 1"

tsconfig.build.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src"]
4+
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
"jsx": "react",
1717
"target": "es5"
1818
},
19-
"include": ["src"]
19+
"include": ["src", "demo"]
2020
}

0 commit comments

Comments
 (0)