From e761cbee0ad1fc5fbb7dbc98e288d1f770dfe6e2 Mon Sep 17 00:00:00 2001 From: winches <329487092@qq.com> Date: Sun, 19 Jan 2025 10:32:25 +0800 Subject: [PATCH] fix: sync docs script --- .github/workflows/sync.yml | 2 +- README.md | 2 +- src/scripts/sync/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 13acb32..28307f5 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -33,7 +33,7 @@ jobs: - name: Clone heroui repository run: | - git clone https://github.com/heroui-inc/heroui-cli heroui --depth 1 + git clone https://github.com/heroui-inc/heroui heroui --depth 1 - name: Run docs sync script run: | diff --git a/README.md b/README.md index 06254c5..26a7511 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ HeroUI CLI v0.2.1 ### Add -Add HeorUI components to your project. +Add HeroUI components to your project. #### Features diff --git a/src/scripts/sync/index.ts b/src/scripts/sync/index.ts index a77785f..21063f3 100644 --- a/src/scripts/sync/index.ts +++ b/src/scripts/sync/index.ts @@ -32,5 +32,5 @@ function syncApiRoutes() { } }); - writeFileSync(targetPath, JSON.stringify(targetDocs, null, 2), 'utf-8'); + writeFileSync(targetPath, `${JSON.stringify(targetDocs, null, 2)}\n`, 'utf-8'); }