We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fdd81c2 + 1a9d32d commit c08b575Copy full SHA for c08b575
1 file changed
lib/services/project-service.ts
@@ -79,7 +79,8 @@ export class ProjectService implements IProjectService {
79
ignoreScripts
80
});
81
82
- const templatePackageJson = this.$fs.readJson(path.join(templatePath, constants.PACKAGE_JSON_FILE_NAME));
+ const templatePackageJsonPath = templateVersion === constants.TemplateVersions.v2 ? path.join(projectDir, constants.PACKAGE_JSON_FILE_NAME) : path.join(templatePath, constants.PACKAGE_JSON_FILE_NAME);
83
+ const templatePackageJson = this.$fs.readJson(templatePackageJsonPath);
84
85
await this.$npm.uninstall(templatePackageJson.name, { save: true }, projectDir);
86
if (templateVersion === constants.TemplateVersions.v2) {
0 commit comments