TypeScript λ²μ : 2.2.3
μνΈ
$ tsc
// tsconfig.json
{
"compilerOptions": {
"declaration": true,
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"outDir": "dist",
"typeRoots": [
"./node_modules/@types/"
],
"exclude": [
"dist"
]
}
}
μμλλ λμ :
μ£Όμ΄μ§ κ²½λ‘ λͺ©λ‘μ μ μΈνμμμ€.
μ€μ νλ :
μ€λ₯ λ°μ : error TS5023: Unknown compiler option 'exclude'
λ§μ§λ§ λ©λͺ¨
μ΄λ include
λλ files
μ΅μ
μ μ¬μ©ν λλ λ°μν©λλ€. μ΅κ·Ό typescript μ
λ°μ΄νΈμμ μ΄λ¬ν μ΅μ
μ΄ κ°κ° μκ° λμμ΅λκΉ? μ΄κ²μ μ μνλ λ¬Έμλ₯Ό μ°Ύμ μ μμ΅λλ€ ...
μ€μ λ‘ files
, include
λ±μ μ΅μμ νλμ
λλ€.
{
"compilerOptions": {},
"exclude": []
}
http://www.typescriptlang.org/docs/handbook/tsconfig-json.html μμ λ λ§μ λ¬Έμλ₯Ό λ³Ό μ μμ΅λλ€
@ikatyang κ°μ¬ν©λλ€-λ΄κ° κ·Έκ²μ λμΉ κ²μ λ―Ώμ μ μλ€ π
{
"compilerOptions": {
"μ μΈ": μ°Έ,
"λμ": "es5",
"λͺ¨λ": "commonjs",
"moduleResolution": "λ
Έλ",
"emitDecoratorMetadata": μ°Έ,
"experimentalDecorators": μ°Έ,
"removeComments": κ±°μ§,
"noImplicitAny": κ±°μ§,
"outDir": "거리",
"typeRoots": [
"./node_modules/@types/"
]
},
"μ μΈ": [
"거리"
]
}
κ°μ₯ μ μ©ν λκΈ
μ€μ λ‘
files
,include
λ±μ μ΅μμ νλμ λλ€.