dsh-pick 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/README.md +34 -0
  2. package/package.json +7 -1
package/README.md CHANGED
@@ -138,6 +138,40 @@ dsh-pick/
138
138
 
139
139
  ---
140
140
 
141
+ ## 发布流程(每次发版照这个走,一步都别省)
142
+
143
+ ```sh
144
+ cd /Users/wf/dsh/dsh-pick
145
+
146
+ # 1. 改 package.json 里的 version(npm 不许覆盖已发布版本)
147
+ # 2. 提交并推 GitHub —— 代码是真源,必须早于 npm
148
+ git add -A && git commit -m "vX.Y.Z:改了什么"
149
+ git push origin main
150
+
151
+ # 3. 打 tag 并推送(必须,用来对应 npm 版本)
152
+ git tag -a vX.Y.Z -m "dsh-pick vX.Y.Z:改了什么"
153
+ git push origin vX.Y.Z
154
+
155
+ # 4. 发布 npm(会问 OTP)
156
+ npm publish
157
+
158
+ # 5. 验证
159
+ npm view dsh-pick version # 应等于 X.Y.Z
160
+ ```
161
+
162
+ **顺序不能反**:先 GitHub 再 npm,这样 npm 上每个版本都能在 git 里找到对应提交。
163
+
164
+ `package.json` 里的 `dsh.bundle` 声明**不能删**,否则 `dsh plugin add` 会直接拒绝安装:
165
+
166
+ ```json
167
+ "dsh": {
168
+ "bundle": { "patch": "./plugin/cordis.patch.yml" },
169
+ "client": { "platform": "web" }
170
+ }
171
+ ```
172
+
173
+ ---
174
+
141
175
  ## 许可
142
176
 
143
177
  MIT
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "dsh-pick",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "帮你在 DSH 生态里选对插件:说需求 → 找候选 → 多维比较 → 出结论。下载量是证据,AI 是推理。",
5
5
  "type": "module",
6
+ "main": "./plugin/index.js",
7
+ "exports": {
8
+ ".": "./plugin/index.js",
9
+ "./client": "./plugin/client.js",
10
+ "./package.json": "./package.json"
11
+ },
6
12
  "bin": {
7
13
  "dsh-pick": "bin/dsh-pick.js"
8
14
  },