Skip to content
Permalink
Browse files

fix(core): append current version to each sibling dependency of `@ele…

…ctron-forge` in the boilerplate (#537)

* Fixing #535

* Append current version to devDependencies (#534)

* Helper function for sibling dependency installation string

#537 (comment)

* Reading version from core's `package.json` manually
  • Loading branch information
vintprox authored and MarshallOfSound committed Jul 20, 2018
1 parent b9ea8bd commit 051026da1359167e12fde886c212ea639af14f99
Showing with 10 additions and 5 deletions.
  1. +10 −5 packages/api/core/src/api/init-scripts/init-npm.ts
@@ -9,14 +9,19 @@ import installDepList from '../../util/install-dependencies';
import { readRawPackageJson } from '../../util/read-package-json';

const d = debug('electron-forge:init:npm');
const corePackage = fs.readJsonSync(path.resolve(__dirname, '../../../package.json'));

function siblingDep(name: string) {
return `@electron-forge/${name}@${corePackage.version}`;
}

export const deps = ['electron-squirrel-startup'];
export const devDeps = [
'@electron-forge/cli',
'@electron-forge/maker-squirrel',
'@electron-forge/maker-zip',
'@electron-forge/maker-deb',
'@electron-forge/maker-rpm',
siblingDep('cli'),
siblingDep('maker-squirrel'),
siblingDep('maker-zip'),
siblingDep('maker-deb'),
siblingDep('maker-rpm'),
];
export const exactDevDeps = ['electron'];

0 comments on commit 051026d

Please sign in to comment.
You can’t perform that action at this time.