@i18n-micro/cli 2.0.1 → 2.1.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.
Files changed (29) hide show
  1. package/dist/chunks/{check-CwSzATDI.mjs → check-BZ_XT6Et.mjs} +6 -6
  2. package/dist/chunks/{clean-bQVjG_2M.mjs → clean-CQOz-2Ug.mjs} +1 -1
  3. package/dist/chunks/{clean-Do9z6D5j.mjs → clean-CxIoBaj4.mjs} +3 -3
  4. package/dist/chunks/{export-C2J-pagB.mjs → export-BGcK-59g.mjs} +2 -2
  5. package/dist/chunks/{export-usBaNIpp.mjs → export-DQnqkCRl.mjs} +1 -1
  6. package/dist/chunks/{extract-CJ8UfrVJ.mjs → extract-BZMzQmXi.mjs} +3 -3
  7. package/dist/chunks/{format-6CtMgO-M.mjs → format-Che5o3zO.mjs} +2 -2
  8. package/dist/chunks/{import-CnL8U6Za.mjs → import-BYouDXK9.mjs} +3 -3
  9. package/dist/chunks/{info-Lom_wHos.mjs → info-CXJGPqP_.mjs} +2 -2
  10. package/dist/chunks/{lint-DDGSQAXd.mjs → lint-C7usDW4g.mjs} +3 -3
  11. package/dist/chunks/{nuxt-dKxG087V.mjs → nuxt-DY7B7LYJ.mjs} +2 -1
  12. package/dist/chunks/{package-BejjFS6s.mjs → package-Ci4qXLK7.mjs} +1 -1
  13. package/dist/chunks/{project-DgWgr7pF.mjs → project-C7WoIKZb.mjs} +1 -1
  14. package/dist/chunks/{pseudo-oXBaONgF.mjs → pseudo-BUICRfh4.mjs} +1 -1
  15. package/dist/chunks/{rename-uJnBX86A.mjs → rename-DuVU9y1P.mjs} +3 -3
  16. package/dist/chunks/{runner-CsPPffV1.mjs → runner-De0YoUJU.mjs} +2 -2
  17. package/dist/chunks/{search-Dj_Ynq_x.mjs → search-BMCZ1yfc.mjs} +3 -3
  18. package/dist/chunks/{source-Bx2lHSW7.mjs → source-DEWPu1yL.mjs} +1 -1
  19. package/dist/chunks/{spec-DwveYr8X.mjs → spec-B58Jv8ZU.mjs} +16 -16
  20. package/dist/chunks/{stats-BU-SmrVR.mjs → stats-C_QxRi-a.mjs} +2 -2
  21. package/dist/chunks/sync-D4Ov4beh.mjs +1 -0
  22. package/dist/chunks/{sync-C0NVDabK.mjs → sync-n6TaoPX4.mjs} +4 -4
  23. package/dist/chunks/{sync-remote-y3ZATbF2.mjs → sync-remote-C6lbD5Rr.mjs} +2 -2
  24. package/dist/chunks/{text-to-i18n-DweavFLm.mjs → text-to-i18n-CrWiTHM8.mjs} +2 -2
  25. package/dist/chunks/{translate-CmnmgAHX.mjs → translate-BsovnmU6.mjs} +2 -2
  26. package/dist/cli.mjs +1 -1
  27. package/dist/index.mjs +2 -2
  28. package/package.json +2 -2
  29. package/dist/chunks/sync-BY2EFEda.mjs +0 -1
@@ -1,10 +1,10 @@
1
1
  import { A as log, _ as findingsError, a as flattenStrings, s as groupBy, x as usageError } from "./json-BV_apCMu.mjs";
2
- import { d as splitList, u as relativePath } from "./nuxt-dKxG087V.mjs";
3
- import { n as relativeFile, t as Project } from "./project-DgWgr7pF.mjs";
4
- import { f as usageDoubts, u as scanProject } from "./source-Bx2lHSW7.mjs";
5
- import { t as CHECK_TYPES } from "./spec-DwveYr8X.mjs";
6
- import { r as findUnused } from "./clean-Do9z6D5j.mjs";
7
- import { t as extraKeys } from "./sync-C0NVDabK.mjs";
2
+ import { d as splitList, u as relativePath } from "./nuxt-DY7B7LYJ.mjs";
3
+ import { n as relativeFile, t as Project } from "./project-C7WoIKZb.mjs";
4
+ import { f as usageDoubts, u as scanProject } from "./source-DEWPu1yL.mjs";
5
+ import { t as CHECK_TYPES } from "./spec-B58Jv8ZU.mjs";
6
+ import { r as findUnused } from "./clean-CxIoBaj4.mjs";
7
+ import { t as extraKeys } from "./sync-n6TaoPX4.mjs";
8
8
  // src/commands/check.ts
9
9
  /** What the runtime fills in: any run without braces or spaces. */
10
10
  var PLACEHOLDER = /\{([^{}\s]+)\}/g;
@@ -1 +1 @@
1
- export { t as assertScanned, i as default, n as deletionDoubts, r as findUnused } from "./clean-Do9z6D5j.mjs";
1
+ export { t as assertScanned, i as default, n as deletionDoubts, r as findUnused } from "./clean-CxIoBaj4.mjs";
@@ -1,7 +1,7 @@
1
1
  import { A as log, M as plural, S as validationError, _ as findingsError, g as commandFailed, o as getPath } from "./json-BV_apCMu.mjs";
2
- import { d as splitList, m as walkFiles, r as isUnder } from "./nuxt-dKxG087V.mjs";
3
- import { t as Project } from "./project-DgWgr7pF.mjs";
4
- import { f as usageDoubts, p as usageIndex, u as scanProject } from "./source-Bx2lHSW7.mjs";
2
+ import { d as splitList, m as walkFiles, r as isUnder } from "./nuxt-DY7B7LYJ.mjs";
3
+ import { t as Project } from "./project-C7WoIKZb.mjs";
4
+ import { f as usageDoubts, p as usageIndex, u as scanProject } from "./source-DEWPu1yL.mjs";
5
5
  import { realpathSync } from "node:fs";
6
6
  // src/commands/clean.ts
7
7
  function regexFrom(pattern, flag) {
@@ -1,6 +1,6 @@
1
1
  import { A as log, S as validationError, _ as findingsError, j as pick } from "./json-BV_apCMu.mjs";
2
- import { a as readJsonIfExists, f as stringifyJson, g as writeFilesAtomic, s as readLoose, u as relativePath } from "./nuxt-dKxG087V.mjs";
3
- import { n as relativeFile, t as Project } from "./project-DgWgr7pF.mjs";
2
+ import { a as readJsonIfExists, f as stringifyJson, g as writeFilesAtomic, s as readLoose, u as relativePath } from "./nuxt-DY7B7LYJ.mjs";
3
+ import { n as relativeFile, t as Project } from "./project-C7WoIKZb.mjs";
4
4
  import { createHash } from "node:crypto";
5
5
  import { existsSync } from "node:fs";
6
6
  import { join, resolve } from "node:path";
@@ -1 +1 @@
1
- export { r as default, t as defaultExchangeDir, n as readManifest } from "./export-C2J-pagB.mjs";
1
+ export { r as default, t as defaultExchangeDir, n as readManifest } from "./export-BGcK-59g.mjs";
@@ -1,7 +1,7 @@
1
- import { d as splitList, u as relativePath } from "./nuxt-dKxG087V.mjs";
1
+ import { d as splitList, u as relativePath } from "./nuxt-DY7B7LYJ.mjs";
2
2
  import { A as log, M as plural } from "./json-BV_apCMu.mjs";
3
- import { t as Project } from "./project-DgWgr7pF.mjs";
4
- import { i as isOwnSource, u as scanProject } from "./source-Bx2lHSW7.mjs";
3
+ import { t as Project } from "./project-C7WoIKZb.mjs";
4
+ import { i as isOwnSource, u as scanProject } from "./source-DEWPu1yL.mjs";
5
5
  // src/commands/extract.ts
6
6
  var wanted = (ref) => !ref.guard && !ref.test;
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  import { A as log, M as plural, _ as findingsError, j as pick } from "./json-BV_apCMu.mjs";
2
- import { t as Project } from "./project-DgWgr7pF.mjs";
3
- import { u as relativePath } from "./nuxt-dKxG087V.mjs";
2
+ import { t as Project } from "./project-C7WoIKZb.mjs";
3
+ import { u as relativePath } from "./nuxt-DY7B7LYJ.mjs";
4
4
  // src/commands/format.ts
5
5
  async function run(args) {
6
6
  const project = await Project.load(args);
@@ -1,7 +1,7 @@
1
- import { a as parseCsv, i as parsePo, n as readManifest, t as defaultExchangeDir } from "./export-C2J-pagB.mjs";
1
+ import { a as parseCsv, i as parsePo, n as readManifest, t as defaultExchangeDir } from "./export-BGcK-59g.mjs";
2
2
  import { A as log, M as plural, S as validationError, _ as findingsError, j as pick, v as notFoundError } from "./json-BV_apCMu.mjs";
3
- import { c as readText, m as walkFiles, u as relativePath } from "./nuxt-dKxG087V.mjs";
4
- import { t as Project } from "./project-DgWgr7pF.mjs";
3
+ import { c as readText, m as walkFiles, u as relativePath } from "./nuxt-DY7B7LYJ.mjs";
4
+ import { t as Project } from "./project-C7WoIKZb.mjs";
5
5
  import { existsSync } from "node:fs";
6
6
  import { basename, dirname, join, resolve } from "node:path";
7
7
  // src/commands/import.ts
@@ -1,6 +1,6 @@
1
- import { t as version } from "./package-BejjFS6s.mjs";
1
+ import { t as version } from "./package-Ci4qXLK7.mjs";
2
2
  import { A as log } from "./json-BV_apCMu.mjs";
3
- import { t as loadProjectConfig } from "./nuxt-dKxG087V.mjs";
3
+ import { t as loadProjectConfig } from "./nuxt-DY7B7LYJ.mjs";
4
4
  // src/commands/info.ts
5
5
  async function run(args) {
6
6
  const config = await loadProjectConfig(args.cwd ?? ".");
@@ -1,7 +1,7 @@
1
1
  import { A as log, M as plural, _ as findingsError, a as flattenStrings, x as usageError } from "./json-BV_apCMu.mjs";
2
- import { a as readJsonIfExists, d as splitList } from "./nuxt-dKxG087V.mjs";
3
- import { n as relativeFile, t as Project } from "./project-DgWgr7pF.mjs";
4
- import { r as LINT_RULES } from "./spec-DwveYr8X.mjs";
2
+ import { a as readJsonIfExists, d as splitList } from "./nuxt-DY7B7LYJ.mjs";
3
+ import { n as relativeFile, t as Project } from "./project-C7WoIKZb.mjs";
4
+ import { r as LINT_RULES } from "./spec-B58Jv8ZU.mjs";
5
5
  import { join } from "node:path";
6
6
  // src/lint-rules.ts
7
7
  /** Rules for what is wrong in any language. Whether a text ends in a period is not one of them. */
@@ -3,6 +3,7 @@ import { forwardSlashes } from "@i18n-micro/utils/app-path";
3
3
  import { randomBytes } from "node:crypto";
4
4
  import { accessSync, chmodSync, constants, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
5
5
  import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
6
+ import { additionalTranslationRoots } from "@i18n-micro/utils/load-dir";
6
7
  import { pathToFileURL } from "node:url";
7
8
  // src/fs.ts
8
9
  var SKIPPED_DIRS = /* @__PURE__ */ new Set([
@@ -260,7 +261,7 @@ var layersOf = (config, rootDir) => {
260
261
  /** Like the module: each additional directory is relative to every layer, and sits under the layers' own files. */
261
262
  function additionalDirsOf(roots, i18n) {
262
263
  const names = (i18n.additionalTranslationDirs ?? []).map((entry) => typeof entry === "string" ? entry : entry.path).filter(Boolean);
263
- return [...new Set(names.flatMap((name) => roots.map((root) => resolve(root, name))))];
264
+ return additionalTranslationRoots(roots, names);
264
265
  }
265
266
  var ALIAS_PREFIX = /^(~~|@@|~|@)(?=\/)/;
266
267
  /** `../shared/*`: the folder a glob starts from. Reading all of it only finds more evidence. */
@@ -1,3 +1,3 @@
1
1
  // package.json
2
- var version = "2.0.1";
2
+ var version = "2.1.0";
3
3
  export { version as t };
@@ -1,5 +1,5 @@
1
1
  import { S as validationError, a as flattenStrings, d as ownValue, f as pathConflict, i as flatten, l as isObject, m as sortKeys, o as getPath, p as setPath, t as deletePath, v as notFoundError, x as usageError } from "./json-BV_apCMu.mjs";
2
- import { a as readJsonIfExists, f as stringifyJson, g as writeFilesAtomic, i as matchLineEnding, m as walkFiles, p as stringifyLike, t as loadProjectConfig, u as relativePath } from "./nuxt-dKxG087V.mjs";
2
+ import { a as readJsonIfExists, f as stringifyJson, g as writeFilesAtomic, i as matchLineEnding, m as walkFiles, p as stringifyLike, t as loadProjectConfig, u as relativePath } from "./nuxt-DY7B7LYJ.mjs";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  import { dirname, join, resolve, sep } from "node:path";
5
5
  import { deepMergeTranslationsRecursive } from "@i18n-micro/utils/deep-merge";
@@ -1,5 +1,5 @@
1
1
  import { A as log, S as validationError, v as notFoundError } from "./json-BV_apCMu.mjs";
2
- import { t as Project } from "./project-DgWgr7pF.mjs";
2
+ import { t as Project } from "./project-C7WoIKZb.mjs";
3
3
  import { i as restore, r as protect } from "./protect-D1HIuxmJ.mjs";
4
4
  // src/commands/pseudo.ts
5
5
  /** Tags, masked placeholders among them, and entities are markup: split on them, the odd chunks are theirs. */
@@ -1,7 +1,7 @@
1
1
  import { A as log, S as validationError, f as pathConflict, i as flatten, o as getPath, p as setPath, s as groupBy, t as deletePath, u as isWritableKey, v as notFoundError } from "./json-BV_apCMu.mjs";
2
- import { d as splitList, g as writeFilesAtomic } from "./nuxt-dKxG087V.mjs";
3
- import { t as Project } from "./project-DgWgr7pF.mjs";
4
- import { i as isOwnSource, n as dataTokensOf, u as scanProject } from "./source-Bx2lHSW7.mjs";
2
+ import { d as splitList, g as writeFilesAtomic } from "./nuxt-DY7B7LYJ.mjs";
3
+ import { t as Project } from "./project-C7WoIKZb.mjs";
4
+ import { i as isOwnSource, n as dataTokensOf, u as scanProject } from "./source-DEWPu1yL.mjs";
5
5
  import { readFileSync } from "node:fs";
6
6
  import { MagicString } from "@vue/compiler-sfc";
7
7
  // src/commands/rename.ts
@@ -1,6 +1,6 @@
1
- import { t as version$1 } from "./package-BejjFS6s.mjs";
1
+ import { t as version$1 } from "./package-Ci4qXLK7.mjs";
2
2
  import { A as log, D as closePrompts, N as spinner, O as formatDuration, P as style, S as validationError, b as reportError, d as ownValue, k as isInteractive, x as usageError } from "./json-BV_apCMu.mjs";
3
- import { a as commands, i as REMOVED_COMMANDS, n as COMMAND_GROUPS } from "./spec-DwveYr8X.mjs";
3
+ import { a as commands, i as REMOVED_COMMANDS, n as COMMAND_GROUPS } from "./spec-B58Jv8ZU.mjs";
4
4
  import { defineCommand, runCommand } from "citty";
5
5
  // src/help.ts
6
6
  /** The layout of citty's `renderUsage`, as nuxi prints it, with commands grouped and examples added. */
@@ -1,7 +1,7 @@
1
1
  import { A as log, P as style, S as validationError, a as flattenStrings, o as getPath } from "./json-BV_apCMu.mjs";
2
- import { d as splitList, u as relativePath } from "./nuxt-dKxG087V.mjs";
3
- import { t as Project } from "./project-DgWgr7pF.mjs";
4
- import { f as usageDoubts, p as usageIndex, u as scanProject } from "./source-Bx2lHSW7.mjs";
2
+ import { d as splitList, u as relativePath } from "./nuxt-DY7B7LYJ.mjs";
3
+ import { t as Project } from "./project-C7WoIKZb.mjs";
4
+ import { f as usageDoubts, p as usageIndex, u as scanProject } from "./source-DEWPu1yL.mjs";
5
5
  // src/commands/search.ts
6
6
  function scopesOf(project, wanted) {
7
7
  const all = [...new Set(project.codes.flatMap((code) => project.locale(code).scopes))];
@@ -1,4 +1,4 @@
1
- import { m as walkFiles, n as globToRegExp, r as isUnder, s as readLoose, u as relativePath } from "./nuxt-dKxG087V.mjs";
1
+ import { m as walkFiles, n as globToRegExp, r as isUnder, s as readLoose, u as relativePath } from "./nuxt-DY7B7LYJ.mjs";
2
2
  import { forwardSlashes } from "@i18n-micro/utils/app-path";
3
3
  import { existsSync, readFileSync, realpathSync } from "node:fs";
4
4
  import { basename, dirname, extname, relative } from "node:path";
@@ -101,7 +101,7 @@ var commands = {
101
101
  ...shared,
102
102
  json
103
103
  },
104
- load: () => import("./info-Lom_wHos.mjs")
104
+ load: () => import("./info-CXJGPqP_.mjs")
105
105
  },
106
106
  check: {
107
107
  group: "Inspect",
@@ -122,7 +122,7 @@ var commands = {
122
122
  json
123
123
  },
124
124
  examples: ["i18n-micro check", "i18n-micro check --only missing,placeholders --json"],
125
- load: () => import("./check-CwSzATDI.mjs")
125
+ load: () => import("./check-BZ_XT6Et.mjs")
126
126
  },
127
127
  stats: {
128
128
  group: "Inspect",
@@ -140,7 +140,7 @@ var commands = {
140
140
  }
141
141
  },
142
142
  examples: ["i18n-micro stats --baseRef main", "i18n-micro stats --html reports/i18n.html"],
143
- load: () => import("./stats-BU-SmrVR.mjs")
143
+ load: () => import("./stats-C_QxRi-a.mjs")
144
144
  },
145
145
  lint: {
146
146
  group: "Inspect",
@@ -160,7 +160,7 @@ var commands = {
160
160
  json
161
161
  },
162
162
  examples: ["i18n-micro lint --rules no-trailing-spaces --fix"],
163
- load: () => import("./lint-DDGSQAXd.mjs")
163
+ load: () => import("./lint-C7usDW4g.mjs")
164
164
  },
165
165
  search: {
166
166
  group: "Inspect",
@@ -201,7 +201,7 @@ var commands = {
201
201
  json
202
202
  },
203
203
  examples: ["i18n-micro search \"Welcome\"", "i18n-micro search --onlyUnused"],
204
- load: () => import("./search-Dj_Ynq_x.mjs")
204
+ load: () => import("./search-BMCZ1yfc.mjs")
205
205
  },
206
206
  extract: {
207
207
  group: "Translation workflow",
@@ -211,7 +211,7 @@ var commands = {
211
211
  ignore
212
212
  },
213
213
  examples: ["i18n-micro extract"],
214
- load: () => import("./extract-CJ8UfrVJ.mjs")
214
+ load: () => import("./extract-BZMzQmXi.mjs")
215
215
  },
216
216
  translate: {
217
217
  group: "Translation workflow",
@@ -267,7 +267,7 @@ var commands = {
267
267
  "i18n-micro translate --service ai --options provider:openai,model:gpt-4o-mini",
268
268
  "i18n-micro translate --service libretranslate --options baseUrl:https://translate.example.com"
269
269
  ],
270
- load: () => import("./translate-CmnmgAHX.mjs")
270
+ load: () => import("./translate-BsovnmU6.mjs")
271
271
  },
272
272
  sync: {
273
273
  group: "Translation workflow",
@@ -287,7 +287,7 @@ var commands = {
287
287
  }
288
288
  },
289
289
  examples: ["i18n-micro sync --dryRun"],
290
- load: () => import("./sync-BY2EFEda.mjs")
290
+ load: () => import("./sync-D4Ov4beh.mjs")
291
291
  },
292
292
  clean: {
293
293
  group: "Translation workflow",
@@ -315,7 +315,7 @@ var commands = {
315
315
  }
316
316
  },
317
317
  examples: ["i18n-micro clean --dryRun", `i18n-micro clean --exclude '^errors\\.'`],
318
- load: () => import("./clean-bQVjG_2M.mjs")
318
+ load: () => import("./clean-CQOz-2Ug.mjs")
319
319
  },
320
320
  "text-to-i18n": {
321
321
  group: "Refactoring",
@@ -349,7 +349,7 @@ var commands = {
349
349
  }
350
350
  },
351
351
  examples: ["i18n-micro text-to-i18n --dryRun", "i18n-micro text-to-i18n --path components --context ui"],
352
- load: () => import("./text-to-i18n-DweavFLm.mjs")
352
+ load: () => import("./text-to-i18n-CrWiTHM8.mjs")
353
353
  },
354
354
  rename: {
355
355
  group: "Refactoring",
@@ -374,7 +374,7 @@ var commands = {
374
374
  }
375
375
  },
376
376
  examples: ["i18n-micro rename --from common.save --to actions.save"],
377
- load: () => import("./rename-uJnBX86A.mjs")
377
+ load: () => import("./rename-DuVU9y1P.mjs")
378
378
  },
379
379
  pseudo: {
380
380
  group: "Refactoring",
@@ -397,7 +397,7 @@ var commands = {
397
397
  default: false
398
398
  }
399
399
  },
400
- load: () => import("./pseudo-oXBaONgF.mjs")
400
+ load: () => import("./pseudo-BUICRfh4.mjs")
401
401
  },
402
402
  format: {
403
403
  group: "Refactoring",
@@ -422,7 +422,7 @@ var commands = {
422
422
  }
423
423
  },
424
424
  examples: ["i18n-micro format --check"],
425
- load: () => import("./format-6CtMgO-M.mjs")
425
+ load: () => import("./format-Che5o3zO.mjs")
426
426
  },
427
427
  export: {
428
428
  group: "Exchange",
@@ -447,7 +447,7 @@ var commands = {
447
447
  }
448
448
  },
449
449
  examples: ["i18n-micro export --format csv"],
450
- load: () => import("./export-usBaNIpp.mjs")
450
+ load: () => import("./export-DQnqkCRl.mjs")
451
451
  },
452
452
  import: {
453
453
  group: "Exchange",
@@ -472,7 +472,7 @@ var commands = {
472
472
  }
473
473
  },
474
474
  examples: ["i18n-micro import --format csv --dryRun"],
475
- load: () => import("./import-CnL8U6Za.mjs")
475
+ load: () => import("./import-BYouDXK9.mjs")
476
476
  },
477
477
  "sync-remote": {
478
478
  group: "Exchange",
@@ -501,7 +501,7 @@ var commands = {
501
501
  }
502
502
  },
503
503
  examples: ["i18n-micro sync-remote --dryRun", "i18n-micro sync-remote --no-pull --push"],
504
- load: () => import("./sync-remote-y3ZATbF2.mjs")
504
+ load: () => import("./sync-remote-C6lbD5Rr.mjs")
505
505
  }
506
506
  };
507
507
  export { commands as a, REMOVED_COMMANDS as i, COMMAND_GROUPS as n, LINT_RULES as r, CHECK_TYPES as t };
@@ -1,6 +1,6 @@
1
1
  import { A as log, P as style, S as validationError, a as flattenStrings, d as ownValue, l as isObject } from "./json-BV_apCMu.mjs";
2
- import { h as writeFileAtomic, u as relativePath } from "./nuxt-dKxG087V.mjs";
3
- import { t as Project } from "./project-DgWgr7pF.mjs";
2
+ import { h as writeFileAtomic, u as relativePath } from "./nuxt-DY7B7LYJ.mjs";
3
+ import { t as Project } from "./project-C7WoIKZb.mjs";
4
4
  import { join, resolve } from "node:path";
5
5
  import { execFileSync } from "node:child_process";
6
6
  // src/commands/stats.ts
@@ -0,0 +1 @@
1
+ export { n as default, t as extraKeys } from "./sync-n6TaoPX4.mjs";
@@ -1,8 +1,8 @@
1
1
  import { A as log, M as plural, _ as findingsError, o as getPath } from "./json-BV_apCMu.mjs";
2
- import { d as splitList } from "./nuxt-dKxG087V.mjs";
3
- import { n as relativeFile, t as Project } from "./project-DgWgr7pF.mjs";
4
- import { p as usageIndex, u as scanProject } from "./source-Bx2lHSW7.mjs";
5
- import { n as deletionDoubts, t as assertScanned } from "./clean-Do9z6D5j.mjs";
2
+ import { d as splitList } from "./nuxt-DY7B7LYJ.mjs";
3
+ import { n as relativeFile, t as Project } from "./project-C7WoIKZb.mjs";
4
+ import { p as usageIndex, u as scanProject } from "./source-DEWPu1yL.mjs";
5
+ import { n as deletionDoubts, t as assertScanned } from "./clean-CxIoBaj4.mjs";
6
6
  // src/commands/sync.ts
7
7
  /** Keys of `locale` the default locale cannot answer, compared by path: `"a.b"` and `a: { b }` are the same key. */
8
8
  function extraKeys(reference, locale) {
@@ -1,7 +1,7 @@
1
1
  import { A as log, C as addSecret, M as plural, _ as findingsError, f as pathConflict, h as CliError, i as flatten, j as pick, l as isObject, o as getPath, p as setPath, w as addUrlSecrets, y as remoteConfigError } from "./json-BV_apCMu.mjs";
2
- import { o as readJsonObject } from "./nuxt-dKxG087V.mjs";
2
+ import { o as readJsonObject } from "./nuxt-DY7B7LYJ.mjs";
3
3
  import { n as requestJson, t as jsonBody } from "./http-whB7a5ye.mjs";
4
- import { t as Project } from "./project-DgWgr7pF.mjs";
4
+ import { t as Project } from "./project-C7WoIKZb.mjs";
5
5
  import { trimLeadingSlashes, trimTrailingSlashes } from "@i18n-micro/utils/app-path";
6
6
  import { existsSync } from "node:fs";
7
7
  import { join } from "node:path";
@@ -1,6 +1,6 @@
1
1
  import { A as log, E as choose, M as plural, S as validationError, T as ask, a as flattenStrings, f as pathConflict, p as setPath, u as isWritableKey, v as notFoundError, x as usageError } from "./json-BV_apCMu.mjs";
2
- import { a as readJsonIfExists, d as splitList, g as writeFilesAtomic, l as readUtf8, p as stringifyLike, r as isUnder, t as loadProjectConfig, u as relativePath } from "./nuxt-dKxG087V.mjs";
3
- import { a as isTestFile, c as projectFiles, d as staticString, i as isOwnSource, l as scanFile, o as lineOf, r as isCodeFile, s as parseCode, t as NODE_TYPES } from "./source-Bx2lHSW7.mjs";
2
+ import { a as readJsonIfExists, d as splitList, g as writeFilesAtomic, l as readUtf8, p as stringifyLike, r as isUnder, t as loadProjectConfig, u as relativePath } from "./nuxt-DY7B7LYJ.mjs";
3
+ import { a as isTestFile, c as projectFiles, d as staticString, i as isOwnSource, l as scanFile, o as lineOf, r as isCodeFile, s as parseCode, t as NODE_TYPES } from "./source-DEWPu1yL.mjs";
4
4
  import { forwardSlashes } from "@i18n-micro/utils/app-path";
5
5
  import { existsSync, readFileSync, statSync } from "node:fs";
6
6
  import { extname, join, parse, resolve } from "node:path";
@@ -1,6 +1,6 @@
1
1
  import { A as log, C as addSecret, E as choose, M as plural, N as spinner, T as ask, _ as findingsError, d as ownValue, g as commandFailed, j as pick, v as notFoundError, w as addUrlSecrets, x as usageError } from "./json-BV_apCMu.mjs";
2
- import { d as splitList, o as readJsonObject } from "./nuxt-dKxG087V.mjs";
3
- import { t as Project } from "./project-DgWgr7pF.mjs";
2
+ import { d as splitList, o as readJsonObject } from "./nuxt-DY7B7LYJ.mjs";
3
+ import { t as Project } from "./project-C7WoIKZb.mjs";
4
4
  import { n as requestJson, t as jsonBody } from "./http-whB7a5ye.mjs";
5
5
  import { i as restore, n as isIntact, r as protect, t as decodeEntities } from "./protect-D1HIuxmJ.mjs";
6
6
  import { trimTrailingSlashes } from "@i18n-micro/utils/app-path";
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { t as runCli } from "./chunks/runner-CsPPffV1.mjs";
2
+ import { t as runCli } from "./chunks/runner-De0YoUJU.mjs";
3
3
  // src/cli.ts
4
4
  await runCli(process.argv.slice(2));
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as runCli } from "./chunks/runner-CsPPffV1.mjs";
2
- import { a as commands, n as COMMAND_GROUPS } from "./chunks/spec-DwveYr8X.mjs";
1
+ import { t as runCli } from "./chunks/runner-De0YoUJU.mjs";
2
+ import { a as commands, n as COMMAND_GROUPS } from "./chunks/spec-B58Jv8ZU.mjs";
3
3
  export { COMMAND_GROUPS, commands, runCli };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18n-micro/cli",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "Command-line tools for nuxt-i18n-micro: extract, sync, translate, lint and audit locale files.",
5
5
  "keywords": [
6
6
  "cli",
@@ -50,7 +50,7 @@
50
50
  "dependencies": {
51
51
  "@vue/compiler-sfc": "^3.5.44",
52
52
  "citty": "^0.2.2",
53
- "@i18n-micro/utils": "^2.0.1"
53
+ "@i18n-micro/utils": "^2.1.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@nuxt/kit": "^3.18.0 || ^4.0.0",
@@ -1 +0,0 @@
1
- export { n as default, t as extraKeys } from "./sync-C0NVDabK.mjs";