Skip to content

Commit 8a6c19c

Browse files
committed
Add typescript config for building standalone demo apps
1 parent 303b7d2 commit 8a6c19c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
},
4545
"scripts": {
4646
"build": "rimraf dist && tsc && tsc -p tsconfig.cjs.json && node build-scripts/dist-package-json",
47+
"build:demo": "rimraf dist && tsc -p tsconfig.demo.json",
4748
"prepublish": "npm run build",
4849
"prepare": "husky install",
4950
"format:check": "prettier --check **/*.{ts,js} !**/dist/** !**/node_modules/**",

tsconfig.demo.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"outDir": "./dist",
6+
"resolveJsonModule": true
7+
},
8+
"include": [
9+
"src/**/*.ts",
10+
"demo/**/*.ts"
11+
],
12+
"exclude": [
13+
"src/**/*.spec.ts",
14+
"demo/**/*.spec.ts"
15+
]
16+
}

0 commit comments

Comments
 (0)