@noahyu/cd-cli 1.3.0 → 1.3.1

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
@@ -127,7 +127,7 @@ async function deploy(config, version) {
127
127
  if (config.afterDeploy) {
128
128
  spinner.start('执行部署后命令...');
129
129
  for (const cmd of config.afterDeploy) {
130
- await ssh.execCommand(cmd, { cwd: versionPath });
130
+ await ssh.execCommand(cmd, { cwd: config.server.deployPath });
131
131
  }
132
132
  spinner.succeed('部署后命令执行完成');
133
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noahyu/cd-cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Global CLI tool for simple project deployment with version management",
5
5
  "type": "module",
6
6
  "main": "./dist/bin/cli.js",