From f85284d47fb0ebe4530712c0a023eb8eedd450e6 Mon Sep 17 00:00:00 2001 From: ruan-cat <1219043956@qq.com> Date: Sun, 1 Dec 2024 01:22:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(monorepo-1):=20=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=A6=96=E9=A1=B5=E5=A4=8D=E5=88=B6=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF=E3=80=82=E9=A6=96=E9=A1=B5=E7=9A=84?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E5=BA=94=E8=AF=A5=E7=9B=B4=E6=8E=A5=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E5=88=B0=E7=9B=AE=E6=A0=87=E6=96=87=E4=BB=B6=E5=A4=B9?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/monorepo-1/src/tools/move-md-as-home-page.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/monorepo-1/src/tools/move-md-as-home-page.ts b/tests/monorepo-1/src/tools/move-md-as-home-page.ts index dc2df20..ef815d4 100644 --- a/tests/monorepo-1/src/tools/move-md-as-home-page.ts +++ b/tests/monorepo-1/src/tools/move-md-as-home-page.ts @@ -46,7 +46,7 @@ export function moveMdAsHomePage(params: Params) { const docsSourcePath = resolve(process.cwd(), params.docsSourcePath); const targetDocsPath = resolve(process.cwd(), params.targetDocsPath); - const docsSourceHomePageMdPath = resolve(process.cwd(), params.docsSourcePath, indexMdName); + const targetDocsHomePageMdPath = resolve(process.cwd(), params.targetDocsPath, indexMdName); if (!existsSync(homePageMdPath)) { consola.error(`未发现期望的 ${homePageMdPath} 首页文件,无法移动文件。 首页文件只识别 ${indexMdName} 名称。 `); @@ -66,6 +66,6 @@ export function moveMdAsHomePage(params: Params) { cpSync(docsSourcePath, targetDocsPath, { recursive: true }); consola.success(`文档源路径已复制到 ${targetDocsPath}`); - copyFileSync(homePageMdPath, docsSourceHomePageMdPath); - consola.success(`首页文件已复制到 ${docsSourceHomePageMdPath}`); + copyFileSync(homePageMdPath, targetDocsHomePageMdPath); + consola.success(`首页文件已复制到 ${targetDocsHomePageMdPath}`); }