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 {
7575 this . removeMergedDependencies ( projectDir , templatePackageJsonContent ) ;
7676 }
7777
78+ if ( templateVersion === constants . TemplateVersions . v1 ) {
79+ await this . $npm . uninstall ( templatePackageJsonContent . name , { save : true } , projectDir ) ;
80+ }
81+
7882 // Install devDependencies and execute all scripts:
7983 await this . $npm . install ( projectDir , projectDir , {
8084 disableNpmInstall : false ,
8185 frameworkPath : null ,
8286 ignoreScripts
8387 } ) ;
84-
85- if ( templateVersion === constants . TemplateVersions . v1 ) {
86- await this . $npm . uninstall ( templatePackageJsonContent . name , { save : true } , projectDir ) ;
87- }
8888 } catch ( err ) {
8989 this . $fs . deleteDirectory ( projectDir ) ;
9090 throw err ;
You can’t perform that action at this time.
0 commit comments