dc-publish 0.7.15 → 0.8.0
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 +12 -4
- package/es/cli.mjs +1 -1
- package/es/{index-eacf5bfb.js → index-a691fb89.js} +1 -1
- package/es/index.mjs +4 -4
- package/package.json +5 -5
- package/types/index.d.ts +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
## 安装
|
|
9
9
|
|
|
10
10
|
### 独立安装
|
|
11
|
+
|
|
11
12
|
```bash
|
|
12
13
|
npm install @done-coding/cli-publish
|
|
13
14
|
# 或
|
|
@@ -15,6 +16,7 @@ pnpm add @done-coding/cli-publish
|
|
|
15
16
|
```
|
|
16
17
|
|
|
17
18
|
### 作为 done-coding CLI 的一部分
|
|
19
|
+
|
|
18
20
|
```bash
|
|
19
21
|
npm install -g @done-coding/cli
|
|
20
22
|
# 然后使用
|
|
@@ -47,6 +49,7 @@ dc-publish --help
|
|
|
47
49
|
### 基础命令
|
|
48
50
|
|
|
49
51
|
#### `dc-publish init`
|
|
52
|
+
|
|
50
53
|
初始化配置文件
|
|
51
54
|
|
|
52
55
|
```bash
|
|
@@ -55,6 +58,7 @@ dc-publish init
|
|
|
55
58
|
```
|
|
56
59
|
|
|
57
60
|
#### `dc-publish` (默认命令)
|
|
61
|
+
|
|
58
62
|
执行发布命令
|
|
59
63
|
|
|
60
64
|
```bash
|
|
@@ -75,6 +79,7 @@ dc-publish -p false
|
|
|
75
79
|
```
|
|
76
80
|
|
|
77
81
|
#### `dc-publish alias`
|
|
82
|
+
|
|
78
83
|
别名发布
|
|
79
84
|
|
|
80
85
|
```bash
|
|
@@ -164,6 +169,7 @@ DC publish alias
|
|
|
164
169
|
### 常见问题
|
|
165
170
|
|
|
166
171
|
**Q: 配置文件找不到**
|
|
172
|
+
|
|
167
173
|
```bash
|
|
168
174
|
# 检查配置文件是否存在
|
|
169
175
|
ls -la .done-coding/publish.json
|
|
@@ -173,6 +179,7 @@ dc-publish init
|
|
|
173
179
|
```
|
|
174
180
|
|
|
175
181
|
**Q: 发布失败**
|
|
182
|
+
|
|
176
183
|
```bash
|
|
177
184
|
# 检查 npm 登录状态
|
|
178
185
|
npm whoami
|
|
@@ -185,6 +192,7 @@ npm ping
|
|
|
185
192
|
```
|
|
186
193
|
|
|
187
194
|
**Q: Git 推送失败**
|
|
195
|
+
|
|
188
196
|
```bash
|
|
189
197
|
# 检查 Git 远程仓库配置
|
|
190
198
|
git remote -v
|
|
@@ -220,7 +228,7 @@ dc-publish --help
|
|
|
220
228
|
|
|
221
229
|
```bash
|
|
222
230
|
# 克隆仓库
|
|
223
|
-
git clone https://
|
|
231
|
+
git clone https://github.com/done-coding/done-coding-cli.git
|
|
224
232
|
cd done-coding-cli/packages/publish
|
|
225
233
|
|
|
226
234
|
# 安装依赖
|
|
@@ -241,10 +249,10 @@ node es/cli.mjs --help
|
|
|
241
249
|
|
|
242
250
|
## 许可证
|
|
243
251
|
|
|
244
|
-
MIT © [
|
|
252
|
+
MIT © [done-coding](https://github.com/done-coding)
|
|
245
253
|
|
|
246
254
|
## 相关链接
|
|
247
255
|
|
|
248
256
|
- [主 CLI 工具](https://www.npmjs.com/package/@done-coding/cli)
|
|
249
|
-
- [
|
|
250
|
-
- [更新日志](./CHANGELOG.md)
|
|
257
|
+
- [Github 仓库](https://github.com/done-coding/done-coding-cli)
|
|
258
|
+
- [更新日志](./CHANGELOG.md)
|
package/es/cli.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import S, { rmSync as K } from "node:fs";
|
|
|
6
6
|
var I = /* @__PURE__ */ ((e) => (e.INIT = "init", e.EXEC = "exec", e.ALIAS = "alias", e))(I || {}), r = /* @__PURE__ */ ((e) => (e.MAJOR = "major", e.MINOR = "minor", e.PATCH = "patch", e.PREMAJOR = "premajor", e.PREMINOR = "preminor", e.PREPATCH = "prepatch", e.PRERELEASE = "prerelease", e.CUSTOM_VERSION = "custom version", e))(r || {}), f = /* @__PURE__ */ ((e) => (e.LATEST = "latest", e.NEXT = "next", e.ALPHA = "alpha", e.BETA = "beta", e.RC = "rc", e))(f || {}), c = /* @__PURE__ */ ((e) => (e.NPM = "npm", e.WEB = "web", e))(c || {});
|
|
7
7
|
const R = {
|
|
8
8
|
name: "@done-coding/cli-publish",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.8.0",
|
|
10
10
|
description: "项目发布命令行工具",
|
|
11
11
|
bin: {
|
|
12
12
|
"dc-publish": "es/cli.mjs"
|
package/es/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { d as u, b as
|
|
2
|
+
import { d as u, b as e, P as i, S as b, a as d, h as p } from "./index-a691fb89.js";
|
|
3
3
|
import "@done-coding/cli-utils";
|
|
4
4
|
import "semver";
|
|
5
5
|
import "node:path";
|
|
6
6
|
import "node:fs";
|
|
7
7
|
export {
|
|
8
8
|
u as PublishModeEnum,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
e as PublishTagEnum,
|
|
10
|
+
i as PublishVersionTypeEnum,
|
|
11
11
|
b as SubcommandEnum,
|
|
12
|
-
d as
|
|
12
|
+
d as createAsSubcommand,
|
|
13
13
|
p as handler
|
|
14
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dc-publish",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "项目发布命令行工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "https://
|
|
23
|
+
"url": "https://github.com/done-coding/done-coding-cli.git",
|
|
24
24
|
"directory": "packages/publish"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@done-coding/cli-inject": "0.
|
|
34
|
+
"@done-coding/cli-inject": "0.6.0",
|
|
35
35
|
"@types/node": "^18.0.0",
|
|
36
36
|
"@types/semver": "^7.5.3",
|
|
37
37
|
"@types/yargs": "^17.0.28",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"vite-plugin-dts": "^3.6.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@done-coding/cli-utils": "0.
|
|
43
|
+
"@done-coding/cli-utils": "0.9.0",
|
|
44
44
|
"semver": "^7.5.4"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=18.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d72c025c7c59964ef0617891bec9e34df015bd47",
|
|
50
50
|
"scripts": {}
|
|
51
51
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare interface ConfigInfoWeb extends GetGitLastCommitParams {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/** 作为子命令创建 */
|
|
43
|
-
export declare const
|
|
43
|
+
export declare const createAsSubcommand: () => CommandModule<{}, {}>;
|
|
44
44
|
|
|
45
45
|
export declare interface ExecOptions extends ReadConfigFileOptions {
|
|
46
46
|
/** 发布模式 */
|