From 1cf7d78b4437b512b7b2e977f78d7f25c9fc0590 Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Sun, 12 Apr 2020 22:44:22 +0800 Subject: [PATCH] Fix scoped repo prompt showing even if package has already been published (#524) --- source/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ui.js b/source/ui.js index caca34a5..974f04ab 100644 --- a/source/ui.js +++ b/source/ui.js @@ -139,7 +139,7 @@ module.exports = async (options, pkg) => { { type: 'confirm', name: 'publishScoped', - when: isScoped(pkg.name) && !options.availability.isAvailable && !options.availability.isUnknown && options.runPublish && (pkg.publishConfig && pkg.publishConfig.access !== 'restricted'), + when: isScoped(pkg.name) && options.availability.isAvailable && !options.availability.isUnknown && options.runPublish && (pkg.publishConfig && pkg.publishConfig.access !== 'restricted'), message: `This scoped repo ${chalk.bold.magenta(pkg.name)} hasn't been published. Do you want to publish it publicly?`, default: false }