ai-project-manage-cli 6.0.101 → 6.0.102
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/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5139,7 +5139,8 @@ function runShellCommand2(command, cwd, captureOutput) {
|
|
|
5139
5139
|
return output;
|
|
5140
5140
|
}
|
|
5141
5141
|
async function executeDeploy(options) {
|
|
5142
|
-
const cwd =
|
|
5142
|
+
const cwd = resolveWorkdirPath(options.cwd ?? process.cwd());
|
|
5143
|
+
const apmConfigPath = options.configPath ?? path5.join(workspaceApmDir(cwd), "apm.config.json");
|
|
5143
5144
|
const captureOutput = options.captureOutput ?? false;
|
|
5144
5145
|
const outputParts = [];
|
|
5145
5146
|
try {
|
|
@@ -5164,13 +5165,13 @@ async function executeDeploy(options) {
|
|
|
5164
5165
|
detail
|
|
5165
5166
|
);
|
|
5166
5167
|
}
|
|
5167
|
-
const cfg = loadApmConfig({ configPath:
|
|
5168
|
+
const cfg = loadApmConfig({ configPath: apmConfigPath });
|
|
5168
5169
|
if (isWisdomLegacyDeploy(cfg)) {
|
|
5169
5170
|
try {
|
|
5170
5171
|
await runWisdomAutoDeploy({
|
|
5171
5172
|
env: options.env,
|
|
5172
5173
|
cwd,
|
|
5173
|
-
configPath:
|
|
5174
|
+
configPath: apmConfigPath,
|
|
5174
5175
|
captureOutput,
|
|
5175
5176
|
packOnly: options.packOnly
|
|
5176
5177
|
});
|