fix add publish ev

This commit is contained in:
xiongxiao
2026-03-14 17:45:50 +08:00
committed by cnb
parent 4e8eb06f56
commit 228635a3cc

View File

@@ -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)) {