Skip to content
Permalink
Browse files

refactor(maker): add packageJSON to the function arguments

  • Loading branch information
malept committed Dec 4, 2016
1 parent 5c5ce67 commit e8e1054ae5696f96e4313e2a50460ab025633961
@@ -68,7 +68,7 @@ const main = async () => {
}
}
try {
await (maker.default || maker)(packageDir, packageJSON.productName || packageJSON.name, forgeConfig);
await (maker.default || maker)(packageDir, packageJSON.productName || packageJSON.name, forgeConfig, packageJSON);
} catch (err) {
makeSpinner.fail();
if (err) throw err;
@@ -4,7 +4,7 @@ import pify from 'pify';

import { ensureFile } from '../../util/ensure-output';

export default async (dir, appName, forgeConfig) => {
export default async (dir, appName, forgeConfig, packageJSON) => { // eslint-disable-line
const outPath = path.resolve(dir, '../make', `${path.basename(dir)}.dmg`);
await ensureFile(outPath);
const dmgConfig = Object.assign({
@@ -18,7 +18,7 @@ const zipPromise = (from, to) =>
});
});

export default async (dir, appName, forgeConfig) => { // eslint-disable-line
export default async (dir, appName, forgeConfig, packageJSON) => { // eslint-disable-line
const zipPath = path.resolve(dir, '../make', `${path.basename(dir)}.zip`);
await ensureFile(zipPath);
switch (process.platform) {
@@ -4,7 +4,7 @@ import pify from 'pify';

import { ensureFile } from '../../util/ensure-output';

export default async (dir, appName, forgeConfig) => {
export default async (dir, appName, forgeConfig, packageJSON) => { // eslint-disable-line
const outPath = path.resolve(dir, '../make/debian');

await ensureFile(outPath);
@@ -3,7 +3,7 @@ import path from 'path';

import { ensureDirectory } from '../../util/ensure-output';

export default async (dir, appName, forgeConfig) => {
export default async (dir, appName, forgeConfig, packageJSON) => { // eslint-disable-line
const outPath = path.resolve(dir, '../make/squirrel.windows');
await ensureDirectory(outPath);

0 comments on commit e8e1054

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