done-coding-git 0.6.0-alpha.0 → 0.6.1-alpha.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/es/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { c as m } from "./index-e4d57495.js";
3
- import "./index-3e825e0e.js";
2
+ import { c as m } from "./index-57341be9.js";
3
+ import "./index-be60e089.js";
4
4
  import "@done-coding/cli-utils";
5
5
  import "node:child_process";
6
6
  import "node:fs";
package/es/helpers.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { g as s, G as n, a, h as m } from "./index-3e825e0e.js";
2
+ import { g as s, G as n, a, h as m } from "./index-be60e089.js";
3
3
  import { xPrompts as e } from "@done-coding/cli-utils";
4
4
  import "node:child_process";
5
5
  import "node:fs";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as a, i as t } from "./index-3e825e0e.js";
2
+ import { c as a, i as t } from "./index-be60e089.js";
3
3
  import { createMainCommand as r, createSubcommand as s } from "@done-coding/cli-utils";
4
4
  const {
5
5
  cliConfig: { moduleName: o }
@@ -61,7 +61,7 @@ const me = 3e4, w = Math.random(), L = {
61
61
  }
62
62
  }), A = {
63
63
  name: "@done-coding/cli-git",
64
- version: "0.6.0-alpha.0",
64
+ version: "0.6.1-alpha.0",
65
65
  description: "git跨平台操作命令行工具",
66
66
  cliConfig: {
67
67
  namespaceDir: ".done-coding",
@@ -247,7 +247,7 @@ const me = 3e4, w = Math.random(), L = {
247
247
  }
248
248
  }
249
249
  }
250
- }, Pe = () => ({
250
+ }, Se = () => ({
251
251
  ...I({
252
252
  configPathDefault: T
253
253
  }),
@@ -257,7 +257,7 @@ const me = 3e4, w = Math.random(), L = {
257
257
  choices: [d.DEFAULT, d.CLONE_CONFIG],
258
258
  default: d.DEFAULT
259
259
  }
260
- }), Se = (e) => {
260
+ }), Pe = (e) => {
261
261
  B(`npm pkg set scripts.postprepare="${e} init"`);
262
262
  }, j = async (e) => {
263
263
  const { type: t } = e;
@@ -268,7 +268,7 @@ const me = 3e4, w = Math.random(), L = {
268
268
  hookNames: _e,
269
269
  rootDir: s,
270
270
  getCode: (n) => `npx ${c} hooks ${n} "$@"`
271
- }), await Se(c), te(Ge, e, {
271
+ }), await Pe(c), te(Ge, e, {
272
272
  onFileGenerated: (n) => {
273
273
  i.info(`文件生成成功: ${n}`);
274
274
  }
@@ -289,7 +289,7 @@ const me = 3e4, w = Math.random(), L = {
289
289
  }, ke = {
290
290
  command: p.INIT,
291
291
  describe: "初始化配置文件",
292
- options: Pe(),
292
+ options: Se(),
293
293
  handler: j
294
294
  }, be = () => ({
295
295
  projectName: {
@@ -394,12 +394,12 @@ const me = 3e4, w = Math.random(), L = {
394
394
  {}
395
395
  );
396
396
  o.forEach((a, f) => {
397
- var P;
398
- const O = a.mergeInfo || ((P = l[a.hash]) == null ? void 0 : P.mergeInfo);
399
- O && Object.entries(s).forEach(([S]) => {
400
- const k = c[S];
397
+ var S;
398
+ const O = a.mergeInfo || ((S = l[a.hash]) == null ? void 0 : S.mergeInfo);
399
+ O && Object.entries(s).forEach(([P]) => {
400
+ const k = c[P];
401
401
  if (f > k) {
402
- i.skip(`${S} 只检测${k + 1}条, 超出不再检测`);
402
+ i.skip(`${P} 只检测${k + 1}条, 超出不再检测`);
403
403
  return;
404
404
  }
405
405
  const z = G({
@@ -585,7 +585,10 @@ const me = 3e4, w = Math.random(), L = {
585
585
  demandCommandCount: 1
586
586
  };
587
587
  export {
588
+ C,
588
589
  E as G,
590
+ d as I,
591
+ p as S,
589
592
  K as a,
590
593
  $e as b,
591
594
  Ze as c,
@@ -599,5 +602,6 @@ export {
599
602
  ve as k,
600
603
  q as l,
601
604
  Fe as m,
602
- Ye as n
605
+ Ye as n,
606
+ u as o
603
607
  };
package/es/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { m as l, l as d, f as t, h as c, c as p, b as C, n as f, k as h, j as k, e as I, d as H } from "./index-3e825e0e.js";
3
- import { a as g } from "./index-e4d57495.js";
2
+ import { o as t, C as l, G as d, I as c, S as C, m as p, l as f, f as h, h as u, c as k, b as I, n as E, k as b, j as H, e as g, d as y } from "./index-be60e089.js";
3
+ import { a as T } from "./index-57341be9.js";
4
4
  import "@done-coding/cli-utils";
5
5
  import "node:child_process";
6
6
  import "node:fs";
@@ -8,16 +8,21 @@ import "node:path";
8
8
  import "@done-coding/request-axios";
9
9
  import "axios";
10
10
  export {
11
- l as checkCommandCliInfo,
12
- d as checkHandler,
13
- t as cloneCommandCliInfo,
14
- c as cloneHandler,
15
- p as commandCliInfo,
16
- g as crateAsSubcommand,
17
- C as getTargetRepoUrl,
18
- f as handler,
19
- h as hooksCommandCliInfo,
20
- k as hooksHandler,
21
- I as initCommandCliInfo,
22
- H as initHandler
11
+ t as CheckReverseMergeWayEnum,
12
+ l as CheckTypeEnum,
13
+ d as GitPlatformEnum,
14
+ c as InitTypeEnum,
15
+ C as SubcommandEnum,
16
+ p as checkCommandCliInfo,
17
+ f as checkHandler,
18
+ h as cloneCommandCliInfo,
19
+ u as cloneHandler,
20
+ k as commandCliInfo,
21
+ T as crateAsSubcommand,
22
+ I as getTargetRepoUrl,
23
+ E as handler,
24
+ b as hooksCommandCliInfo,
25
+ H as hooksHandler,
26
+ g as initCommandCliInfo,
27
+ y as initHandler
23
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "done-coding-git",
3
- "version": "0.6.0-alpha.0",
3
+ "version": "0.6.1-alpha.0",
4
4
  "description": "git跨平台操作命令行工具",
5
5
  "private": false,
6
6
  "module": "es/index.mjs",
@@ -41,7 +41,7 @@
41
41
  "license": "MIT",
42
42
  "sideEffects": false,
43
43
  "devDependencies": {
44
- "@done-coding/cli-inject": "^0.5.8-alpha.1",
44
+ "@done-coding/cli-inject": "^0.5.9-alpha.0",
45
45
  "@types/node": "^18.0.0",
46
46
  "@types/yargs": "^17.0.28",
47
47
  "rimraf": "^6.0.1",
@@ -53,10 +53,10 @@
53
53
  "node": ">=18.0.0"
54
54
  },
55
55
  "dependencies": {
56
- "@done-coding/cli-utils": "^0.7.0-alpha.0",
56
+ "@done-coding/cli-utils": "^0.7.0",
57
57
  "@done-coding/request-axios": "^1.1.1",
58
58
  "axios": "^1.8.4"
59
59
  },
60
- "gitHead": "ff1616738586a268b50f46dce762774fa5fa6d52",
60
+ "gitHead": "62a4c9df2bf8690e52753e0734ebb09010bb2e88",
61
61
  "scripts": {}
62
62
  }
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './handlers';
2
2
  export { crateAsSubcommand } from "./main";
3
+ export * from './types';
3
4
  export { getTargetRepoUrl } from "./utils";
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "@done-coding/cli-git",
3
- "version": "0.6.0-alpha.0",
3
+ "version": "0.6.1-alpha.0",
4
4
  "description": "git跨平台操作命令行工具",
5
5
  "cliConfig": {
6
6
  "namespaceDir": ".done-coding",