diff --git a/src/command/npm.ts b/src/command/npm.ts index 5e65c5c..833c94c 100644 --- a/src/command/npm.ts +++ b/src/command/npm.ts @@ -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)) {