Skip to content

Commit a39c61d

Browse files
committed
fix(module-error): Use commonjs module in tsconfig
see hypery2k#15
1 parent 6ebf0e8 commit a39c61d

2 files changed

Lines changed: 33 additions & 33 deletions

File tree

sampleApp/package.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
{
2-
"description": "NativeScript Application",
3-
"license": "SEE LICENSE IN <your-license-filename>",
4-
"readme": "NativeScript Application",
5-
"repository": "<fill-your-repository-here>",
6-
"nativescript": {
7-
"id": "org.nativescript.sampleApp",
8-
"tns-ios": {
9-
"version": "2.5.0"
10-
}
11-
},
12-
"dependencies": {
13-
"@angular/common": "2.4.3",
14-
"@angular/compiler": "2.4.3",
15-
"@angular/core": "2.4.3",
16-
"@angular/forms": "2.4.3",
17-
"@angular/http": "2.4.3",
18-
"@angular/platform-browser": "2.4.3",
19-
"@angular/platform-browser-dynamic": "2.4.3",
20-
"@angular/router": "3.4.3",
21-
"nativescript-angular": "1.4.0",
22-
"nativescript-theme-core": "~1.0.2",
23-
"nativescript-urlhandler": "..",
24-
"reflect-metadata": "~0.1.8",
25-
"rxjs": "~5.0.1",
26-
"tns-core-modules": "2.5.1"
27-
},
28-
"devDependencies": {
29-
"nativescript-dev-android-snapshot": "^0.*.*",
30-
"nativescript-dev-typescript": "~0.3.5",
31-
"typescript": "~2.1.0",
32-
"zone.js": "~0.7.2"
2+
"description": "NativeScript Application",
3+
"license": "SEE LICENSE IN <your-license-filename>",
4+
"readme": "NativeScript Application",
5+
"repository": "<fill-your-repository-here>",
6+
"nativescript": {
7+
"id": "org.nativescript.sampleApp",
8+
"tns-ios": {
9+
"version": "2.5.0"
3310
}
11+
},
12+
"dependencies": {
13+
"@angular/common": "2.4.3",
14+
"@angular/compiler": "2.4.3",
15+
"@angular/core": "2.4.3",
16+
"@angular/forms": "2.4.3",
17+
"@angular/http": "2.4.3",
18+
"@angular/platform-browser": "2.4.3",
19+
"@angular/platform-browser-dynamic": "2.4.3",
20+
"@angular/router": "3.4.3",
21+
"nativescript-angular": "1.4.0",
22+
"nativescript-theme-core": "~1.0.2",
23+
"nativescript-urlhandler": "file:..",
24+
"reflect-metadata": "~0.1.8",
25+
"rxjs": "~5.0.1",
26+
"tns-core-modules": "2.5.1"
27+
},
28+
"devDependencies": {
29+
"nativescript-dev-android-snapshot": "^0.*.*",
30+
"nativescript-dev-typescript": "~0.3.5",
31+
"typescript": "~2.1.0",
32+
"zone.js": "~0.7.2"
33+
}
3434
}

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"noImplicitAny": false,
4-
"module": "es2015",
4+
"module": "commonjs",
55
"target": "es5",
66
"emitDecoratorMetadata": true,
77
"experimentalDecorators": true,
@@ -20,4 +20,4 @@
2020
"node_modules",
2121
"bundles"
2222
]
23-
}
23+
}

0 commit comments

Comments
 (0)