@done-coding/cli-inject 0.1.0 → 0.2.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
File without changes
package/es/cli.mjs CHANGED
File without changes
package/es/handler.mjs CHANGED
@@ -7,9 +7,9 @@ import e from "chalk";
7
7
  const P = async (a) => {
8
8
  const { sourceJsonFilePath: c, injectKeyPath: g, injectInfoFilePath: l } = a, i = process.cwd();
9
9
  if (!c.endsWith(".json"))
10
- return console.log(e.red("源文件必须是json格式")), process.exit(1);
10
+ return console.log(e.red("源文件必须是json")), process.exit(1);
11
11
  if (!l.endsWith(".json"))
12
- return console.log(e.red("注入文件必须是json格式")), process.exit(1);
12
+ return console.log(e.red("注入文件必须是json")), process.exit(1);
13
13
  const h = u.resolve(i, c), p = JSON.parse(
14
14
  r.readFileSync(h, "utf-8")
15
15
  ), s = g.reduce((n, f) => (j(n, f, d(p, f)), n), {}), o = u.resolve(i, l), t = JSON.stringify(s, null, 2);
@@ -21,7 +21,7 @@ const P = async (a) => {
21
21
  } else
22
22
  console.log(e.green("开始注入文件"));
23
23
  return r.writeFileSync(o, t), console.log(
24
- e.green(`文件注入成功过: ${o}`),
24
+ e.green(`文件注入成功: ${o}`),
25
25
  e.blue(t)
26
26
  ), s;
27
27
  };
package/es/index.mjs CHANGED
File without changes
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  const n = {
3
- version: "0.1.0",
3
+ version: "0.2.0",
4
4
  name: "@done-coding/cli-inject",
5
- description: "注入信息文件命令行工具"
5
+ description: "信息注入命令行工具"
6
6
  };
7
7
  export {
8
8
  n as default
package/es/main.mjs CHANGED
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@done-coding/cli-inject",
3
- "version": "0.1.0",
4
- "description": "注入信息文件命令行工具",
3
+ "version": "0.2.0",
4
+ "description": "信息注入命令行工具",
5
5
  "private": false,
6
6
  "module": "es/index.mjs",
7
7
  "type": "module",
@@ -60,5 +60,5 @@
60
60
  "prompts": "^2.4.2",
61
61
  "yargs": "^17.7.2"
62
62
  },
63
- "gitHead": "86e1d77d045ee4bbf2c48c4e7c55ae79ae29939c"
63
+ "gitHead": "caa230835cb90705a00646511ae437a13439b267"
64
64
  }
package/types/cli.d.ts CHANGED
File without changes
File without changes
package/types/index.d.ts CHANGED
File without changes
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
- "version": "0.1.0",
2
+ "version": "0.2.0",
3
3
  "name": "@done-coding/cli-inject",
4
- "description": "注入信息文件命令行工具"
4
+ "description": "信息注入命令行工具"
5
5
  };
6
6
 
7
7
  export default _default;
package/types/main.d.ts CHANGED
File without changes
File without changes
File without changes