NativeScript / nativescript-dev-typescript

TypeScript support for NativeScript projects
Apache License 2.0
21 stars 10 forks source link

The post install script is removing existing tsconfig.json #20

Closed NickIliev closed 7 years ago

NickIliev commented 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:

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",  
    ]
}
NickIliev commented 7 years ago

Fixed with PRhttps://github.com/NativeScript/nativescript-dev-typescript/pull/15