@laoyuehanni/dsh-git-worktree 0.4.2 → 0.4.3-dsh-0.1.2-alpha.5
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 +10 -0
- package/README.zh.md +10 -0
- package/lib/client.js +411 -213
- package/lib/client.js.map +1 -1
- package/lib/git.d.ts +12 -2
- package/lib/git.js +22 -10
- package/lib/index.d.ts +3 -2
- package/lib/index.js +22 -15
- package/lib/routes.js +5 -2
- package/package.json +30 -17
package/README.md
CHANGED
|
@@ -49,6 +49,16 @@ dsh plugin --profile web add @laoyuehanni/dsh-git-worktree
|
|
|
49
49
|
|
|
50
50
|
> The package declares `dsh.bundle`, so `add` wires the plugin into the profile's layer stack automatically — no config editing needed. The compiled `lib/` ships in the npm tarball, so installs work out of the box without any build step. Requires the `web` profile (`dsh web`).
|
|
51
51
|
|
|
52
|
+
### From npm — dsh 0.1.2-alpha.x host
|
|
53
|
+
|
|
54
|
+
The `latest` line above tracks the stable host (rc series). If you run a dsh **0.1.2 alpha** host, install the dedicated compatibility build instead:
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
dsh plugin --profile web add @laoyuehanni/dsh-git-worktree@dsh-alpha
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
> `@dsh-alpha` is a dist-tag (not a literal version), so the registry resolves it to the latest compatibility build — currently `0.4.1-dsh-0.1.2-alpha.3`. Its peer range is pinned to `>=0.1.2-alpha.3 <0.2.0`, while the stable line stays on the rc peers: the two channels never get mixed by a plain `update`, and `dsh plugin update` keeps pulling from the matching channel only. Upgrading your host back to the stable line? Remove this package first, then install the default one from the section above.
|
|
61
|
+
|
|
52
62
|
### From a local directory (development)
|
|
53
63
|
|
|
54
64
|
```sh
|
package/README.zh.md
CHANGED
|
@@ -49,6 +49,16 @@ dsh plugin --profile web add @laoyuehanni/dsh-git-worktree
|
|
|
49
49
|
|
|
50
50
|
> 包声明了 `dsh.bundle`,`add` 会自动把插件挂进 profile 的层栈,无需手动改配置。编译产物 `lib/` 随 npm 包分发,安装开箱即用,无需任何构建步骤。需要 `web` profile(`dsh web`)。
|
|
51
51
|
|
|
52
|
+
### 从 npm 安装 —— dsh 0.1.2-alpha.x 宿主
|
|
53
|
+
|
|
54
|
+
上面的 `latest` 通道面向稳定宿主(rc 系列)。若你运行的是 dsh **0.1.2 alpha** 宿主,请改装专用兼容版本:
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
dsh plugin --profile web add @laoyuehanni/dsh-git-worktree@dsh-alpha
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
> `@dsh-alpha` 是 dist-tag(不是字面版本号),registry 会解析为最新的兼容构建——当前为 `0.4.1-dsh-0.1.2-alpha.3`。其 peer 范围锁定 `>=0.1.2-alpha.3 <0.2.0`,而稳定线保持在 rc peer 上:普通 `update` 不会把两条通道混装,`dsh plugin update` 也只会从对应通道拉取。宿主升回稳定线时,先移除此包,再按上一小节安装默认版本。
|
|
61
|
+
|
|
52
62
|
### 从本地目录安装(开发调试用)
|
|
53
63
|
|
|
54
64
|
```sh
|