Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWangJustToDo committed Apr 22, 2024
1 parent 002254e commit 50e9b65
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 || "",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 || "",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 || "",
Expand Down
2 changes: 2 additions & 0 deletions scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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");
};

Expand Down

0 comments on commit 50e9b65

Please sign in to comment.