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'); 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)) {