Skip to content

Commit d3bc23d

Browse files
authored
chore: improve dev build scripts (#228)
1 parent 7e30cce commit d3bc23d

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"release": "pnpm build && pnpm publish",
1313
"build": "rm -rf dist && tsc --project tsconfig.build.json && pnpm analyze && cp -r ./tokens ./dist && cp -r ./styles ./dist",
14-
"dev": "tsc --watch --preserveWatchOutput & wds",
14+
"dev": "tsc --project tsconfig.dev.json --watch --preserveWatchOutput & wds",
1515
"storybook": "storybook dev -p 3001",
1616
"test": "wtr --watch",
1717
"lint:ts": "tsc --project tsconfig.json",

tsconfig.build.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"inlineSources": true,
1010
"declaration": true,
1111
"incremental": true,
12-
"declarationMap": true
12+
"declarationMap": true,
13+
"noEmitOnError": true
1314
},
1415
"include": ["src"],
1516
"exclude": ["**/*.stories.ts", "**/*.test.ts", "node_modules", "dist"]

tsconfig.dev.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.build.json",
3+
"compilerOptions": {
4+
"noEmitOnError": false
5+
}
6+
}

tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"target": "ESNext",
44
"module": "ESNext",
55
"moduleResolution": "Node",
6-
"noEmitOnError": true,
76
"skipLibCheck": true,
87
"lib": ["ES2020", "DOM", "DOM.Iterable"],
98

0 commit comments

Comments
 (0)