@skylandnpm/octopus-proxy 0.1.2 → 0.1.3
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 +3 -3
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -45,12 +45,12 @@ octopus-proxy onboard --tool pi
|
|
|
45
45
|
|
|
46
46
|
## 发布
|
|
47
47
|
|
|
48
|
-
在 `apps/octopus-proxy` 目录执行 `npm publish
|
|
48
|
+
在 `apps/octopus-proxy` 目录执行 `npm run publish`:先递增 `package.json` 的补丁版本,再编译,最后发布。即使编译或发布失败,版本号也会保留递增结果,重试时继续递增。版本更新不会自动创建 Git 提交或标签。先登录有权发布 `@skylandnpm` 包的 npm 账号:
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
51
|
npm adduser --registry https://registry.npmjs.org
|
|
52
52
|
cd apps/octopus-proxy
|
|
53
|
-
npm publish
|
|
53
|
+
npm run publish
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
预览包内容可运行 `pnpm build && npm pack --dry-run
|
|
56
|
+
预览包内容可运行 `pnpm build && npm pack --dry-run`。直接运行 `npm publish` 会提示使用 `npm run publish`,以防绕过版本递增和编译。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skylandnpm/octopus-proxy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Octopus host proxy: OpenCode, Codex, ZCode and Pi adapters with service installer CLI",
|
|
6
6
|
"bin": {
|
|
@@ -15,13 +15,15 @@
|
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "tsc --noEmit && tsup",
|
|
18
|
-
"prepublishOnly": "node
|
|
19
|
-
"
|
|
18
|
+
"prepublishOnly": "node -e \"console.error('请使用 npm run publish'); process.exit(1)\"",
|
|
19
|
+
"publish": "npm version patch --no-git-tag-version && pnpm build && npm publish --ignore-scripts",
|
|
20
|
+
"release": "npm run publish",
|
|
21
|
+
"build:patch:publish": "npm run publish",
|
|
20
22
|
"typecheck": "tsc --noEmit",
|
|
21
23
|
"dev": "tsx src/main.ts",
|
|
22
24
|
"cli": "tsx src/cli.ts",
|
|
23
25
|
"test": "vitest run",
|
|
24
|
-
"help": "echo \"Run 'npm adduser --registry https://registry.npmjs.org' before 'npm run
|
|
26
|
+
"help": "echo \"Run 'npm adduser --registry https://registry.npmjs.org' before 'npm run publish'\""
|
|
25
27
|
},
|
|
26
28
|
"dependencies": {
|
|
27
29
|
"ws": "8.18.0"
|