Skip to content

Commit

Permalink
chore: 빌드용 tsconfig.json 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2980 committed May 19, 2024
1 parent dfb293b commit b6c0391
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "tsc --project tsconfig.build.json && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"test": "jest --passWithNoTests",
"preview": "vite preview",
Expand Down
13 changes: 13 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "./tsconfig.json",
"exclude": [
"node_modules",
"**/*.test.ts",
"**/*.test.tsx",
"**/*.stories.tsx",
"*.config.ts",
"*.config.js",
"*.setup.ts",
"*.setup.js"
]
}
9 changes: 0 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"noFallthroughCasesInSwitch": true,

/* 추가 */
"removeComments": true,
"declaration": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
Expand All @@ -45,13 +44,5 @@
"index.ts",
"src/**/*" // 원하는 소스 파일만 명시적으로 포함
],
"exclude": [
"node_modules",
"**/*.test.ts",
"**/*.test.tsx",
"**/*.stories.tsx",
"*.config.ts", // tailwind 설정 파일을 제외
"*.config.js" // tailwind 설정 파일을 제외
],
"references": [{ "path": "./tsconfig.node.json" }]
}

0 comments on commit b6c0391

Please sign in to comment.