@@ -83,7 +83,7 @@ export class ProjectService implements IProjectService {
83
83
tnsModulesVersion = this . $options . tnsModulesVersion ;
84
84
}
85
85
else {
86
- var coreModulesName = this . $tnsModulesService . NPM_TNS_CORE_MODULES_NAME ;
86
+ let coreModulesName = this . $tnsModulesService . npmTnsCoreModulesName ;
87
87
tnsModulesVersion = this . $fs . readJson ( path . join ( appPath , constants . PACKAGE_JSON_FILE_NAME ) ) . wait ( ) [ coreModulesName ] [ "version" ] ;
88
88
}
89
89
@@ -116,11 +116,11 @@ export class ProjectService implements IProjectService {
116
116
}
117
117
118
118
// Copy tns-core-modules package to node_modules destination directory
119
- var nodeModulesDestination = path . join ( appDestinationPath , constants . NODE_MODULES_FOLDER_NAME ) ;
119
+ let nodeModulesDestination = path . join ( appDestinationPath , constants . NODE_MODULES_FOLDER_NAME ) ;
120
120
this . $fs . ensureDirectoryExists ( nodeModulesDestination ) . wait ( ) ;
121
121
shell . cp ( '-Rf' , path . join ( tnsModulesPath , '*' ) , nodeModulesDestination ) ;
122
122
123
- var tnsModulesVersion = this . $fs . readJson ( path . join ( nodeModulesDestination , constants . PACKAGE_JSON_FILE_NAME ) ) . wait ( ) . version ;
123
+ let tnsModulesVersion = this . $fs . readJson ( path . join ( nodeModulesDestination , constants . PACKAGE_JSON_FILE_NAME ) ) . wait ( ) . version ;
124
124
125
125
this . createBasicProjectStructure ( projectDir , projectId , tnsModulesVersion ) . wait ( ) ;
126
126
} ) . future < void > ( ) ( ) ;
@@ -132,7 +132,7 @@ export class ProjectService implements IProjectService {
132
132
133
133
this . $projectDataService . initialize ( projectDir ) ;
134
134
this . $projectDataService . setValue ( "id" , projectId ) . wait ( ) ;
135
- this . $projectDataService . setValue ( this . $tnsModulesService . NPM_TNS_CORE_MODULES_NAME , { version : tnsModulesVersion } ) . wait ( ) ;
135
+ this . $projectDataService . setValue ( this . $tnsModulesService . npmTnsCoreModulesName , { version : tnsModulesVersion } ) . wait ( ) ;
136
136
} ) . future < void > ( ) ( ) ;
137
137
}
138
138
0 commit comments