diff --git a/src/publish.ts b/src/publish.ts index f1fc1bbf..27123db4 100644 --- a/src/publish.ts +++ b/src/publish.ts @@ -242,9 +242,9 @@ export async function unpublish(options: IUnpublishOptions = {}): Promise { const fullName = `${publisher}.${name}`; if (!options.force) { - const answer = await read(`This will FOREVER delete '${fullName}'! Are you sure? [y/N] `); + const answer = await read(`This will delete ALL published versions! Please type '${fullName}' to confirm: `); - if (!/^y$/i.test(answer)) { + if (answer !== fullName) { throw new Error('Aborted'); } }