fix add publish ev
This commit is contained in:
@@ -59,16 +59,16 @@ const publish = new Command('publish')
|
||||
const packageJson = path.resolve(execPath, 'package.json');
|
||||
switch (registry) {
|
||||
case 'me':
|
||||
cmd = 'npm publish --registry https://npm.xiongxiao.me';
|
||||
cmd = 'npm publish -s --registry https://npm.xiongxiao.me';
|
||||
break;
|
||||
case 'npm':
|
||||
cmd = 'npm publish --registry https://registry.npmjs.org';
|
||||
cmd = 'npm publish -s --registry https://registry.npmjs.org';
|
||||
break;
|
||||
case 'cnb':
|
||||
cmd = 'npm publish --registry https://npm.cnb.cool/kevisual/registry/-/packages/';
|
||||
cmd = 'npm publish -s --registry https://npm.cnb.cool/kevisual/registry/-/packages/';
|
||||
break;
|
||||
default:
|
||||
cmd = 'npm publish --registry https://npm.xiongxiao.me';
|
||||
cmd = 'npm publish -s --registry https://npm.xiongxiao.me';
|
||||
break;
|
||||
}
|
||||
if (fileIsExist(packageJson)) {
|
||||
|
||||
Reference in New Issue
Block a user