dsh-plugin-packer 2.1.0 → 2.1.1
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 +20 -0
- package/package.json +39 -7
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# 插件打包(dsh-plugin-packer)
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/dsh-plugin-packer)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://github.com/sishuiguozi/dsh-plugin-packer)
|
|
6
|
+
[](https://github.com/sishuiguozi/dsh-plugin-packer/actions/workflows/publish.yml)
|
|
7
|
+
|
|
3
8
|
把一个插件连同它的 **node 依赖闭包**,以及可选的**运行时环境**,打成一个可离线导入的 `.dsh-plugin.zip`;导入时铺回 `node_modules` 并按需重建环境。
|
|
4
9
|
|
|
5
10
|
普通插件只带代码就够,但**真正重量在运行时环境里**的插件不够:
|
|
@@ -160,3 +165,18 @@ node test/import.mjs <zip> # 空 DSH_HOME 冷导入:铺包 + 依赖写入 +
|
|
|
160
165
|
```
|
|
161
166
|
|
|
162
167
|
`test/import.mjs` 会自己造一个临时 `DSH_HOME` 与 profile(在系统临时目录),不动你正在跑的 profile,跑完不留垃圾。
|
|
168
|
+
|
|
169
|
+
## 发版
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
npm version patch # 或 minor / major:改版本、提交、打 tag
|
|
173
|
+
git push --follow-tags
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
推送 tag 会触发 GitHub Actions(`.github/workflows/publish.yml`):先跑 `test/ci.mjs`
|
|
177
|
+
(自包含,不依赖任何本机 profile),通过后自动 `npm publish --provenance`。
|
|
178
|
+
仓库需要在 Settings → Secrets and variables → Actions 里配置一个名为 `NPM_TOKEN`
|
|
179
|
+
的 granular token:权限 **Read and write**、包范围含 `dsh-plugin-packer`、
|
|
180
|
+
勾选 **Bypass two-factor authentication**。
|
|
181
|
+
|
|
182
|
+
只是验证代码的话,也可以在该页面手动 Run workflow(只跑测试,不发布)。
|
package/package.json
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-packer",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "DSH 插件打包器:把插件、依赖闭包和运行时环境打成一个可离线导入的 zip,设置页支持按安装/更新时间排序与多选批量打包。",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"dsh-plugin",
|
|
7
|
+
"deepseek",
|
|
8
|
+
"harness",
|
|
9
|
+
"plugin",
|
|
10
|
+
"packaging",
|
|
11
|
+
"export",
|
|
12
|
+
"import",
|
|
13
|
+
"offline",
|
|
14
|
+
"runtime-assets"
|
|
15
|
+
],
|
|
6
16
|
"type": "module",
|
|
7
17
|
"main": "lib/index.js",
|
|
8
18
|
"exports": {
|
|
@@ -10,8 +20,16 @@
|
|
|
10
20
|
"./client": "./lib/client.js",
|
|
11
21
|
"./package.json": "./package.json"
|
|
12
22
|
},
|
|
13
|
-
"files": [
|
|
14
|
-
|
|
23
|
+
"files": [
|
|
24
|
+
"lib",
|
|
25
|
+
"docs",
|
|
26
|
+
"cordis.patch.yml",
|
|
27
|
+
"README.md",
|
|
28
|
+
"LICENSE"
|
|
29
|
+
],
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=20"
|
|
32
|
+
},
|
|
15
33
|
"scripts": {
|
|
16
34
|
"clean": "node tools/clean.mjs",
|
|
17
35
|
"clean:all": "node tools/clean.mjs --all",
|
|
@@ -24,8 +42,22 @@
|
|
|
24
42
|
"registry": "https://registry.npmjs.org"
|
|
25
43
|
},
|
|
26
44
|
"dsh": {
|
|
27
|
-
"bundle": {
|
|
28
|
-
|
|
45
|
+
"bundle": {
|
|
46
|
+
"patch": "./cordis.patch.yml"
|
|
47
|
+
},
|
|
48
|
+
"client": {
|
|
49
|
+
"platform": "web",
|
|
50
|
+
"inject": []
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"license": "MIT",
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "git+https://github.com/sishuiguozi/dsh-plugin-packer.git"
|
|
57
|
+
},
|
|
58
|
+
"homepage": "https://github.com/sishuiguozi/dsh-plugin-packer#readme",
|
|
59
|
+
"bugs": {
|
|
60
|
+
"url": "https://github.com/sishuiguozi/dsh-plugin-packer/issues"
|
|
29
61
|
},
|
|
30
|
-
"
|
|
62
|
+
"author": "sishuiguozi"
|
|
31
63
|
}
|