@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 CHANGED
File without changes
package/es/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as r } from "./index-b1ea9d6a.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";
File without changes
@@ -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.3",
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-b1ea9d6a.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.3",
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": "516ef8bb086ae7be558c68bd7392501ef3ed6052"
75
+ "gitHead": "465ac238437ab8bd3803c5e6fe8ac5a30bc445f3"
76
76
  }
package/types/cli.d.ts CHANGED
File without changes
File without changes
package/types/index.d.ts CHANGED
File without changes
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- "version": "0.4.3",
2
+ "version": "0.4.5",
3
3
  "name": "@done-coding/cli-inject",
4
4
  "description": "信息注入命令行工具",
5
5
  "cliConfig": {
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;
File without changes
File without changes
File without changes