From b6c0391f8734e0b07004235983a6a3f848e56464 Mon Sep 17 00:00:00 2001 From: bh2980 Date: Mon, 20 May 2024 05:52:35 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=B9=8C=EB=93=9C=EC=9A=A9=20tsconfig?= =?UTF-8?q?.json=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- tsconfig.build.json | 13 +++++++++++++ tsconfig.json | 9 --------- 3 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 tsconfig.build.json 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" }] }