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'];