Skip to content

Commit

Permalink
hotfix package merging
Browse files Browse the repository at this point in the history
  • Loading branch information
pavjacko committed Apr 11, 2024
1 parent daa4c7c commit b0e6081
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b0e6081

Please sign in to comment.