done-coding-git 0.6.15 → 0.7.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 CHANGED
@@ -314,7 +314,7 @@ node es/cli.mjs --help
314
314
 
315
315
  ## 许可证
316
316
 
317
- MIT © [JustSoSu](https://gitee.com/done-coding)
317
+ MIT © [done-coding](https://github.com/done-coding)
318
318
 
319
319
  ## 包依赖关系
320
320
 
@@ -353,5 +353,5 @@ dc-git check reverse-merge
353
353
 
354
354
  - [主 CLI 工具](https://www.npmjs.com/package/@done-coding/cli)
355
355
  - [配置工具包](https://www.npmjs.com/package/@done-coding/cli-config) - 使用本包的检测功能
356
- - [Gitee 仓库](https://gitee.com/done-coding/done-coding-cli)
356
+ - [Github 仓库](https://github.com/done-coding/done-coding-cli)
357
357
  - [更新日志](./CHANGELOG.md)
package/es/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { c as m } from "./index-d0f82826.js";
3
- import "./index-569e0691.js";
2
+ import { c as m } from "./index-277704bc.js";
3
+ import "./index-a372a4d2.js";
4
4
  import "@done-coding/cli-utils";
5
5
  import "node:fs";
6
6
  import "node:path";
package/es/helpers.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { g as s, G as n, a as i, h as m } from "./index-569e0691.js";
2
+ import { g as s, G as n, a as i, h as m } from "./index-a372a4d2.js";
3
3
  import { outputConsole as o, xPrompts as r } from "@done-coding/cli-utils";
4
4
  import "node:fs";
5
5
  import "node:path";
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
- import { c as a, i as t } from "./index-569e0691.js";
2
+ import { c as e, i as t } from "./index-a372a4d2.js";
3
3
  import { createMainCommand as s, createSubcommand as r } from "@done-coding/cli-utils";
4
4
  const {
5
5
  cliConfig: { moduleName: o }
6
- } = t, e = (n = !1) => {
6
+ } = t, a = (n = !1) => {
7
7
  const c = n ? o : void 0, m = `$0${n ? ` ${o}` : ""} <command> [options]`;
8
8
  return { command: c, usage: m };
9
9
  }, u = async () => s({
10
- ...a,
11
- ...e()
10
+ ...e,
11
+ ...a()
12
12
  }), f = () => r({
13
- ...a,
14
- ...e(!0),
13
+ ...e,
14
+ ...a(!0),
15
15
  // git 子命令不显示描述信息 即不在父命令的描述信息中显示
16
16
  describe: !1
17
17
  });
@@ -60,7 +60,7 @@ const fe = 3e4, y = Math.random(), U = {
60
60
  }
61
61
  }), T = {
62
62
  name: "@done-coding/cli-git",
63
- version: "0.6.15",
63
+ version: "0.7.0",
64
64
  description: "git跨平台操作命令行工具",
65
65
  bin: {
66
66
  "dc-git": "es/cli.mjs"
package/es/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { o as i, C as l, G as t, I as d, S as c, m as C, l as p, f, h, c as u, b as k, n as I, k as E, j as b, e as H, d as g } from "./index-569e0691.js";
3
- import { a as S } from "./index-d0f82826.js";
2
+ import { o as i, C as l, G as t, I as d, S as c, m as C, l as p, f, h, c as u, b as k, n as I, k as E, j as b, e as H, d as g } from "./index-a372a4d2.js";
3
+ import { a as S } from "./index-277704bc.js";
4
4
  import "@done-coding/cli-utils";
5
5
  import "node:fs";
6
6
  import "node:path";
@@ -17,7 +17,7 @@ export {
17
17
  f as cloneCommandCliInfo,
18
18
  h as cloneHandler,
19
19
  u as commandCliInfo,
20
- S as crateAsSubcommand,
20
+ S as createAsSubcommand,
21
21
  k as getTargetRepoUrl,
22
22
  I as handler,
23
23
  E as hooksCommandCliInfo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "done-coding-git",
3
- "version": "0.6.15",
3
+ "version": "0.7.0",
4
4
  "description": "git跨平台操作命令行工具",
5
5
  "private": false,
6
6
  "module": "es/index.mjs",
@@ -42,7 +42,7 @@
42
42
  "license": "MIT",
43
43
  "sideEffects": false,
44
44
  "devDependencies": {
45
- "@done-coding/cli-inject": "0.5.23",
45
+ "@done-coding/cli-inject": "0.6.0",
46
46
  "@types/node": "^18.0.0",
47
47
  "@types/yargs": "^17.0.28",
48
48
  "typescript": "^5.8.3",
@@ -50,13 +50,13 @@
50
50
  "vite-plugin-dts": "^3.6.0"
51
51
  },
52
52
  "dependencies": {
53
- "@done-coding/cli-utils": "0.8.4",
53
+ "@done-coding/cli-utils": "0.9.0",
54
54
  "@done-coding/request-axios": "^1.2.2",
55
55
  "axios": "^1.8.4"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=18.0.0"
59
59
  },
60
- "gitHead": "d90f437c0a716f3e62bd92a221341838710869ad",
60
+ "gitHead": "d72c025c7c59964ef0617891bec9e34df015bd47",
61
61
  "scripts": {}
62
62
  }
package/types/index.d.ts CHANGED
@@ -48,7 +48,7 @@ export declare type CloneOptions = GitParamsInfo;
48
48
  export declare const commandCliInfo: Omit<CliInfo, "usage">;
49
49
 
50
50
  /** 作为子命令创建 */
51
- export declare const crateAsSubcommand: () => CommandModule<{}, {}>;
51
+ export declare const createAsSubcommand: () => CommandModule<{}, {}>;
52
52
 
53
53
  /** 获取目标仓库地址 */
54
54
  export declare const getTargetRepoUrl: ({ platform: platformInit, username: usernameInit, }?: Partial<GitParamsInfo>) => Promise<any>;