tsc --project
Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.
e.g., Ts.ED 프로젝트 빌드
// package.json
{
// ...
"scripts": {
"build": "yarn run tsc --project tsconfig.compile.json"
// ...
},
// ...
}
// tsconfig.compile.json
{
"extends": "./tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": "./dist",
"moduleResolution": "node",
"declaration": true,
"noResolve": false,
"preserveConstEnums": true,
"sourceMap": true,
"noEmit": false,
"emitDeclarationOnly": false,
"inlineSources": true
}
}