@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 CHANGED
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { c as m } from "./index-0faa67e2.js";
2
+ import { c as m } 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
  m();
@@ -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.0",
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
- }, ge = async (e, t) => {
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
- }, Ie = async () => q({
305
+ }, ge = async () => q({
307
306
  ...D,
308
307
  ..._()
309
- }), Ae = () => y({
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
- Ae as a,
315
+ Ie as a,
317
316
  f as b,
318
- Ie as c,
317
+ ge as c,
319
318
  c as d,
320
- ge as h
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 e, P as b, S as p, a as t, h as d } from "./index-0faa67e2.js";
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
- e as PublishTagEnum,
11
- b as PublishVersionTypeEnum,
12
- p as SubcommandEnum,
13
- t as crateAsSubcommand,
14
- d as handler
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.0",
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.0",
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.0",
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": "906b7683d9e4dc75fb07806b12e5507827122a16"
56
+ "gitHead": "57548a940adaa810d2d0c870df54d5013a86bfed"
57
57
  }