done-coding-template 0.8.9 → 0.9.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/README.md CHANGED
@@ -243,7 +243,7 @@ dc-template --help
243
243
 
244
244
  ```bash
245
245
  # 克隆仓库
246
- git clone https://gitee.com/done-coding/done-coding-cli.git
246
+ git clone https://github.com/done-coding/done-coding-cli.git
247
247
  cd done-coding-cli/packages/template
248
248
 
249
249
  # 安装依赖
@@ -264,10 +264,10 @@ node es/cli.mjs --help
264
264
 
265
265
  ## 许可证
266
266
 
267
- MIT © [JustSoSu](https://gitee.com/done-coding)
267
+ MIT © [done-coding](https://github.com/done-coding)
268
268
 
269
269
  ## 相关链接
270
270
 
271
271
  - [主 CLI 工具](https://www.npmjs.com/package/@done-coding/cli)
272
- - [Gitee 仓库](https://gitee.com/done-coding/done-coding-cli)
272
+ - [Github 仓库](https://github.com/done-coding/done-coding-cli)
273
273
  - [更新日志](./CHANGELOG.md)
package/es/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { e as m } from "./main-40d8112f.js";
2
+ import { e as m } from "./main-d3f3fde5.js";
3
3
  import "node:path";
4
4
  import "node:fs";
5
5
  import "@done-coding/cli-utils";
package/es/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
- import { M as r } from "./main-40d8112f.js";
3
- import { d as f, O as T, S as _, T as h, b as A, a as O, c as b, h as L } from "./main-40d8112f.js";
2
+ import { M as r } from "./main-d3f3fde5.js";
3
+ import { d as f, O as T, S as _, T as h, b as A, a as O, c as b, h as L } from "./main-d3f3fde5.js";
4
4
  import t from "node:path";
5
5
  import { existsSync as m } from "node:fs";
6
6
  import "@done-coding/cli-utils";
7
7
  import "lodash.template";
8
8
  import "lodash.assign";
9
9
  const E = ({
10
- rootDir: a,
11
- configPath: e = r
10
+ rootDir: o,
11
+ configPath: a = r
12
12
  }) => {
13
- const o = t.resolve(a, e);
14
- if (m(o))
15
- return o;
13
+ const e = t.resolve(o, a);
14
+ if (m(e))
15
+ return e;
16
16
  };
17
17
  export {
18
18
  f as MODULE_CONFIG_RELATIVE_PATH,
@@ -22,7 +22,7 @@ export {
22
22
  h as TemplateBindKeyEnum,
23
23
  A as batchCompileHandler,
24
24
  O as compileHandler,
25
- b as crateAsSubcommand,
25
+ b as createAsSubcommand,
26
26
  E as getConfigPath,
27
27
  L as handler
28
28
  };
@@ -6,7 +6,7 @@ import L from "lodash.template";
6
6
  import q from "lodash.assign";
7
7
  const h = {
8
8
  name: "@done-coding/cli-template",
9
- version: "0.8.9",
9
+ version: "0.9.0",
10
10
  description: "预编译命令行工具",
11
11
  bin: {
12
12
  "dc-template": "es/cli.mjs"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "done-coding-template",
3
- "version": "0.8.9",
3
+ "version": "0.9.0",
4
4
  "description": "预编译命令行工具",
5
5
  "private": false,
6
6
  "module": "es/index.mjs",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "repository": {
22
22
  "type": "git",
23
- "url": "https://gitee.com/done-coding/done-coding-cli.git",
23
+ "url": "https://github.com/done-coding/done-coding-cli.git",
24
24
  "directory": "packages/template"
25
25
  },
26
26
  "publishConfig": {
@@ -31,7 +31,7 @@
31
31
  "license": "MIT",
32
32
  "sideEffects": false,
33
33
  "devDependencies": {
34
- "@done-coding/cli-inject": "0.5.22",
34
+ "@done-coding/cli-inject": "0.6.0",
35
35
  "@types/lodash.assign": "^4.2.9",
36
36
  "@types/lodash.template": "^4.5.3",
37
37
  "@types/node": "^18.0.0",
@@ -41,13 +41,13 @@
41
41
  "vite-plugin-dts": "^3.6.0"
42
42
  },
43
43
  "dependencies": {
44
- "@done-coding/cli-utils": "0.8.3",
44
+ "@done-coding/cli-utils": "0.9.0",
45
45
  "lodash.assign": "^4.2.0",
46
46
  "lodash.template": "^4.5.0"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=18.0.0"
50
50
  },
51
- "gitHead": "4893b466954ef5925151d8dfc8fc8aa558ce654c",
51
+ "gitHead": "d72c025c7c59964ef0617891bec9e34df015bd47",
52
52
  "scripts": {}
53
53
  }
package/types/index.d.ts CHANGED
@@ -97,7 +97,7 @@ export declare interface CompileTemplateConfigListItemRaw {
97
97
  }
98
98
 
99
99
  /** 作为子命令创建 */
100
- export declare const crateAsSubcommand: () => CommandModule<{}, {}>;
100
+ export declare const createAsSubcommand: () => CommandModule<{}, {}>;
101
101
 
102
102
  /** 获取配置文件路径 */
103
103
  export declare const getConfigPath: ({ rootDir, configPath, }: ReadConfigFileOptions) => string | undefined;