From 50e9b650deefaa04f2143e82567374ebe9aa7e31 Mon Sep 17 00:00:00 2001 From: MrWangJustToDo <2711470541@qq.com> Date: Mon, 22 Apr 2024 10:15:14 +0800 Subject: [PATCH] update readme --- README.md | 2 +- packages/react/readme.md | 2 +- packages/vue/readme.md | 2 +- scripts/release.ts | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8f60774..8e34a68 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ file.buildSplitDiffLines(); file.buildUnifiedDiffLines(); // with @git-diff-view/core -import { DiffView } from "@git-diff-view/core"; +import { DiffFile } from "@git-diff-view/core"; const file = new DiffFile( data?.oldFile?.fileName || "", data?.oldFile?.content || "", diff --git a/packages/react/readme.md b/packages/react/readme.md index aa60a85..172bb25 100644 --- a/packages/react/readme.md +++ b/packages/react/readme.md @@ -48,7 +48,7 @@ file.buildSplitDiffLines(); file.buildUnifiedDiffLines(); // with @git-diff-view/core -import { DiffView } from "@git-diff-view/core"; +import { DiffFile } from "@git-diff-view/core"; const file = new DiffFile( data?.oldFile?.fileName || "", data?.oldFile?.content || "", diff --git a/packages/vue/readme.md b/packages/vue/readme.md index 245da52..2fb6821 100644 --- a/packages/vue/readme.md +++ b/packages/vue/readme.md @@ -44,7 +44,7 @@ file.buildSplitDiffLines(); file.buildUnifiedDiffLines(); // with @git-diff-view/core -import { DiffView } from "@git-diff-view/core"; +import { DiffFile } from "@git-diff-view/core"; const file = new DiffFile( data?.oldFile?.fileName || "", data?.oldFile?.content || "", diff --git a/scripts/release.ts b/scripts/release.ts index 53de23b..1792147 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -5,6 +5,7 @@ import { resolve } from "path"; const pkgNameAlias = { "@git-diff-view/core": "core", "@git-diff-view/vue": "vue", + "@git-diff-view/file": "file", "@git-diff-view/react": "react", "@git-diff-view/lowlight": "lowlight", "@git-diff-view/shiki": "shiki", @@ -66,6 +67,7 @@ const run = async () => { await release("@git-diff-view/react"); await release("@git-diff-view/vue"); await release("@git-diff-view/lowlight"); + await release("@git-diff-view/file"); await release("@git-diff-view/shiki"); };