Skip to content

Commit 5556be6

Browse files
committed
refactor: tsconfig.json workspace에 생성 및 변경 (#79)
1 parent a13c9b7 commit 5556be6

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

packages/react/tsconfig.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"esModuleInterop": true,
5+
"forceConsistentCasingInFileNames": true,
6+
"strict": true,
7+
"skipLibCheck": true,
8+
"jsx": "react",
9+
"module": "ESNext",
10+
"declaration": true, // *.d.ts 타입 파일 생성 여부
11+
"declarationDir": "./dist", // *.d.ts 타입 파일 생성 경로
12+
"sourceMap": false,
13+
"outDir": "./dist", // 빌드 결과물이 저장될 경로
14+
"moduleResolution": "node",
15+
"allowSyntheticDefaultImports": true,
16+
"emitDeclarationOnly": true
17+
},
18+
"include": ["./src"],
19+
"exclude": ["./dist", "./node_modules"]
20+
}

tsconfig.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
"outDir": "./dist", // 빌드 결과물이 저장될 경로
1414
"moduleResolution": "node",
1515
"allowSyntheticDefaultImports": true,
16-
"emitDeclarationOnly": true,
17-
"removeComments": true
16+
"emitDeclarationOnly": true
1817
},
19-
"include": ["./packages"],
20-
"exclude": ["./dist", "./node_modules"]
18+
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
19+
"exclude": ["node_modules"]
2120
}

0 commit comments

Comments
 (0)