Skip to content

Commit

Permalink
fix(template-base): use minimum instead of exact version when replaci…
Browse files Browse the repository at this point in the history
…ng `ELECTRON_FORGE/VERSION` in templates (#3030)
  • Loading branch information
erikian committed Oct 31, 2022
1 parent b5d0587 commit 7aaa702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/template/base/src/BaseTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class BaseTemplate implements ForgeTemplate {
if (packageDevDeps) {
return Object.entries(packageDevDeps).map(([packageName, version]) => {
if (version === 'ELECTRON_FORGE/VERSION') {
version = currentForgeVersion;
version = `^${currentForgeVersion}`;
}
return `${packageName}@${version}`;
});
Expand Down

0 comments on commit 7aaa702

Please sign in to comment.