done-coding-component 0.3.8 → 0.3.9-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
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as m } from "./index-31f805ac.js";
2
+ import { c as m } from "./index-884a7a3f.js";
3
3
  import "node:path";
4
4
  import "node:fs";
5
5
  import "lodash.upperfirst";
@@ -2,12 +2,12 @@
2
2
  import u from "node:path";
3
3
  import p from "node:fs";
4
4
  import x from "lodash.upperfirst";
5
- import y from "lodash.camelcase";
6
- import $ from "lodash.kebabcase";
5
+ import h from "lodash.camelcase";
6
+ import y from "lodash.kebabcase";
7
7
  import A from "lodash.lowerfirst";
8
8
  import f from "lodash.template";
9
9
  import { log as m, json5 as L, chalk as g, xPrompts as w, _curry as b, createSubcommand as M, createMainCommand as F } from "@done-coding/cli-utils";
10
- import { OutputModeEnum as h, compileHandler as O } from "@done-coding/cli-template";
10
+ import { OutputModeEnum as $, compileHandler as O } from "@done-coding/cli-template";
11
11
  var a = /* @__PURE__ */ ((e) => (e.ADD = "add", e.REMOVE = "remove", e.LIST = "list", e))(a || {});
12
12
  const T = (e, t) => {
13
13
  if (!/^[a-zA-Z]+[a-zA-Z0-9-]*$/.test(e))
@@ -17,7 +17,7 @@ const T = (e, t) => {
17
17
  保留名称: ${n.join(",")}`), process.exit(1)) : !0;
18
18
  }, N = {
19
19
  name: "@done-coding/cli-component",
20
- version: "0.3.8",
20
+ version: "0.3.9-alpha.0",
21
21
  description: "组件命令行工具",
22
22
  cliConfig: {
23
23
  namespaceDir: ".done-coding",
@@ -27,7 +27,7 @@ const T = (e, t) => {
27
27
  execDir: process.cwd(),
28
28
  templateDir: I()
29
29
  }), D = (e) => {
30
- const { series: t, name: n } = e, o = x(y(n)), i = A(o), s = $(o), c = t ? x(y(t)) : "", l = c ? `${c}${o}` : "", r = $(l);
30
+ const { series: t, name: n } = e, o = x(h(n)), i = A(o), s = y(o), c = t ? x(h(t)) : "", l = c ? `${c}${o}` : "", r = y(l);
31
31
  return {
32
32
  series: c,
33
33
  name: o,
@@ -96,7 +96,7 @@ const T = (e, t) => {
96
96
  const d = {
97
97
  ...c,
98
98
  envData: s,
99
- mode: h.APPEND,
99
+ mode: $.APPEND,
100
100
  rollback: n === a.REMOVE,
101
101
  /** 回滚时可以删除空文件 */
102
102
  rollbackDelNullFile: !0,
@@ -112,7 +112,7 @@ const T = (e, t) => {
112
112
  const d = {
113
113
  ...l,
114
114
  envData: s,
115
- mode: h.OVERWRITE,
115
+ mode: $.OVERWRITE,
116
116
  rollback: n === a.REMOVE,
117
117
  dealMarkdown: !0,
118
118
  batch: !1,
package/es/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as b, h as c } from "./index-31f805ac.js";
2
+ import { a as b, h as c } from "./index-884a7a3f.js";
3
3
  import "node:path";
4
4
  import "node:fs";
5
5
  import "lodash.upperfirst";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "done-coding-component",
3
- "version": "0.3.8",
3
+ "version": "0.3.9-alpha.0",
4
4
  "description": "组件命令行工具",
5
5
  "private": false,
6
6
  "module": "es/index.mjs",
@@ -30,7 +30,7 @@
30
30
  "license": "MIT",
31
31
  "sideEffects": false,
32
32
  "devDependencies": {
33
- "@done-coding/cli-inject": "^0.5.8",
33
+ "@done-coding/cli-inject": "^0.5.9-alpha.0",
34
34
  "@types/lodash.camelcase": "^4.3.8",
35
35
  "@types/lodash.kebabcase": "^4.1.8",
36
36
  "@types/lodash.lowerfirst": "^4.3.8",
@@ -47,7 +47,7 @@
47
47
  "node": ">=18.0.0"
48
48
  },
49
49
  "dependencies": {
50
- "@done-coding/cli-template": "^0.7.8",
50
+ "@done-coding/cli-template": "^0.7.9-alpha.0",
51
51
  "@done-coding/cli-utils": "^0.7.0",
52
52
  "lodash.camelcase": "^4.3.0",
53
53
  "lodash.kebabcase": "^4.1.1",
@@ -55,6 +55,6 @@
55
55
  "lodash.template": "^4.5.0",
56
56
  "lodash.upperfirst": "^4.3.1"
57
57
  },
58
- "gitHead": "b4fb4f2380a14f72597a1dbfd1bbce22287ef02f",
58
+ "gitHead": "62a4c9df2bf8690e52753e0734ebb09010bb2e88",
59
59
  "scripts": {}
60
60
  }
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "@done-coding/cli-component",
3
- "version": "0.3.8",
3
+ "version": "0.3.9-alpha.0",
4
4
  "description": "组件命令行工具",
5
5
  "cliConfig": {
6
6
  "namespaceDir": ".done-coding",