Skip to content

Commit

Permalink
build: 修改 jieba 依赖为 @node-rs/jieba (#101)
Browse files Browse the repository at this point in the history
@node-rs/jieba 不需要 gyp ,能减少安装依赖出现问题的概率
  • Loading branch information
f44r authored Feb 26, 2024
1 parent 561f376 commit ec959f5
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 668 deletions.
2 changes: 1 addition & 1 deletion docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { registerComponentsPlugin } from "@vuepress/plugin-register-components";
// @ts-ignore
import { searchProPlugin } from "vuepress-plugin-search-pro";
import { path } from "@vuepress/utils";
import { cut } from "nodejs-jieba";
import { cut } from "@node-rs/jieba";

import theme from "./theme";

Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"author": "Sealdice Team",
"license": "MIT",
"devDependencies": {
"@node-rs/jieba": "^1.9.2",
"@vuepress/client": "2.0.0-beta.67",
"@vuepress/plugin-register-components": "2.0.0-rc.0",
"@vuepress/utils": "2.0.0-rc.2",
Expand All @@ -22,8 +23,5 @@
"vuepress-plugin-md-enhance": "2.0.0-beta.245",
"vuepress-plugin-search-pro": "2.0.0-beta.245",
"vuepress-theme-hope": "2.0.0-beta.245"
},
"dependencies": {
"nodejs-jieba": "^0.1.2"
}
}
Loading

0 comments on commit ec959f5

Please sign in to comment.