diff --git a/lib/cli/tsconfig.json b/lib/cli/tsconfig.json index c97fec6702..e98a973e07 100644 --- a/lib/cli/tsconfig.json +++ b/lib/cli/tsconfig.json @@ -1,30 +1,24 @@ { "compilerOptions": { - "target": "es2018", + "declaration": true, "module": "commonjs", "moduleResolution": "node", - "sourceMap": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "skipLibCheck": false, - "noLib": false, - "allowUnreachableCode": false, - "allowUnusedLabels": false, - "strict": false, + "noEmitOnError": true, + "noFallthroughCasesInSwitch": true, + "noImplicitAny": false, + "noImplicitThis": false, "noUnusedParameters": true, "noUnusedLocals": true, - "noImplicitAny": false, - "noImplicitReturns": false, - "noImplicitUseStrict": false, - "noFallthroughCasesInSwitch": true, - "removeComments": true, - "declaration": true, "outDir": "./dist", + "rootDir": ".", + "skipLibCheck": true, + "strictNullChecks": false, + "target": "es2018", "lib": [ - "es2016", + "es2018", "dom" ], - "baseUrl": "./", + "baseUrl": ".", "typeRoots": [ "./node_modules/@types" ], @@ -37,7 +31,6 @@ "exclude": [ "dist/**/*", "./build.ts", - "node_modules/**/*", - "**/node_modules/**/*" + "node_modules/**/*" ] } diff --git a/scripts/build/build-cli.sh b/scripts/build/build-cli.sh index 104730dc1c..edbe9553fe 100755 --- a/scripts/build/build-cli.sh +++ b/scripts/build/build-cli.sh @@ -11,6 +11,7 @@ echo "====== Build ======" npm run dist cd $DIR/../../ +rm -rf ./lib/dist/cli/ && \ cp -R ./lib/cli/dist lib/dist/cli/ echo "====== Move to node_modules ======"