diff --git a/package.json b/package.json index 2398268..3ad5270 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..ac1ad7e --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,13 @@ +{ + "extends": "./tsconfig.json", + "exclude": [ + "node_modules", + "**/*.test.ts", + "**/*.test.tsx", + "**/*.stories.tsx", + "*.config.ts", + "*.config.js", + "*.setup.ts", + "*.setup.js" + ] +} diff --git a/tsconfig.json b/tsconfig.json index ff61c2e..e4c8711 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,6 @@ "noFallthroughCasesInSwitch": true, /* 추가 */ - "removeComments": true, "declaration": true, "allowSyntheticDefaultImports": true, "sourceMap": true, @@ -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" }] }