@done-coding/cli-inject 0.4.4 → 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/es/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as r } from "./index-f6d42082.js";
2
+ import { c as r } from "./index-eee4d71e.js";
3
3
  import "./handler-1283dc4a.js";
4
4
  import "node:path";
5
5
  import "node:fs";
@@ -4,7 +4,7 @@ import r from "yargs";
4
4
  import { hideBin as l } from "yargs/helpers";
5
5
  import s from "chalk";
6
6
  const o = {
7
- version: "0.4.4",
7
+ version: "0.4.5",
8
8
  name: "@done-coding/cli-inject",
9
9
  description: "信息注入命令行工具",
10
10
  cliConfig: {
package/es/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { h as d } from "./handler-1283dc4a.js";
3
- import { a as f } from "./index-f6d42082.js";
3
+ import { a as f } from "./index-eee4d71e.js";
4
4
  import "node:path";
5
5
  import "node:fs";
6
6
  import "lodash.get";
package/es/use.mjs CHANGED
@@ -1,23 +1,24 @@
1
1
  #!/usr/bin/env node
2
- import { h as i } from "./handler-1283dc4a.js";
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 p = (n = `name:cliConfig.moduleName:REG:${/@done-coding\/cli-([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)/.source}:$1`, o = [
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
- i({
16
+ e({
16
17
  sourceJsonFilePath: "./package.json",
17
- injectKeyPath: o,
18
+ injectKeyPath: i,
18
19
  injectInfoFilePath: "./src/injectInfo.json"
19
20
  });
20
21
  };
21
22
  export {
22
- p as injectDoneCodingCliInfo
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.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": "383ec04131808af21ca8fdf3652daa48d86cab1c"
75
+ "gitHead": "465ac238437ab8bd3803c5e6fe8ac5a30bc445f3"
76
76
  }
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- "version": "0.4.4",
2
+ "version": "0.4.5",
3
3
  "name": "@done-coding/cli-inject",
4
4
  "description": "信息注入命令行工具",
5
5
  "cliConfig": {
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;