install.js
function fixTsConfig() {
    var tsConfig={}, tsFile = '../../tsconfig.json';
    if (fs.existsSync(tsFile)) {
        tsConfig = require(tsFile);
    }
    if (!tsConfig.compilerOptions || !tsConfig.compilerOptions.typeRoots) {
        tsConfig.compilerOptions = {
          target: "es5",
          module: "commonjs",
          declaration: false,
          removeComments: true,
          noLib: false,
          emitDecoratorMetadata: true,
          experimentalDecorators: true,
          lib: [
            "dom"
          ],
          sourceMap: true,
          pretty: true,
          allowUnreachableCode: false,
          allowUnusedLabels: false,
          noImplicitAny: false,
          noImplicitReturns: true,
          noImplicitUseStrict: false,
          noFallthroughCasesInSwitch: true,
          typeRoots: [
              "node_modules/@types",
              "node_modules"
          ],
          types: [
              "jasmine"
          ]
        };
    }

    // See: https://github.com/NativeScript/nativescript-angular/issues/205
    // tsConfig.compilerOptions.noEmitHelpers = false;
    // tsConfig.compilerOptions.noEmitOnError = false;

    if (!tsConfig.exclude) {
        tsConfig.exclude = [];
    }
    if (tsConfig.exclude.indexOf('node_modules') === -1) {
        tsConfig.exclude.push('node_modules');
    }
    if (tsConfig.exclude.indexOf('platforms') === -1) {
        tsConfig.exclude.push('platforms');
    }

    fs.writeFileSync(tsFile, JSON.stringify(tsConfig, null, 4), 'utf8');
}
function fixTsConfig() {
    var tsConfig={}, tsFile = '../../tsconfig.json';
    if (fs.existsSync(tsFile)) {
        tsConfig = require(tsFile);
    }
    if (!tsConfig.compilerOptions || !tsConfig.compilerOptions.typeRoots) {
        tsConfig.compilerOptions = {
          target: "es5",
          module: "commonjs",
          declaration: false,
          removeComments: true,
          noLib: false,
          emitDecoratorMetadata: true,
          experimentalDecorators: true,
          lib: [
            "dom"
          ],
          sourceMap: true,
          pretty: true,
          allowUnreachableCode: false,
          allowUnusedLabels: false,
          noImplicitAny: false,
          noImplicitReturns: true,
          noImplicitUseStrict: false,
          noFallthroughCasesInSwitch: true,
          typeRoots: [
              "node_modules/@types",
              "node_modules"
          ],
          types: [
              "jasmine"
          ]
        };
    }

    // See: https://github.com/NativeScript/nativescript-angular/issues/205
    // tsConfig.compilerOptions.noEmitHelpers = false;
    // tsConfig.compilerOptions.noEmitOnError = false;

    if (!tsConfig.exclude) {
        tsConfig.exclude = [];
    }
    if (tsConfig.exclude.indexOf('node_modules') === -1) {
        tsConfig.exclude.push('node_modules');
    }
    if (tsConfig.exclude.indexOf('platforms') === -1) {
        tsConfig.exclude.push('platforms');
    }

    fs.writeFileSync(tsFile, JSON.stringify(tsConfig, null, 4), 'utf8');
}
This fixes the TS Config file in the nativescript folder