Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eca938d

Browse files
danbockappsvchimev
authored andcommitted
chore(apps): add tslib dep and update tsconfig.json file (NativeScript#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 c9d96de. * chore: updates tsconfig.json file
1 parent 371fc9b commit eca938d

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

apps/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
}
1414
},
1515
"dependencies": {
16-
"tns-core-modules": "*"
16+
"tns-core-modules": "*",
17+
"tslib": "^1.9.3"
1718
},
1819
"devDependencies": {
1920
"babel-traverse": "6.10.4",

apps/tsconfig.json

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
{
2-
"extends": "../tsconfig.shared",
3-
"exclude": [
4-
"node_modules",
5-
"platforms"
6-
],
72
"compilerOptions": {
3+
"module": "commonjs",
4+
"target": "es5",
5+
"experimentalDecorators": true,
6+
"emitDecoratorMetadata": true,
7+
"noEmitHelpers": true,
8+
"noEmitOnError": true,
9+
"lib": [
10+
"es6",
11+
"dom"
12+
],
813
"baseUrl": ".",
914
"paths": {
15+
"~/*": [
16+
"app/*"
17+
],
1018
"*": [
1119
"./node_modules/tns-core-modules/*",
1220
"./node_modules/*"
13-
],
14-
"~/*": [
15-
"app/*"
1621
]
17-
},
18-
"lib": [
19-
"es6",
20-
"dom"
21-
]
22-
}
22+
}
23+
},
24+
"exclude": [
25+
"node_modules",
26+
"platforms"
27+
]
2328
}

0 commit comments

Comments
 (0)