@kepoai/cli 0.0.9 → 0.0.10

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 +16 -1
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -30,4 +30,19 @@ npx @kepo/cli [command] [options]
30
30
 
31
31
  ## Auto-Download
32
32
 
33
- The CLI binary will be automatically downloaded from our release server during installation or first use, matching your system's architecture.
33
+ The CLI binary will be automatically downloaded from our release server during installation or first use, matching your system's architecture.
34
+
35
+ ## Publish Flow
36
+
37
+ `npm publish` 会自动触发 `prepublishOnly`:
38
+
39
+ 1. 构建多平台二进制到 `../dist`
40
+ 2. 同步上传二进制到 R1/R2(使用 Wrangler)
41
+
42
+ 发布前请设置:
43
+
44
+ - `R1_BUCKET`(或 `R2_BUCKET`)
45
+ - `CLOUDFLARE_API_TOKEN`
46
+ - (可选)`R1_PREFIX`(默认 `kepo-cli`)
47
+
48
+ 如需仅发布 npm、跳过上传,可临时设置 `SKIP_R1_UPLOAD=1`。
package/package.json CHANGED
@@ -38,7 +38,8 @@
38
38
  "url": "https://github.com/kepo-io/cli"
39
39
  },
40
40
  "scripts": {
41
- "postinstall": "node ./bin/kp.js npm-post-install"
41
+ "postinstall": "node ./bin/kp.js npm-post-install",
42
+ "prepublishOnly": "node ./scripts/prepublish-sync-r1.mjs"
42
43
  },
43
- "version": "0.0.9"
44
+ "version": "0.0.10"
44
45
  }