@ggboy123/dsh-paper-reader 0.6.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,6 +31,23 @@ dsh plugin --profile web add @ggboy123/dsh-paper-reader
|
|
|
31
31
|
> npm 包名走 `@ggboy123` 作用域:裸名 `dsh-paper-reader` 已被另一个插件占用(那是「输入文献、吐精读报告」的一次性分析工具,与本插件的「阅读器 + 会话伴读」定位不同)。
|
|
32
32
|
> 不要用 `github:GGboya/dsh-paper-reader` 安装 —— dist 不入库,git 安装会导致 profile 起不来(构建产物只随 npm 包分发)。
|
|
33
33
|
|
|
34
|
+
### 升级
|
|
35
|
+
|
|
36
|
+
**已装过的用户升级必须带显式版本号**——不带版本的 `add` 对已存在的依赖是 no-op(pnpm 按首次安装时记录的版本范围解析,不会追新):
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
dsh plugin --profile web add @ggboy123/dsh-paper-reader@1.0.0
|
|
40
|
+
# 重启 dsh web 生效;浏览器 Cmd+Shift+R 强刷,避免旧阅读器页面缓存
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
确认当前装的是哪个版本:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
grep '"version"' ~/.dsh/profiles/web/node_modules/@ggboy123/dsh-paper-reader/package.json
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
> pnpm 若开了供应链策略 `minimumReleaseAge`(发布 N 小时内的新包拒装):要么等过窗口期,要么在 `~/.dsh/profiles/web/.npmrc` 加一行 `minimum-release-age-exclude[]=@ggboy123/dsh-paper-reader`(只豁免本插件,不动全局策略)。
|
|
50
|
+
|
|
34
51
|
本地开发:
|
|
35
52
|
|
|
36
53
|
```bash
|