Typescript: μ•Œ μˆ˜μ—†λŠ” 컴파일러 μ˜΅μ…˜ 'μ œμ™Έ'

에 λ§Œλ“  2017λ…„ 05μ›” 26일  Β·  4μ½”λ©˜νŠΈ  Β·  좜처: microsoft/TypeScript



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 μ—…λ°μ΄νŠΈμ—μ„œ μ΄λŸ¬ν•œ μ˜΅μ…˜μ΄ 감가 상각 λ˜μ—ˆμŠ΅λ‹ˆκΉŒ? 이것을 μ œμ•ˆν•˜λŠ” λ¬Έμ„œλ₯Ό 찾을 수 μ—†μŠ΅λ‹ˆλ‹€ ...

Question

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

μ‹€μ œλ‘œ files , include 등은 μ΅œμƒμœ„ ν•„λ“œμž…λ‹ˆλ‹€.

{
  "compilerOptions": {},
  "exclude": []
}

λͺ¨λ“  4 λŒ“κΈ€

μ‹€μ œλ‘œ 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/"
]
},
"μ œμ™Έ": [
"거리"
]
}

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰