@done-coding/cli-config 0.1.14-alpha.3 → 0.1.15

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 CHANGED
@@ -8,6 +8,7 @@
8
8
  ## 安装
9
9
 
10
10
  ### 独立安装
11
+
11
12
  ```bash
12
13
  npm install @done-coding/cli-config
13
14
  # 或
@@ -15,6 +16,7 @@ pnpm add @done-coding/cli-config
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-config --help
47
49
  ### 基础命令
48
50
 
49
51
  #### `dc-config check`
52
+
50
53
  检测工程化配置
51
54
 
52
55
  ```bash
@@ -55,6 +58,7 @@ dc-config check
55
58
  ```
56
59
 
57
60
  #### `dc-config add`
61
+
58
62
  添加工程化配置
59
63
 
60
64
  ```bash
@@ -106,7 +110,7 @@ DC config add
106
110
  # 自动执行的检测流程
107
111
  dc-config check
108
112
  ├── 检测 ESLint 配置
109
- ├── 检测 Prettier 配置
113
+ ├── 检测 Prettier 配置
110
114
  ├── 检测 TypeScript 配置
111
115
  ├── 检测 Git 钩子配置
112
116
  └── 调用 dc-git check reverse-merge # 检测反向合并
@@ -125,6 +129,7 @@ dc-config check
125
129
  ### 常见问题
126
130
 
127
131
  **Q: 配置检测失败**
132
+
128
133
  ```bash
129
134
  # 检查项目根目录
130
135
  pwd
@@ -137,6 +142,7 @@ dc-config check --verbose
137
142
  ```
138
143
 
139
144
  **Q: Git 合并检测报错**
145
+
140
146
  ```bash
141
147
  # 确保 git 包已安装
142
148
  dc-git --version
@@ -149,6 +155,7 @@ git log --oneline -10
149
155
  ```
150
156
 
151
157
  **Q: 配置添加失败**
158
+
152
159
  ```bash
153
160
  # 检查写入权限
154
161
  ls -la .
@@ -191,7 +198,7 @@ DEBUG=done-coding:config dc-config check
191
198
 
192
199
  ```bash
193
200
  # 克隆仓库
194
- git clone https://gitee.com/done-coding/done-coding-cli.git
201
+ git clone https://github.com/done-coding/done-coding-cli.git
195
202
  cd done-coding-cli/packages/config
196
203
 
197
204
  # 安装依赖
@@ -219,4 +226,4 @@ MIT © [JustSoSu](https://gitee.com/done-coding)
219
226
  - [主 CLI 工具](https://www.npmjs.com/package/@done-coding/cli)
220
227
  - [Git 操作工具](https://www.npmjs.com/package/@done-coding/cli-git) - 本包调用的 Git 检测功能
221
228
  - [Gitee 仓库](https://gitee.com/done-coding/done-coding-cli)
222
- - [更新日志](./CHANGELOG.md)
229
+ - [更新日志](./CHANGELOG.md)
package/es/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as m } from "./index-f2861f40.js";
2
+ import { c as m } from "./index-c4f08b87.js";
3
3
  import "@done-coding/cli-utils";
4
4
  import "node:fs";
5
5
  import "node:path";
@@ -5,7 +5,7 @@ import g from "node:path";
5
5
  var y = /* @__PURE__ */ ((e) => (e.CHECK = "check", e.ADD = "add", e))(y || {}), m = /* @__PURE__ */ ((e) => (e.ESLINT = "eslint", e.PRETTIER = "prettier", e.COMMITLINT = "commitlint", e.LSLINT = "ls-lint", e.MERGELINT = "merge-lint", e))(m || {});
6
6
  const L = {
7
7
  name: "@done-coding/cli-config",
8
- version: "0.1.14-alpha.3",
8
+ version: "0.1.15",
9
9
  description: "工程化配置命令行工具",
10
10
  bin: {
11
11
  "dc-config": "es/cli.mjs"
package/es/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { C as e, S as s, a as u, h as d } from "./index-f2861f40.js";
2
+ import { C as e, S as s, a as u, h as d } from "./index-c4f08b87.js";
3
3
  import "@done-coding/cli-utils";
4
4
  import "node:fs";
5
5
  import "node:path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@done-coding/cli-config",
3
- "version": "0.1.14-alpha.3",
3
+ "version": "0.1.15",
4
4
  "description": "工程化配置命令行工具",
5
5
  "private": false,
6
6
  "module": "es/index.mjs",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "repository": {
29
29
  "type": "git",
30
- "url": "https://gitee.com/done-coding/done-coding-cli.git",
30
+ "url": "https://github.com/done-coding/done-coding-cli.git",
31
31
  "directory": "packages/config"
32
32
  },
33
33
  "publishConfig": {
@@ -38,7 +38,7 @@
38
38
  "license": "MIT",
39
39
  "sideEffects": false,
40
40
  "devDependencies": {
41
- "@done-coding/cli-inject": "0.5.22-alpha.3",
41
+ "@done-coding/cli-inject": "0.5.23",
42
42
  "@types/node": "^18.0.0",
43
43
  "@types/yargs": "^17.0.28",
44
44
  "typescript": "^5.8.3",
@@ -46,10 +46,10 @@
46
46
  "vite-plugin-dts": "^3.6.0"
47
47
  },
48
48
  "dependencies": {
49
- "@done-coding/cli-utils": "0.8.3-alpha.3"
49
+ "@done-coding/cli-utils": "0.8.4"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=18.0.0"
53
53
  },
54
- "gitHead": "30a4e6c8721e6bcafa72d4e05b35b5ed5fc75c0d"
54
+ "gitHead": "d90f437c0a716f3e62bd92a221341838710869ad"
55
55
  }