ai-project-manage-cli 7.0.5 → 7.0.6
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 +1 -15
- package/package.json +1 -1
- package/template/deploy/README.md +0 -8
package/dist/index.js
CHANGED
|
@@ -177,20 +177,6 @@ function isWorkspaceApmInitialized(workdir) {
|
|
|
177
177
|
}
|
|
178
178
|
return readdirSync(fsApmDir).length > 0;
|
|
179
179
|
}
|
|
180
|
-
function assertWorkspaceApmDirExists(workdir) {
|
|
181
|
-
if (!isWorkspaceApmInitialized(workdir)) {
|
|
182
|
-
const apmDir = workspaceApmDir(workdir);
|
|
183
|
-
const fsApmDir = toFsPath(apmDir);
|
|
184
|
-
if (!existsSync2(fsApmDir)) {
|
|
185
|
-
throw new Error(
|
|
186
|
-
`\u5DE5\u4F5C\u76EE\u5F55 ${workdir} \u4E0B\u672A\u68C0\u6D4B\u5230 .apm \u76EE\u5F55\uFF0C\u8BF7\u5728\u8BE5\u4ED3\u5E93\u6839\u76EE\u5F55\u6267\u884C apm init \u5B8C\u6210\u63A5\u5165\u3002`
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
throw new Error(
|
|
190
|
-
`\u5DE5\u4F5C\u76EE\u5F55 ${workdir} \u4E0B .apm \u76EE\u5F55\u4E3A\u7A7A\uFF0C\u8BF7\u5728\u8BE5\u4ED3\u5E93\u6839\u76EE\u5F55\u6267\u884C apm init \u5B8C\u6210\u63A5\u5165\u3002`
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
180
|
var APM_GITIGNORE_PATTERNS = [
|
|
195
181
|
/^\.apm\/?$/,
|
|
196
182
|
/^\.apm\/\*\*$/,
|
|
@@ -2706,7 +2692,7 @@ async function syncPlatformRules(cfg, workdirPath, apmRoot) {
|
|
|
2706
2692
|
// src/commands/connect/task-pull.ts
|
|
2707
2693
|
async function runTaskPull(cfg, detail) {
|
|
2708
2694
|
const { taskId, workdir } = detail;
|
|
2709
|
-
|
|
2695
|
+
await ensureWorkspaceInitialized(workdir);
|
|
2710
2696
|
const apmRoot = workspaceApmDir(workdir);
|
|
2711
2697
|
const dir = taskDir(taskId, apmRoot, workdir);
|
|
2712
2698
|
const docsDir = taskDocsDir(taskId, apmRoot, workdir);
|
package/package.json
CHANGED