We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dcedef commit d608ecdCopy full SHA for d608ecd
src/publish.ts
@@ -242,9 +242,9 @@ export async function unpublish(options: IUnpublishOptions = {}): Promise<any> {
242
const fullName = `${publisher}.${name}`;
243
244
if (!options.force) {
245
- 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: `);
246
247
- if (!/^y$/i.test(answer)) {
+ if (answer !== fullName) {
248
throw new Error('Aborted');
249
}
250
0 commit comments