From b1693f09614814db9263a12f012a73e0195c171a Mon Sep 17 00:00:00 2001 From: Mark Lee Date: Mon, 14 Sep 2020 22:20:26 -0700 Subject: [PATCH] fix(core): init should install the latest caret version of Forge (#1963) --- packages/api/core/src/api/init-scripts/init-npm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/core/src/api/init-scripts/init-npm.ts b/packages/api/core/src/api/init-scripts/init-npm.ts index eb0c62a22a..dffb1fbc65 100644 --- a/packages/api/core/src/api/init-scripts/init-npm.ts +++ b/packages/api/core/src/api/init-scripts/init-npm.ts @@ -9,7 +9,7 @@ const d = debug('electron-forge:init:npm'); const corePackage = fs.readJsonSync(path.resolve(__dirname, '../../../package.json')); export function siblingDep(name: string) { - return `@electron-forge/${name}@${corePackage.version}`; + return `@electron-forge/${name}@^${corePackage.version}`; } export const deps = ['electron-squirrel-startup'];