Skip to content

Commit df51c99

Browse files
fix(migration): fix build
1 parent ae2c8f7 commit df51c99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

migrate/migrate-bot.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async function convertToMDX(
9090
"{{LLM_DOCS}}",
9191
await readFile(
9292
__dirname +
93-
"/../src/content/docs/development/guide/component-docs-for-llm.mdx",
93+
"/../src/content/docs/development/guide/component-docs-for-llm.mdx",
9494
"utf8"
9595
)
9696
);
@@ -418,10 +418,10 @@ async function main() {
418418
await writeMDXFile(filePath, mdx, title);
419419

420420
console.log(` 尝试构建...`);
421-
const res = spawnSync(`npm run build`, { stdio: "inherit" });
421+
const res = spawnSync(`npm`, ["run", "build"], { stdio: "inherit" });
422422
if (res.status !== 0) {
423423
throw new Error(
424-
"构建失败,可能生成的MDX有问题:" + res.stderr?.toString()
424+
"构建失败,可能生成的MDX有问题:" + res.stderr?.toString() + res.stdout?.toString() + " exit code " + res.status
425425
);
426426
}
427427

0 commit comments

Comments
 (0)