Skip to content
Permalink
Browse files

fix(importer): install electron-prebuilt-compile as devDep

  • Loading branch information
anulman authored and MarshallOfSound committed Feb 6, 2017
1 parent 4942cb6 commit e80be32a1ea3876317f2490a01e729c41e5d7d42
Showing with 11 additions and 3 deletions.
  1. +11 −3 src/api/import.js
@@ -5,7 +5,7 @@ import path from 'path';
import { spawn as yarnOrNPMSpawn, hasYarn } from 'yarn-or-npm';

import initGit from '../init/init-git';
import { deps, devDeps } from '../init/init-npm';
import { deps, devDeps, exactDevDeps } from '../init/init-npm';

import asyncOra from '../util/ora-handler';
import { info, warn } from '../util/messages';
@@ -168,10 +168,18 @@ export default async (providedOptions = {}) => {

d('installing dependencies');
await installDepList(dir, deps);

d('installing devDependencies');
await installDepList(dir, devDeps, true);
d('installing electron-prebuilt-compile');
await installDepList(dir, [`electron-prebuilt-compile@${electronVersion || 'latest'}`], false, true);

d('installing exactDevDependencies');
await installDepList(dir, exactDevDeps.map((dep) => {
if (dep === 'electron-prebuild-compile') {
return `${dep}@${electronVersion || 'latest'}`;
}

return dep;
}), true, true);
});

packageJSON = await readPackageJSON(dir);

0 comments on commit e80be32

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