done-coding-template 0.8.10 → 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 +2 -2
- package/es/cli.mjs +1 -1
- package/es/index.mjs +8 -8
- package/es/{main-8e07f653.js → main-d3f3fde5.js} +1 -1
- package/package.json +4 -4
- package/types/index.d.ts +1 -1
package/README.md
CHANGED
|
@@ -264,10 +264,10 @@ node es/cli.mjs --help
|
|
|
264
264
|
|
|
265
265
|
## 许可证
|
|
266
266
|
|
|
267
|
-
MIT © [
|
|
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
|
-
- [
|
|
272
|
+
- [Github 仓库](https://github.com/done-coding/done-coding-cli)
|
|
273
273
|
- [更新日志](./CHANGELOG.md)
|
package/es/cli.mjs
CHANGED
package/es/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { M as r } from "./main-
|
|
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-
|
|
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:
|
|
11
|
-
configPath:
|
|
10
|
+
rootDir: o,
|
|
11
|
+
configPath: a = r
|
|
12
12
|
}) => {
|
|
13
|
-
const
|
|
14
|
-
if (m(
|
|
15
|
-
return
|
|
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
|
|
25
|
+
b as createAsSubcommand,
|
|
26
26
|
E as getConfigPath,
|
|
27
27
|
L as handler
|
|
28
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "done-coding-template",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "预编译命令行工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@done-coding/cli-inject": "0.
|
|
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.
|
|
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": "
|
|
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
|
|
100
|
+
export declare const createAsSubcommand: () => CommandModule<{}, {}>;
|
|
101
101
|
|
|
102
102
|
/** 获取配置文件路径 */
|
|
103
103
|
export declare const getConfigPath: ({ rootDir, configPath, }: ReadConfigFileOptions) => string | undefined;
|