Skip to content

Commit 66ca567

Browse files
committed
Add typescript config for building standalone demo apps
1 parent c6c1883 commit 66ca567

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"outDir": "./dist",
6+
"resolveJsonModule": true
7+
},
8+
"include": ["src/**/*.ts", "demo/**/*.ts"],
9+
"exclude": ["src/**/*.spec.ts", "demo/**/*.spec.ts"]
10+
}

0 commit comments

Comments
 (0)