Skip to content

Commit 7cb56a8

Browse files
committed
Fix apps and tests TypeScript projects
1 parent 525d0c4 commit 7cb56a8

File tree

5 files changed

+27
-14
lines changed

5 files changed

+27
-14
lines changed

apps/references.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
/// <reference path="../tns-core-modules/tns-core-modules.d.ts" /> Needed for autocompletion and compilation.
1+
/// <reference path="../tns-core-modules/tns-core-modules.d.ts" /> Needed for autocompletion and compilation.
2+
/// <reference path="../tns-core-modules/android17.d.ts" /> Needed for autocompletion and compilation.
3+
/// <reference path="../tns-core-modules/ios.d.ts" /> Needed for autocompletion and compilation.
4+
/// <reference path="../tns-core-modules/org.nativescript.widgets.d.ts" /> Needed for autocompletion and compilation.
5+
/// <reference path="../tns-core-modules/declarations.android.d.ts" /> Needed for autocompletion and compilation.

apps/tsconfig.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"compilerOptions": {
3-
"module": "commonjs",
3+
"noEmitOnError": true,
4+
"noEmitHelpers": true,
45
"target": "es5",
5-
"sourceMap": true,
6+
"module": "commonjs",
7+
"declaration": false,
8+
"noImplicitAny": true,
9+
"noImplicitUseStrict": true,
610
"experimentalDecorators": true,
7-
"emitDecoratorMetadata": true,
8-
"noEmitHelpers": true,
9-
"noEmitOnError": true
11+
"diagnostics": true
1012
},
1113
"exclude": [
1214
"node_modules",

tests/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"babel-types": "6.9.0",
2121
"babylon": "6.8.0",
2222
"filewalker": "0.1.2",
23-
"lazy": "1.0.11"
23+
"lazy": "1.0.11",
24+
"typescript": "^1.8.10"
2425
}
25-
}
26+
}

tests/references.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
/// <reference path="../tns-core-modules/tns-core-modules.d.ts" /> Needed for autocompletion and compilation.
1+
/// <reference path="../tns-core-modules/tns-core-modules.d.ts" /> Needed for autocompletion and compilation.
2+
/// <reference path="../tns-core-modules/android17.d.ts" /> Needed for autocompletion and compilation.
3+
/// <reference path="../tns-core-modules/ios.d.ts" /> Needed for autocompletion and compilation.
4+
/// <reference path="../tns-core-modules/org.nativescript.widgets.d.ts" /> Needed for autocompletion and compilation.
5+
/// <reference path="../tns-core-modules/declarations.android.d.ts" /> Needed for autocompletion and compilation.

tests/tsconfig.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"compilerOptions": {
3-
"module": "commonjs",
3+
"noEmitOnError": true,
4+
"noEmitHelpers": true,
45
"target": "es5",
5-
"sourceMap": true,
6+
"module": "commonjs",
7+
"declaration": false,
8+
"noImplicitAny": false,
9+
"noImplicitUseStrict": true,
610
"experimentalDecorators": true,
7-
"emitDecoratorMetadata": true,
8-
"noEmitHelpers": true,
9-
"noEmitOnError": true
11+
"diagnostics": true
1012
},
1113
"exclude": [
1214
"node_modules",

0 commit comments

Comments
 (0)