From 4942cb601f62296690594167bc18690a3a6c18ec Mon Sep 17 00:00:00 2001 From: "@anulman" Date: Mon, 6 Feb 2017 15:28:21 -0500 Subject: [PATCH] fix(importer): check updateScripts value at script install vs deps removal --- src/api/import.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/import.js b/src/api/import.js index de68641d7b..db9405f49b 100644 --- a/src/api/import.js +++ b/src/api/import.js @@ -101,7 +101,7 @@ export default async (providedOptions = {}) => { } else if (buildToolPackages[key]) { const explanation = buildToolPackages[key]; // eslint-disable-next-line max-len - const shouldRemoveDependency = await confirmIfInteractive(interactive, `Do you want us to remove the "${key}" dependency in package.json? Electron Forge ${explanation}.`, updateScripts); + const shouldRemoveDependency = await confirmIfInteractive(interactive, `Do you want us to remove the "${key}" dependency in package.json? Electron Forge ${explanation}.`); if (shouldRemoveDependency) { delete packageJSON.dependencies[key]; @@ -116,7 +116,7 @@ export default async (providedOptions = {}) => { const updatePackageScript = async (scriptName, newValue) => { if (packageJSON.scripts[scriptName] !== newValue) { // eslint-disable-next-line max-len - const shouldUpdate = await confirmIfInteractive(interactive, `Do you want us to update the "${scriptName}" script to instead call the electron-forge task "${newValue}"`); + const shouldUpdate = await confirmIfInteractive(interactive, `Do you want us to update the "${scriptName}" script to instead call the electron-forge task "${newValue}"`, updateScripts); if (shouldUpdate) { packageJSON.scripts[scriptName] = newValue; }