done-coding-git 0.6.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
package/es/helpers.mjs
CHANGED
|
@@ -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",
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
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
|
|
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:
|
|
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
|
|
398
|
-
const O = a.mergeInfo || ((
|
|
399
|
-
O && Object.entries(s).forEach(([
|
|
400
|
-
const k = c[
|
|
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(`${
|
|
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 {
|
|
3
|
-
import { a as
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
c as
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
k as
|
|
21
|
-
|
|
22
|
-
|
|
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",
|
|
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.
|
|
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",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"@done-coding/request-axios": "^1.1.1",
|
|
58
58
|
"axios": "^1.8.4"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "62a4c9df2bf8690e52753e0734ebb09010bb2e88",
|
|
61
61
|
"scripts": {}
|
|
62
62
|
}
|
package/types/index.d.ts
CHANGED