File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const {htmlEscape} = require('escape-goat');
6
6
const isScoped = require ( 'is-scoped' ) ;
7
7
const util = require ( './util' ) ;
8
8
const git = require ( './git-util' ) ;
9
- const { prereleaseTags, checkIgnoreStrategy, getRegistryUrl} = require ( './npm/util' ) ;
9
+ const { prereleaseTags, checkIgnoreStrategy, getRegistryUrl, isExternalRegistry } = require ( './npm/util' ) ;
10
10
const version = require ( './version' ) ;
11
11
const prettyVersionDiff = require ( './pretty-version-diff' ) ;
12
12
@@ -139,7 +139,7 @@ module.exports = async (options, pkg) => {
139
139
{
140
140
type : 'confirm' ,
141
141
name : 'publishScoped' ,
142
- when : isScoped ( pkg . name ) && options . availability . isAvailable && ! options . availability . isUnknown && options . runPublish && ( pkg . publishConfig && pkg . publishConfig . access !== 'restricted' ) ,
142
+ when : isScoped ( pkg . name ) && options . availability . isAvailable && ! options . availability . isUnknown && options . runPublish && ( pkg . publishConfig && pkg . publishConfig . access !== 'restricted' ) && ! isExternalRegistry ( pkg ) ,
143
143
message : `This scoped repo ${ chalk . bold . magenta ( pkg . name ) } hasn't been published. Do you want to publish it publicly?` ,
144
144
default : false
145
145
}
You can’t perform that action at this time.
0 commit comments