File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ import semver = require("semver");
9
9
export class InitService implements IInitService {
10
10
private static MIN_SUPPORTED_FRAMEWORK_VERSIONS : IStringDictionary = {
11
11
"tns-ios" : "1.1.0" ,
12
- "tns-android" : "1.1.0"
12
+ "tns-android" : "1.1.0" ,
13
+ "tns-core-modules" : "1.2.0"
13
14
} ;
14
15
15
16
private _projectFilePath : string ;
@@ -56,6 +57,12 @@ export class InitService implements IInitService {
56
57
} ) ;
57
58
}
58
59
60
+ let dependencies = projectData . dependencies ;
61
+ if ( ! dependencies ) {
62
+ projectData . dependencies = Object . create ( null ) ;
63
+ }
64
+ projectData . dependencies [ constants . TNS_CORE_MODULES_NAME ] = this . getVersionData ( constants . TNS_CORE_MODULES_NAME ) . wait ( ) [ "version" ] ;
65
+
59
66
this . $fs . writeJson ( this . projectFilePath , projectData ) . wait ( ) ;
60
67
} catch ( err ) {
61
68
this . $fs . writeJson ( this . projectFilePath , projectDataBackup ) . wait ( ) ;
You can’t perform that action at this time.
0 commit comments