diff --git a/lib/versionmanager.js b/lib/versionmanager.js index 5edde5c9..fdeaec9d 100644 --- a/lib/versionmanager.js +++ b/lib/versionmanager.js @@ -259,7 +259,12 @@ async function upgradePackageData(pkgData, oldDependencies, newDependencies, new type: 'confirm', name: 'value', message: `Do you want to upgrade: ${dependency} ${oldDependencies[dependency]} → ${to}?`, - initial: true + initial: true, + onState: state => { + if (state.aborted) { + process.nextTick(() => process.exit(1)) + } + } }) if (!response.value) { // continue loop to next dependency and skip updating newPkgData