intor-cli 0.0.17 → 0.0.18

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
@@ -13,7 +13,7 @@
13
13
  - **discover** — config discovery
14
14
  - **generate** — schema and type generation
15
15
  - **check** — static usage analysis
16
- - **validate** — locale completeness
16
+ - **validate** — locale completeness validation
17
17
 
18
18
  <img src='demo.gif' />
19
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intor-cli",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "The Intor CLI",
5
5
  "author": "Yiming Liao",
6
6
  "homepage": "https://github.com/yiming-liao/intor-cli#readme",
@@ -2,7 +2,7 @@ import type { CliOption } from "./options";
2
2
  import type { CAC } from "cac";
3
3
  import { features } from "../../constants";
4
4
  import { generate } from "../../features";
5
- import { version } from "../version";
5
+ import { VERSION } from "../version";
6
6
  import { options } from "./options";
7
7
  import { normalizeMessageFiles } from "./utils/normalize-message-files";
8
8
  import { normalizeReaderOptions } from "./utils/normalize-reader-options";
@@ -44,7 +44,7 @@ export function registerGenerateCommand(cli: CAC) {
44
44
  messageSource: result,
45
45
  exts,
46
46
  customReaders,
47
- toolVersion: version,
47
+ toolVersion: VERSION,
48
48
  });
49
49
  } catch (error) {
50
50
  console.error(error instanceof Error ? error.message : error);
package/src/cli/index.ts CHANGED
@@ -8,8 +8,7 @@ import {
8
8
  registerValidateCommand,
9
9
  } from "./commands";
10
10
  import { run } from "./menu";
11
-
12
- const VERSION = "0.1.10";
11
+ import { VERSION } from "./version";
13
12
 
14
13
  async function main() {
15
14
  // argv = [node, script, ...args]
@@ -4,7 +4,7 @@ import pc from "picocolors";
4
4
  import { features } from "../../constants";
5
5
  import { check, discover, generate, validate } from "../../features";
6
6
  import { bold, italic } from "../../render";
7
- import { version } from "../version";
7
+ import { VERSION } from "../version";
8
8
  import { promptCheck } from "./prompts/prompt-check";
9
9
  import { promptDiscover } from "./prompts/prompt-discover";
10
10
  import { promptGenerate } from "./prompts/prompt-generate";
@@ -58,7 +58,7 @@ export async function run() {
58
58
  }
59
59
  case "generate": {
60
60
  await runAction(promptGenerate, (options) =>
61
- generate({ ...options, toolVersion: version }),
61
+ generate({ ...options, toolVersion: VERSION }),
62
62
  );
63
63
  break;
64
64
  }
@@ -1,3 +1,3 @@
1
1
  import package_ from "../../package.json" with { type: "json" };
2
2
 
3
- export const version = package_.version;
3
+ export const VERSION = package_.version;