Closed NickIliev closed 7 years ago
When you have project with existing tsconfig.json it is not respected and is removed by postinstall.js at this line.
How to reproduce:
create project with modified tsconfig.json
{ "compilerOptions": { "module": "commons", "target": "es5", "sourceMap": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, "noEmitHelpers": true, "noEmitOnError": true, "lib": [ "es2016" ] }, "exclude": [ "node_modules", "platforms", "files" <!-- this is added --> ] }
remove previously generated node_modules and platforms folders
rm -rf node_modules rm -rf platforms
rebuild your app
tons run android
The result is that your original tsconfig.json is removed and replaced with a default one
{ "compilerOptions": { "module": "commons", "target": "es5", "sourceMap": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, "noEmitHelpers": true, "noEmitOnError": true, "lib": [ "es2016" ] }, "exclude": [ "node_modules", "platforms", ] }
Fixed with PRhttps://github.com/NativeScript/nativescript-dev-typescript/pull/15
When you have project with existing tsconfig.json it is not respected and is removed by postinstall.js at this line.
How to reproduce:
create project with modified tsconfig.json
remove previously generated node_modules and platforms folders
rebuild your app
The result is that your original tsconfig.json is removed and replaced with a default one