@done-coding/cli-publish 0.7.15-alpha.0 → 0.7.15-alpha.2
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 -2
- package/es/{index-0faa67e2.js → index-8d7488e5.js} +8 -9
- package/es/index.mjs +6 -7
- package/package.json +4 -4
package/es/cli.mjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { getConfigFileCommonOptions as O, initHandlerCommon as F, outputConsole as m, readConfigFile as H, getPackageJson as $, applyUseTempDir as U, getCliModuleTempDir as G, getGitLastCommitInfo as W, pushGitPublishInfoToRemote as X, xPrompts as L, createSubcommand as y, getRootScriptName as V, createMainCommand as q } from "@done-coding/cli-utils";
|
|
2
|
+
import { getConfigFileCommonOptions as O, initHandlerCommon as F, outputConsole as m, readConfigFile as H, getPackageJson as $, applyUseTempDir as U, getCliModuleTempDir as G, execSyncHijack as l, getGitLastCommitInfo as W, pushGitPublishInfoToRemote as X, xPrompts as L, createSubcommand as y, getRootScriptName as V, createMainCommand as q } from "@done-coding/cli-utils";
|
|
3
3
|
import { inc as N } from "semver";
|
|
4
4
|
import z from "node:path";
|
|
5
5
|
import S, { rmSync as K } from "node:fs";
|
|
6
|
-
import { execSync as l } from "node:child_process";
|
|
7
6
|
var I = /* @__PURE__ */ ((e) => (e.INIT = "init", e.EXEC = "exec", e.ALIAS = "alias", e))(I || {}), r = /* @__PURE__ */ ((e) => (e.MAJOR = "major", e.MINOR = "minor", e.PATCH = "patch", e.PREMAJOR = "premajor", e.PREMINOR = "preminor", e.PREPATCH = "prepatch", e.PRERELEASE = "prerelease", e.CUSTOM_VERSION = "custom version", e))(r || {}), f = /* @__PURE__ */ ((e) => (e.LATEST = "latest", e.NEXT = "next", e.ALPHA = "alpha", e.BETA = "beta", e.RC = "rc", e))(f || {}), c = /* @__PURE__ */ ((e) => (e.NPM = "npm", e.WEB = "web", e))(c || {});
|
|
8
7
|
const R = {
|
|
9
8
|
name: "@done-coding/cli-publish",
|
|
10
|
-
version: "0.7.15-alpha.
|
|
9
|
+
version: "0.7.15-alpha.2",
|
|
11
10
|
description: "项目发布命令行工具",
|
|
12
11
|
bin: {
|
|
13
12
|
"dc-publish": "es/cli.mjs"
|
|
@@ -277,7 +276,7 @@ const R = {
|
|
|
277
276
|
describe: "执行发布命令",
|
|
278
277
|
options: re(),
|
|
279
278
|
handler: x
|
|
280
|
-
},
|
|
279
|
+
}, ue = async (e, t) => {
|
|
281
280
|
switch (e) {
|
|
282
281
|
case I.INIT:
|
|
283
282
|
return k(t);
|
|
@@ -303,19 +302,19 @@ const R = {
|
|
|
303
302
|
} = R, _ = (e = !1) => {
|
|
304
303
|
const t = e ? b : void 0, o = `$0${e ? ` ${b}` : ""} [options]`;
|
|
305
304
|
return { command: t, usage: o };
|
|
306
|
-
},
|
|
305
|
+
}, ge = async () => q({
|
|
307
306
|
...D,
|
|
308
307
|
..._()
|
|
309
|
-
}),
|
|
308
|
+
}), Ie = () => y({
|
|
310
309
|
...D,
|
|
311
310
|
..._(!0)
|
|
312
311
|
});
|
|
313
312
|
export {
|
|
314
313
|
r as P,
|
|
315
314
|
I as S,
|
|
316
|
-
|
|
315
|
+
Ie as a,
|
|
317
316
|
f as b,
|
|
318
|
-
|
|
317
|
+
ge as c,
|
|
319
318
|
c as d,
|
|
320
|
-
|
|
319
|
+
ue as h
|
|
321
320
|
};
|
package/es/index.mjs
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { d as u, b as
|
|
2
|
+
import { d as u, b as i, P as e, S as b, a as d, h as p } from "./index-8d7488e5.js";
|
|
3
3
|
import "@done-coding/cli-utils";
|
|
4
4
|
import "semver";
|
|
5
5
|
import "node:path";
|
|
6
6
|
import "node:fs";
|
|
7
|
-
import "node:child_process";
|
|
8
7
|
export {
|
|
9
8
|
u as PublishModeEnum,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
i as PublishTagEnum,
|
|
10
|
+
e as PublishVersionTypeEnum,
|
|
11
|
+
b as SubcommandEnum,
|
|
12
|
+
d as crateAsSubcommand,
|
|
13
|
+
p as handler
|
|
15
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@done-coding/cli-publish",
|
|
3
|
-
"version": "0.7.15-alpha.
|
|
3
|
+
"version": "0.7.15-alpha.2",
|
|
4
4
|
"description": "项目发布命令行工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@done-coding/cli-inject": "0.5.22-alpha.
|
|
41
|
+
"@done-coding/cli-inject": "0.5.22-alpha.2",
|
|
42
42
|
"@types/node": "^18.0.0",
|
|
43
43
|
"@types/semver": "^7.5.3",
|
|
44
44
|
"@types/yargs": "^17.0.28",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"vite-plugin-dts": "^3.6.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@done-coding/cli-utils": "0.8.3-alpha.
|
|
50
|
+
"@done-coding/cli-utils": "0.8.3-alpha.2",
|
|
51
51
|
"semver": "^7.5.4"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=18.0.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "57548a940adaa810d2d0c870df54d5013a86bfed"
|
|
57
57
|
}
|