@done-coding/cli-inject 0.4.3 → 0.4.5
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 +0 -0
- package/es/cli.mjs +1 -1
- package/es/handler-1283dc4a.js +0 -0
- package/es/{index-b1ea9d6a.js → index-eee4d71e.js} +1 -1
- package/es/index.mjs +1 -1
- package/es/use.mjs +7 -6
- package/package.json +2 -2
- package/types/cli.d.ts +0 -0
- package/types/handler.d.ts +0 -0
- package/types/index.d.ts +0 -0
- package/types/injectInfo.json.d.ts +1 -1
- package/types/main.d.ts +0 -0
- package/types/use.d.ts +1 -1
- package/types/utils/index.d.ts +0 -0
- package/types/utils/resolve.d.ts +0 -0
- package/types/utils/types.d.ts +0 -0
package/README.md
CHANGED
|
File without changes
|
package/es/cli.mjs
CHANGED
package/es/handler-1283dc4a.js
CHANGED
|
File without changes
|
package/es/index.mjs
CHANGED
package/es/use.mjs
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { h as
|
|
2
|
+
import { h as e } from "./handler-1283dc4a.js";
|
|
3
3
|
import "node:path";
|
|
4
4
|
import "node:fs";
|
|
5
5
|
import "lodash.get";
|
|
6
6
|
import "lodash.set";
|
|
7
7
|
import "chalk";
|
|
8
|
-
const
|
|
8
|
+
const d = (n = `name:cliConfig.moduleName:REG:${/@done-coding\/cli-([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)/.source}:$1`, o = [], i = [
|
|
9
9
|
"version",
|
|
10
10
|
"name",
|
|
11
11
|
"description",
|
|
12
12
|
"name:cliConfig.namespaceDir:VALUE:.done-coding",
|
|
13
|
-
n
|
|
13
|
+
n,
|
|
14
|
+
...o
|
|
14
15
|
]) => {
|
|
15
|
-
|
|
16
|
+
e({
|
|
16
17
|
sourceJsonFilePath: "./package.json",
|
|
17
|
-
injectKeyPath:
|
|
18
|
+
injectKeyPath: i,
|
|
18
19
|
injectInfoFilePath: "./src/injectInfo.json"
|
|
19
20
|
});
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
d as injectDoneCodingCliInfo
|
|
23
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@done-coding/cli-inject",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "信息注入命令行工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"prompts": "^2.4.2",
|
|
73
73
|
"yargs": "^17.7.2"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "465ac238437ab8bd3803c5e6fe8ac5a30bc445f3"
|
|
76
76
|
}
|
package/types/cli.d.ts
CHANGED
|
File without changes
|
package/types/handler.d.ts
CHANGED
|
File without changes
|
package/types/index.d.ts
CHANGED
|
File without changes
|
package/types/main.d.ts
CHANGED
|
File without changes
|
package/types/use.d.ts
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* ---
|
|
4
4
|
* 从 package.json 中注入 done-coding-cli 信息
|
|
5
5
|
*/
|
|
6
|
-
export declare const injectDoneCodingCliInfo: (moduleNameConfig?: string, injectKeyPath?: string[]) => void;
|
|
6
|
+
export declare const injectDoneCodingCliInfo: (moduleNameConfig?: string, extraKeyPath?: never[], injectKeyPath?: string[]) => void;
|
package/types/utils/index.d.ts
CHANGED
|
File without changes
|
package/types/utils/resolve.d.ts
CHANGED
|
File without changes
|
package/types/utils/types.d.ts
CHANGED
|
File without changes
|