libnpmexec 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -165,6 +165,8 @@ const exec = async (opts) => {
|
|
|
165
165
|
const prompt = `Need to install the following packages:\n${
|
|
166
166
|
addList
|
|
167
167
|
}Ok to proceed? `
|
|
168
|
+
if (typeof log.clearProgress === 'function')
|
|
169
|
+
log.clearProgress()
|
|
168
170
|
const confirm = await read({ prompt, default: 'y' })
|
|
169
171
|
if (confirm.trim().toLowerCase().charAt(0) !== 'y')
|
|
170
172
|
throw new Error('canceled')
|