File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 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");
99export class InitService implements IInitService {
1010 private static MIN_SUPPORTED_FRAMEWORK_VERSIONS : IStringDictionary = {
1111 "tns-ios" : "1.1.0" ,
12- "tns-android" : "1.1.0"
12+ "tns-android" : "1.1.0" ,
13+ "tns-core-modules" : "1.2.0"
1314 } ;
1415
1516 private _projectFilePath : string ;
@@ -56,6 +57,12 @@ export class InitService implements IInitService {
5657 } ) ;
5758 }
5859
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+
5966 this . $fs . writeJson ( this . projectFilePath , projectData ) . wait ( ) ;
6067 } catch ( err ) {
6168 this . $fs . writeJson ( this . projectFilePath , projectDataBackup ) . wait ( ) ;
You can’t perform that action at this time.
0 commit comments