done-coding-extract 0.1.12-alpha.0 → 0.1.13

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,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as m } from "./index-94e9946e.js";
2
+ import { c as m } from "./index-b55036fb.js";
3
3
  import "./index-a1ee6691-8c73eb4d.js";
4
4
  import "@done-coding/cli-utils";
5
5
  import "node:path";
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import { a as r, e as V, E as u, S as D, G as S } from "./index-a1ee6691-8c73eb4d.js";
3
- import { log as s, _get as J, createSubcommand as N, getRootScriptName as v, getConfigFileCommonOptions as h, initHandlerCommon as F, readConfigFile as x, _set as U, createMainCommand as W } from "@done-coding/cli-utils";
2
+ import { a as r, e as V, E as u, S as h, G as S } from "./index-a1ee6691-8c73eb4d.js";
3
+ import { log as s, _get as J, createSubcommand as N, getRootScriptName as v, getConfigFileCommonOptions as j, initHandlerCommon as F, readConfigFile as x, _set as U, createMainCommand as W } from "@done-coding/cli-utils";
4
4
  import $ from "node:path";
5
5
  import y from "node:fs";
6
6
  import { OutputModeEnum as H, batchCompileHandler as X } from "@done-coding/cli-template";
7
- const j = {
7
+ const D = {
8
8
  name: "@done-coding/cli-extract",
9
- version: "0.1.12-alpha.0",
9
+ version: "0.1.13",
10
10
  description: "信息提取命令行工具",
11
11
  bin: {
12
12
  "dc-extract": "es/cli.mjs"
@@ -17,7 +17,7 @@ const j = {
17
17
  }
18
18
  }, {
19
19
  cliConfig: { namespaceDir: K, moduleName: q }
20
- } = j, z = `./${K}/${q}`, A = `${z}.json5`, C = ({
20
+ } = D, z = `./${K}/${q}`, A = `${z}.json5`, C = ({
21
21
  sourceJson: e,
22
22
  targetKey: n,
23
23
  keyConfig: o
@@ -50,7 +50,7 @@ const j = {
50
50
  }
51
51
  }, R = {
52
52
  name: "@done-coding/cli-inject",
53
- version: "0.5.12-alpha.0",
53
+ version: "0.5.13",
54
54
  description: "信息(JSON)注入命令行工具",
55
55
  bin: {
56
56
  "dc-inject": "es/cli.mjs"
@@ -78,7 +78,7 @@ const j = {
78
78
  }
79
79
  },
80
80
  injectFilePath: "./src/injectInfo.json"
81
- }, O = Z, ee = () => h({
81
+ }, O = Z, ee = () => j({
82
82
  configPathDefault: T
83
83
  }), ne = async (e) => F(O, e, {
84
84
  onFileGenerated: () => {
@@ -90,7 +90,7 @@ const j = {
90
90
  options: ee(),
91
91
  handler: ne
92
92
  }, oe = () => ({
93
- ...h({
93
+ ...j({
94
94
  configPathDefault: T
95
95
  })
96
96
  }), se = async ({
@@ -237,19 +237,19 @@ const ue = ({
237
237
  }
238
238
  ]
239
239
  }
240
- }, le = () => h({
240
+ }, le = () => j({
241
241
  configPathDefault: A
242
242
  }), G = async (e) => F(k, e, {
243
243
  onFileGenerated: () => {
244
244
  s.info("文件生成成功");
245
245
  }
246
246
  }), fe = {
247
- command: D.INIT,
247
+ command: h.INIT,
248
248
  describe: "初始化配置文件",
249
249
  options: le(),
250
250
  handler: G
251
251
  }, ge = () => ({
252
- ...h({
252
+ ...j({
253
253
  configPathDefault: A
254
254
  }),
255
255
  mode: {
@@ -303,24 +303,24 @@ const ue = ({
303
303
  handler: I
304
304
  }, Re = async (e, n) => {
305
305
  switch (e) {
306
- case D.INIT:
306
+ case h.INIT:
307
307
  return G(n);
308
- case D.GENERATE:
308
+ case h.GENERATE:
309
309
  return I(n);
310
310
  default:
311
311
  return I(n);
312
312
  }
313
- }, { version: Ce, description: he } = j, _ = {
314
- describe: he,
313
+ }, { version: Ce, description: je } = D, _ = {
314
+ describe: je,
315
315
  version: Ce,
316
316
  subcommands: [fe, Ee].map(
317
317
  N
318
318
  ),
319
319
  demandCommandCount: 1,
320
- rootScriptName: v({ packageJson: j })
320
+ rootScriptName: v({ packageJson: D })
321
321
  }, {
322
322
  cliConfig: { moduleName: w }
323
- } = j, P = (e = !1) => {
323
+ } = D, P = (e = !1) => {
324
324
  const n = e ? w : void 0, o = `$0${e ? ` ${w}` : ""} <command> [options]`;
325
325
  return { command: n, usage: o };
326
326
  }, Oe = async () => W({
package/es/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as t, a as i, e as s, g as d, d as l, f as p, b as f, h as u } from "./index-94e9946e.js";
2
+ import { i as t, a as i, e as s, g as d, d as l, f as p, b as f, h as u } from "./index-b55036fb.js";
3
3
  import { E as C, G as E, S as b } from "./index-a1ee6691-8c73eb4d.js";
4
4
  import "@done-coding/cli-utils";
5
5
  import "node:path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "done-coding-extract",
3
- "version": "0.1.12-alpha.0",
3
+ "version": "0.1.13",
4
4
  "description": "信息提取命令行工具",
5
5
  "private": false,
6
6
  "module": "es/index.mjs",
@@ -42,7 +42,7 @@
42
42
  "license": "MIT",
43
43
  "sideEffects": false,
44
44
  "devDependencies": {
45
- "@done-coding/cli-inject": "^0.5.12-alpha.0",
45
+ "@done-coding/cli-inject": "^0.5.13",
46
46
  "@types/node": "^18.0.0",
47
47
  "@types/yargs": "^17.0.28",
48
48
  "rimraf": "^6.0.1",
@@ -54,9 +54,9 @@
54
54
  "node": ">=18.0.0"
55
55
  },
56
56
  "dependencies": {
57
- "@done-coding/cli-template": "0.7.12-alpha.0",
58
- "@done-coding/cli-utils": "^0.7.3-alpha.0"
57
+ "@done-coding/cli-template": "0.8.0",
58
+ "@done-coding/cli-utils": "^0.7.4"
59
59
  },
60
- "gitHead": "9d9a2e60f255038a0f065e3a4e6d6d35488408ae",
60
+ "gitHead": "9b52d0d18f2b0f7e0498a8ef4dbd4a4c5fcd1ddf",
61
61
  "scripts": {}
62
62
  }