File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -75,16 +75,16 @@ export class ProjectService implements IProjectService {
75
75
this . removeMergedDependencies ( projectDir , templatePackageJsonContent ) ;
76
76
}
77
77
78
+ if ( templateVersion === constants . TemplateVersions . v1 ) {
79
+ await this . $npm . uninstall ( templatePackageJsonContent . name , { save : true } , projectDir ) ;
80
+ }
81
+
78
82
// Install devDependencies and execute all scripts:
79
83
await this . $npm . install ( projectDir , projectDir , {
80
84
disableNpmInstall : false ,
81
85
frameworkPath : null ,
82
86
ignoreScripts
83
87
} ) ;
84
-
85
- if ( templateVersion === constants . TemplateVersions . v1 ) {
86
- await this . $npm . uninstall ( templatePackageJsonContent . name , { save : true } , projectDir ) ;
87
- }
88
88
} catch ( err ) {
89
89
this . $fs . deleteDirectory ( projectDir ) ;
90
90
throw err ;
You can’t perform that action at this time.
0 commit comments