Skip to content

Commit 97c4487

Browse files
committed
add typecheck:server command and add server-check to main typecheck
1 parent 1b03597 commit 97c4487

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

client/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66
"lib": ["DOM", "ESNext"],
77
"jsx": "react",
88
},
9+
"include": ["./**/*"],
10+
"exclude": ["../node_modules", "../server"]
911
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
"storybook:build:css": "sass client/styles/main.scss client/styles/storybook.css",
2828
"storybook": "npm run storybook:build:css && storybook dev -p 6006",
2929
"build-storybook": "storybook build",
30-
"typecheck": "npm run typecheck:client",
31-
"typecheck:client": "npx tsc --noEmit -p ./client/tsconfig.json"
30+
"typecheck": "npm run typecheck:client && npm run typecheck:server",
31+
"typecheck:client": "npx tsc --noEmit -p ./client/tsconfig.json",
32+
"typecheck:server": "npx tsc --noEmit -p ./server/tsconfig.json"
3233
},
3334
"husky": {
3435
"hooks": {

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files": [],
33
"references": [
4-
{ "path": "client" },
5-
// { "path": "server" }
4+
{ "path": "./client" },
5+
{ "path": "./server" }
66
],
77
}

0 commit comments

Comments
 (0)