@noahyu/cd-cli 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/index.js CHANGED
@@ -145,7 +145,9 @@ async function deploy(config, version) {
145
145
  if (config.afterDeploy) {
146
146
  for (const cmd of config.afterDeploy) {
147
147
  spinner.start(`执行部署后命令: ${cmd}`);
148
- const result = await ssh.execCommand(cmd, { cwd: config.server.deployPath });
148
+ const result = await ssh.execCommand(`bash --login -c ${JSON.stringify(cmd)}`, {
149
+ cwd: config.server.deployPath,
150
+ });
149
151
  if (result.stdout) {
150
152
  spinner.stop();
151
153
  console.log(result.stdout);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noahyu/cd-cli",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Global CLI tool for simple project deployment with version management",
5
5
  "type": "module",
6
6
  "main": "./dist/bin/cli.js",