Skip to content

Commit

Permalink
refactor(packager): move the electron-packager dependency to forge in…
Browse files Browse the repository at this point in the history
…stead of the users module
  • Loading branch information
MarshallOfSound committed Dec 3, 2016
1 parent 026141c commit 2e695c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"bluebird": "^3.4.6",
"colors": "^1.1.2",
"commander": "^2.9.0",
"electron-packager": "^8.3.0",
"fs-promise": "^0.5.0",
"inquirer": "^1.2.1",
"log-symbols": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/electron-forge-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import asar from 'asar';
import fs from 'fs-promise';
import path from 'path';
import pify from 'pify';
import packager from 'electron-packager';
import program from 'commander';
import ora from 'ora';

Expand Down Expand Up @@ -44,7 +45,6 @@ const main = async () => {
const arch = program.arch || process.arch;
const platform = program.platform || process.platform;

const packager = require(path.resolve(dir, 'node_modules/electron-packager')); // eslint-disable-line
const packageOpts = {
asar: true,
overwrite: true,
Expand Down
2 changes: 1 addition & 1 deletion src/init/init-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import username from 'username';
import installDepList from '../util/install-dependencies';

const deps = [];
const devDeps = ['babel-preset-stage-0', 'electron-packager'];
const devDeps = ['babel-preset-stage-0'];
const exactDevDeps = ['electron-prebuilt-compile'];
const standardDeps = ['standard'];
const airbnDeps = ['eslint', 'eslint-config-airbnb', 'eslint-plugin-import',
Expand Down

0 comments on commit 2e695c2

Please sign in to comment.