create-done-coding 0.11.20 → 0.11.21
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 +1 -1
- package/es/{index-08dbe693.js → index-20b1695c.js} +8 -7
- package/es/index.mjs +1 -1
- package/package.json +6 -6
package/es/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { readCliModuleAssetsConfig as Ao, log as b, HooksNameEnum as v, createSubcommand as Ct, getRootScriptName as Kn, xPrompts as w, getConfigFileCommonOptions as At, addHuskyHooks as $o, initHandlerCommon as No, readConfigFile as ye, lookForParentTarget as Wn, decryptAES as Po, encryptAES as jo, getCurrentBranchName as Uo, getCommitByHookName as xo, resolveMergeInfoByGitReflogAction as Io, checkCurrentIsRebasing as Mo, resolveMergeInfoByCommitMsg as Bo, getCurrentBranchLastCommitList as Lo, getLastReflogList as Fo, isHttpGitUrl as Do, http2sshGitUrl as ko, createMainCommand as Ho } from "@done-coding/cli-utils";
|
|
3
3
|
import { execSync as k } from "node:child_process";
|
|
4
4
|
import Et, { existsSync as an, rmSync as Ue } from "node:fs";
|
|
5
5
|
import _e, { resolve as Go } from "node:path";
|
|
@@ -7,7 +7,7 @@ import { getConfigPath as qo, batchCompileHandler as Ko, MODULE_DEFAULT_CONFIG_R
|
|
|
7
7
|
import { getTargetRepoUrl as Jo } from "@done-coding/cli-git";
|
|
8
8
|
const Jn = "自定义模版路径", zn = "某个git平台用户仓库", ie = {
|
|
9
9
|
name: "create-done-coding",
|
|
10
|
-
version: "0.11.
|
|
10
|
+
version: "0.11.21",
|
|
11
11
|
description: "项目创建命令行工具",
|
|
12
12
|
bin: "es/cli.mjs",
|
|
13
13
|
cliConfig: {
|
|
@@ -19,9 +19,9 @@ let lt;
|
|
|
19
19
|
var D = /* @__PURE__ */ ((e) => (e.PROJECT_NAME = "projectName", e.TEMPLATE = "template", e.IS_SAVE_GIT_HISTORY = "saveGitHistory", e.IS_TRANS_HTTP_URL_TO_SSH_URL = "isTransToSshUrl", e.IS_REMOVE_SAME_NAME_DIR = "isRemove", e.IS_SHALLOW_CLONE = "shallowClone", e.CUSTOM_GIT_URL_INPUT = "customUrl", e.GIT_COMMIT_MESSAGE = "gitCommitMessage", e))(D || {});
|
|
20
20
|
const zo = async () => (lt || (lt = (await Ao({
|
|
21
21
|
moduleName: ie.cliConfig.moduleName,
|
|
22
|
-
onSuccess({ config: t,
|
|
22
|
+
onSuccess({ config: t, moduleEntryFileRelativePath: n, repoUrl: r }) {
|
|
23
23
|
if (!Array.isArray(t.templateList)) {
|
|
24
|
-
const o =
|
|
24
|
+
const o = `配置文件出错, templateList 不是数组, 请检查 ${r} ${n}`;
|
|
25
25
|
throw new Error(o);
|
|
26
26
|
}
|
|
27
27
|
b.success("模板列表拉取成功!");
|
|
@@ -507,11 +507,12 @@ const P = ({
|
|
|
507
507
|
);
|
|
508
508
|
try {
|
|
509
509
|
const a = t(e), u = n(e);
|
|
510
|
-
if (s ? s(a) : o.includes(a)) {
|
|
510
|
+
if (s ? s(a, e) : o.includes(a)) {
|
|
511
511
|
const f = {
|
|
512
512
|
code: a,
|
|
513
513
|
data: r(e),
|
|
514
|
-
message: u
|
|
514
|
+
message: u,
|
|
515
|
+
_raw: e
|
|
515
516
|
};
|
|
516
517
|
return i && P(
|
|
517
518
|
{
|
|
@@ -3581,7 +3582,7 @@ const rp = 3e4, Gn = Math.random(), yo = {
|
|
|
3581
3582
|
}
|
|
3582
3583
|
}), en = {
|
|
3583
3584
|
name: "@done-coding/cli-git",
|
|
3584
|
-
version: "0.6.
|
|
3585
|
+
version: "0.6.11",
|
|
3585
3586
|
description: "git跨平台操作命令行工具",
|
|
3586
3587
|
bin: {
|
|
3587
3588
|
"dc-git": "es/cli.mjs"
|
package/es/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { G as s, S as d, e as p, a as c, b as l, h as u, d as b } from "./index-
|
|
2
|
+
import { G as s, S as d, e as p, a as c, b as l, h as u, d as b } from "./index-20b1695c.js";
|
|
3
3
|
import "@done-coding/cli-utils";
|
|
4
4
|
import "node:child_process";
|
|
5
5
|
import "node:fs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-done-coding",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.21",
|
|
4
4
|
"description": "项目创建命令行工具",
|
|
5
5
|
"module": "es/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"node": ">=18.0.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@done-coding/cli-git": "0.6.
|
|
53
|
-
"@done-coding/cli-inject": "0.5.
|
|
54
|
-
"@done-coding/cli-template": "0.8.
|
|
55
|
-
"@done-coding/cli-utils": "0.
|
|
52
|
+
"@done-coding/cli-git": "0.6.11",
|
|
53
|
+
"@done-coding/cli-inject": "0.5.19",
|
|
54
|
+
"@done-coding/cli-template": "0.8.6",
|
|
55
|
+
"@done-coding/cli-utils": "0.8.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "e68f726aa899f75c4d294b11620f343c953a74c3"
|
|
58
58
|
}
|