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');
|
const packageJson = path.resolve(execPath, 'package.json');
|
||||||
switch (registry) {
|
switch (registry) {
|
||||||
case 'me':
|
case 'me':
|
||||||
cmd = 'npm publish --registry https://npm.xiongxiao.me';
|
cmd = 'npm publish -s --registry https://npm.xiongxiao.me';
|
||||||
break;
|
break;
|
||||||
case 'npm':
|
case 'npm':
|
||||||
cmd = 'npm publish --registry https://registry.npmjs.org';
|
cmd = 'npm publish -s --registry https://registry.npmjs.org';
|
||||||
break;
|
break;
|
||||||
case 'cnb':
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
cmd = 'npm publish --registry https://npm.xiongxiao.me';
|
cmd = 'npm publish -s --registry https://npm.xiongxiao.me';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (fileIsExist(packageJson)) {
|
if (fileIsExist(packageJson)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user