From eca938d9defb3dd32af6e96829a19a6a4ba8df0b Mon Sep 17 00:00:00 2001 From: Dan Bock Date: Thu, 1 Nov 2018 09:44:10 -0400 Subject: [PATCH] chore(apps): add tslib dep and update tsconfig.json file (#6464) * fix: don't crash on startup due to tslib not being found * fix: prevent error 'sourceMap' cannot be specified with option 'inlineSourceMap' * Revert "fix: prevent error 'sourceMap' cannot be specified with option 'inlineSourceMap'" This reverts commit c9d96de10ad9256aa7c42b1db55b5117443e2027. * chore: updates tsconfig.json file --- apps/package.json | 3 ++- apps/tsconfig.json | 39 ++++++++++++++++++++++----------------- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/apps/package.json b/apps/package.json index 70c68f984..5d2c10461 100644 --- a/apps/package.json +++ b/apps/package.json @@ -13,7 +13,8 @@ } }, "dependencies": { - "tns-core-modules": "*" + "tns-core-modules": "*", + "tslib": "^1.9.3" }, "devDependencies": { "babel-traverse": "6.10.4", diff --git a/apps/tsconfig.json b/apps/tsconfig.json index 4f5d9b3d1..ac7907a6f 100644 --- a/apps/tsconfig.json +++ b/apps/tsconfig.json @@ -1,23 +1,28 @@ { - "extends": "../tsconfig.shared", - "exclude": [ - "node_modules", - "platforms" - ], "compilerOptions": { - "baseUrl": ".", - "paths": { - "*": [ - "./node_modules/tns-core-modules/*", - "./node_modules/*" - ], - "~/*": [ - "app/*" - ] - }, + "module": "commonjs", + "target": "es5", + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "noEmitHelpers": true, + "noEmitOnError": true, "lib": [ "es6", "dom" - ] - } + ], + "baseUrl": ".", + "paths": { + "~/*": [ + "app/*" + ], + "*": [ + "./node_modules/tns-core-modules/*", + "./node_modules/*" + ] + } + }, + "exclude": [ + "node_modules", + "platforms" + ] } \ No newline at end of file