From b0e60813b5f27c7ce44c3c9c873c7f9d52dfd48d Mon Sep 17 00:00:00 2001 From: Pavel Jacko Date: Thu, 11 Apr 2024 02:54:51 +0200 Subject: [PATCH] hotfix package merging --- .../src/tasks/bootstrap/questions/installTemplate.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/engine-core/src/tasks/bootstrap/questions/installTemplate.ts b/packages/engine-core/src/tasks/bootstrap/questions/installTemplate.ts index 5cba3c9c4..d38c13468 100644 --- a/packages/engine-core/src/tasks/bootstrap/questions/installTemplate.ts +++ b/packages/engine-core/src/tasks/bootstrap/questions/installTemplate.ts @@ -197,6 +197,14 @@ const Question = async (data: NewProjectData) => { cwd: c.paths.project.dir, } ); + if (inputs.template.packageName && inputs.template.version) { + // We update our in-memory package.json with the new template + mergeIntoProjectPackage(data, { + devDependencies: { + [inputs.template.packageName]: inputs.template.version, + }, + }); + } mergeIntoProjectConfig(data, { templateConfig: { name: inputs.template.packageName,