Skip to content

Commit

Permalink
chore: improve dev build scripts (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimshins authored Oct 16, 2024
1 parent 7e30cce commit d3bc23d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"release": "pnpm build && pnpm publish",
"build": "rm -rf dist && tsc --project tsconfig.build.json && pnpm analyze && cp -r ./tokens ./dist && cp -r ./styles ./dist",
"dev": "tsc --watch --preserveWatchOutput & wds",
"dev": "tsc --project tsconfig.dev.json --watch --preserveWatchOutput & wds",
"storybook": "storybook dev -p 3001",
"test": "wtr --watch",
"lint:ts": "tsc --project tsconfig.json",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"inlineSources": true,
"declaration": true,
"incremental": true,
"declarationMap": true
"declarationMap": true,
"noEmitOnError": true
},
"include": ["src"],
"exclude": ["**/*.stories.ts", "**/*.test.ts", "node_modules", "dist"]
Expand Down
6 changes: 6 additions & 0 deletions tsconfig.dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.build.json",
"compilerOptions": {
"noEmitOnError": false
}
}
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Node",
"noEmitOnError": true,
"skipLibCheck": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],

Expand Down

0 comments on commit d3bc23d

Please sign in to comment.