๐ ํ์ ์คํฌ๋ฆฝํธ ์ปดํ์ผ ์ต์ : tsconfig.json
{
// ์ปดํ์ผ๋ฌ ์ต์
์ง์
"compilerOptions": {
// ์ปดํ์ผ๋ ES(JS) ๋ฒ์ ๋ช
์ - "ES2015" ๊ถ์ฅ
"target": "esnext",
// ๋ชจ๋ ์์คํ
์ง์ - "CommonJS", "AMD", "ESNext"
"module": "ESNext",
// ๋ชจ๋ ํด์ ๋ฐฉ์ ์ง์ - "Node", "Classic"
"moduleResolution": "Node",
// ESM ๋ชจ๋ ๋ฐฉ์ ํธํ์ฑ ํ์ฑํ ์ฌ๋ถ
"esModuleInterop": false,
// ๋ชจ๋ ํ์ผ์ ๋ชจ๋๋ก ์ปดํ์ผ, import ํน์ export ํค์๋
"isolatedModules": false,
// ๋ชจ๋ ํด์์ ์ฌ์ฉํ ๊ธฐ์ค ๊ฒฝ๋ก ์ง์
"baseUrl": "./",
// ์ปดํ์ผ๋ฌ๊ฐ ์ฐธ์กฐํ ํ์
์ ์ธ(d.ts)์ ๊ฒฝ๋ก๋ฅผ ์ง์
"typeRoots": [
"./node_modules/@types"
],
// ์ปดํ์ผ๋ฌ์์ ์ฌ์ฉํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ง์ - "ESNext", "DOM"
"lib": [],
// ๋ ์๊ฒฉํ ํ์
๊ฒ์ฌ ํ์ฑํ
"strict": false,
// ์์์ any ํ์ ๊ฒ์ฌ ํ์ฑํ
"noImplicitAny": false,
// ์์์ this ํ์
๊ฒ์ฌ ํ์ฑํ
"noImplicitThis": false,
// ์๊ฒฉํ Nullish ํ์
๊ฒ์ฌ ํ์ฑํ
"strictNullChecks": false,
// ์๊ฒฉํ ํจ์์ ๋งค๊ฐ๋ณ์ ํ์
๊ฒ์ฌ ํ์ฑํ
"strictFunctionTypes": false,
// ์๊ฒฉํ ํด๋์ค์ ์์ฑ ์ด๊ธฐํ ๊ฒ์ฌ ํ์ฑํ
"strictPropertyInitialization": false,
// ์๊ฒฉํ Bind, Call, Apply ๋ฉ์๋์ ์ธ์ ๊ฒ์ฌ ํ์ฑํ
"strictBindCallApply": false,
// ์ ์ธ ํ์ผ ์ ํ ๊ฒ์ฌ ์คํต
"skipLibCheck": true,
// ๋์ผํ ํ์ผ์ ๋ํ ์ผ๊ด๋์ง ์์ ์ผ์ด์ค ์ฐธ์กฐ๋ฅผ ํ์ฉํ์ง ์์
"forceConsistentCasingInFileNames": true,
},
// ์ปดํ์ผํ ํ์ผ ๊ฒฝ๋ก ๋ชฉ๋ก
"include": [
"src/**/*.ts",
"api/**/*.ts"
],
// ์ปดํ์ผ์์ ์ ์ธํ ํ์ผ ๊ฒฝ๋ก ๋ชฉ๋ก
"exclude": [
"node_modules/**"
]
}