lingo.dev 0.111.0 → 0.111.1

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/build/cli.cjs CHANGED
@@ -7620,6 +7620,39 @@ function createDeltaProcessor(fileKey) {
7620
7620
  };
7621
7621
  }
7622
7622
 
7623
+ // src/cli/utils/exit-gracefully.ts
7624
+ var STEP_WAIT_INTERVAL = 250;
7625
+ var MAX_WAIT_INTERVAL = 2e3;
7626
+ function exitGracefully(elapsedMs = 0) {
7627
+ const hasPendingOperations = checkForPendingOperations();
7628
+ if (hasPendingOperations && elapsedMs < MAX_WAIT_INTERVAL) {
7629
+ setTimeout(
7630
+ () => exitGracefully(elapsedMs + STEP_WAIT_INTERVAL),
7631
+ STEP_WAIT_INTERVAL
7632
+ );
7633
+ } else {
7634
+ process.exit(0);
7635
+ }
7636
+ }
7637
+ function checkForPendingOperations() {
7638
+ const activeHandles = _optionalChain([process, 'access', _251 => _251._getActiveHandles, 'optionalCall', _252 => _252()]) || [];
7639
+ const activeRequests = _optionalChain([process, 'access', _253 => _253._getActiveRequests, 'optionalCall', _254 => _254()]) || [];
7640
+ const nonStandardHandles = activeHandles.filter((handle) => {
7641
+ if (handle === process.stdin || handle === process.stdout || handle === process.stderr) {
7642
+ return false;
7643
+ }
7644
+ if (handle && typeof handle === "object" && "hasRef" in handle && !handle.hasRef()) {
7645
+ return false;
7646
+ }
7647
+ return true;
7648
+ });
7649
+ const hasFileWatchers = nonStandardHandles.some(
7650
+ (handle) => handle && typeof handle === "object" && "close" in handle
7651
+ );
7652
+ const hasPendingPromises = activeRequests.length > 0;
7653
+ return nonStandardHandles.length > 0 || hasFileWatchers || hasPendingPromises;
7654
+ }
7655
+
7623
7656
  // src/cli/cmd/i18n.ts
7624
7657
  var i18n_default = new (0, _interactivecommander.Command)().command("i18n").description("Run Localization engine").helpOption("-h, --help", "Show help").option(
7625
7658
  "--locale <locale>",
@@ -7680,7 +7713,7 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
7680
7713
  validateParams(i18nConfig, flags);
7681
7714
  ora.succeed("Localization configuration is valid");
7682
7715
  ora.start("Connecting to Lingo.dev Localization Engine...");
7683
- const isByokMode = !!_optionalChain([i18nConfig, 'optionalAccess', _251 => _251.provider]);
7716
+ const isByokMode = !!_optionalChain([i18nConfig, 'optionalAccess', _255 => _255.provider]);
7684
7717
  if (isByokMode) {
7685
7718
  authId = null;
7686
7719
  ora.succeed("Using external provider (BYOK mode)");
@@ -7694,16 +7727,16 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
7694
7727
  flags
7695
7728
  });
7696
7729
  let buckets = getBuckets(i18nConfig);
7697
- if (_optionalChain([flags, 'access', _252 => _252.bucket, 'optionalAccess', _253 => _253.length])) {
7730
+ if (_optionalChain([flags, 'access', _256 => _256.bucket, 'optionalAccess', _257 => _257.length])) {
7698
7731
  buckets = buckets.filter(
7699
7732
  (bucket) => flags.bucket.includes(bucket.type)
7700
7733
  );
7701
7734
  }
7702
7735
  ora.succeed("Buckets retrieved");
7703
- if (_optionalChain([flags, 'access', _254 => _254.file, 'optionalAccess', _255 => _255.length])) {
7736
+ if (_optionalChain([flags, 'access', _258 => _258.file, 'optionalAccess', _259 => _259.length])) {
7704
7737
  buckets = buckets.map((bucket) => {
7705
7738
  const paths = bucket.paths.filter(
7706
- (path17) => flags.file.find((file) => _optionalChain([path17, 'access', _256 => _256.pathPattern, 'optionalAccess', _257 => _257.includes, 'call', _258 => _258(file)]))
7739
+ (path17) => flags.file.find((file) => _optionalChain([path17, 'access', _260 => _260.pathPattern, 'optionalAccess', _261 => _261.includes, 'call', _262 => _262(file)]))
7707
7740
  );
7708
7741
  return { ...bucket, paths };
7709
7742
  }).filter((bucket) => bucket.paths.length > 0);
@@ -7722,7 +7755,7 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
7722
7755
  });
7723
7756
  }
7724
7757
  }
7725
- const targetLocales = _optionalChain([flags, 'access', _259 => _259.locale, 'optionalAccess', _260 => _260.length]) ? flags.locale : i18nConfig.locale.targets;
7758
+ const targetLocales = _optionalChain([flags, 'access', _263 => _263.locale, 'optionalAccess', _264 => _264.length]) ? flags.locale : i18nConfig.locale.targets;
7726
7759
  ora.start("Setting up localization cache...");
7727
7760
  const checkLockfileProcessor = createDeltaProcessor("");
7728
7761
  const lockfileExists = await checkLockfileProcessor.checkIfLockExists();
@@ -7981,7 +8014,7 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
7981
8014
  }
7982
8015
  const deltaProcessor = createDeltaProcessor(bucketPath.pathPattern);
7983
8016
  const checksums = await deltaProcessor.createChecksums(sourceData);
7984
- if (!_optionalChain([flags, 'access', _261 => _261.locale, 'optionalAccess', _262 => _262.length])) {
8017
+ if (!_optionalChain([flags, 'access', _265 => _265.locale, 'optionalAccess', _266 => _266.length])) {
7985
8018
  await deltaProcessor.saveChecksums(checksums);
7986
8019
  }
7987
8020
  }
@@ -8010,6 +8043,7 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
8010
8043
  flags
8011
8044
  });
8012
8045
  }
8046
+ exitGracefully();
8013
8047
  } catch (error) {
8014
8048
  ora.fail(error.message);
8015
8049
  trackEvent(authId || "unknown", "cmd.i18n.error", {
@@ -8065,12 +8099,12 @@ function validateParams(i18nConfig, flags) {
8065
8099
  message: "No buckets found in i18n.json. Please add at least one bucket containing i18n content.",
8066
8100
  docUrl: "bucketNotFound"
8067
8101
  });
8068
- } else if (_optionalChain([flags, 'access', _263 => _263.locale, 'optionalAccess', _264 => _264.some, 'call', _265 => _265((locale) => !i18nConfig.locale.targets.includes(locale))])) {
8102
+ } else if (_optionalChain([flags, 'access', _267 => _267.locale, 'optionalAccess', _268 => _268.some, 'call', _269 => _269((locale) => !i18nConfig.locale.targets.includes(locale))])) {
8069
8103
  throw new CLIError({
8070
8104
  message: `One or more specified locales do not exist in i18n.json locale.targets. Please add them to the list and try again.`,
8071
8105
  docUrl: "localeTargetNotFound"
8072
8106
  });
8073
- } else if (_optionalChain([flags, 'access', _266 => _266.bucket, 'optionalAccess', _267 => _267.some, 'call', _268 => _268(
8107
+ } else if (_optionalChain([flags, 'access', _270 => _270.bucket, 'optionalAccess', _271 => _271.some, 'call', _272 => _272(
8074
8108
  (bucket) => !i18nConfig.buckets[bucket]
8075
8109
  )])) {
8076
8110
  throw new CLIError({
@@ -8574,7 +8608,7 @@ function createLingoDotDevLocalizer(explicitApiKey) {
8574
8608
  const response = await engine.whoami();
8575
8609
  return {
8576
8610
  authenticated: !!response,
8577
- username: _optionalChain([response, 'optionalAccess', _269 => _269.email])
8611
+ username: _optionalChain([response, 'optionalAccess', _273 => _273.email])
8578
8612
  };
8579
8613
  } catch (e2) {
8580
8614
  return { authenticated: false };
@@ -8682,7 +8716,7 @@ function createExplicitLocalizer(provider) {
8682
8716
  }
8683
8717
  function createAiSdkLocalizer(params) {
8684
8718
  const skipAuth = params.skipAuth === true;
8685
- const apiKey = process.env[_nullishCoalesce(_optionalChain([params, 'optionalAccess', _270 => _270.apiKeyName]), () => ( ""))];
8719
+ const apiKey = process.env[_nullishCoalesce(_optionalChain([params, 'optionalAccess', _274 => _274.apiKeyName]), () => ( ""))];
8686
8720
  if (!skipAuth && !apiKey || !params.apiKeyName) {
8687
8721
  throw new Error(
8688
8722
  _dedent2.default`
@@ -8807,8 +8841,8 @@ async function setup(input2) {
8807
8841
  throw new Error(
8808
8842
  "No buckets found in i18n.json. Please add at least one bucket containing i18n content."
8809
8843
  );
8810
- } else if (_optionalChain([ctx, 'access', _271 => _271.flags, 'access', _272 => _272.bucket, 'optionalAccess', _273 => _273.some, 'call', _274 => _274(
8811
- (bucket) => !_optionalChain([ctx, 'access', _275 => _275.config, 'optionalAccess', _276 => _276.buckets, 'access', _277 => _277[bucket]])
8844
+ } else if (_optionalChain([ctx, 'access', _275 => _275.flags, 'access', _276 => _276.bucket, 'optionalAccess', _277 => _277.some, 'call', _278 => _278(
8845
+ (bucket) => !_optionalChain([ctx, 'access', _279 => _279.config, 'optionalAccess', _280 => _280.buckets, 'access', _281 => _281[bucket]])
8812
8846
  )])) {
8813
8847
  throw new Error(
8814
8848
  `One or more specified buckets do not exist in i18n.json. Please add them to the list first and try again.`
@@ -8821,7 +8855,7 @@ async function setup(input2) {
8821
8855
  title: "Selecting localization provider",
8822
8856
  task: async (ctx, task) => {
8823
8857
  ctx.localizer = createLocalizer(
8824
- _optionalChain([ctx, 'access', _278 => _278.config, 'optionalAccess', _279 => _279.provider]),
8858
+ _optionalChain([ctx, 'access', _282 => _282.config, 'optionalAccess', _283 => _283.provider]),
8825
8859
  ctx.flags.apiKey
8826
8860
  );
8827
8861
  if (!ctx.localizer) {
@@ -9140,7 +9174,7 @@ function createWorkerTask(args) {
9140
9174
  const processableData = _lodash2.default.chain(sourceData).entries().filter(
9141
9175
  ([key, value]) => delta.added.includes(key) || delta.updated.includes(key) || !!args.ctx.flags.force
9142
9176
  ).filter(
9143
- ([key]) => !assignedTask.onlyKeys.length || _optionalChain([assignedTask, 'access', _280 => _280.onlyKeys, 'optionalAccess', _281 => _281.some, 'call', _282 => _282(
9177
+ ([key]) => !assignedTask.onlyKeys.length || _optionalChain([assignedTask, 'access', _284 => _284.onlyKeys, 'optionalAccess', _285 => _285.some, 'call', _286 => _286(
9144
9178
  (pattern) => minimatch(key, pattern)
9145
9179
  )])
9146
9180
  ).fromPairs().value();
@@ -9203,7 +9237,7 @@ function createWorkerTask(args) {
9203
9237
  finalRenamedTargetData
9204
9238
  );
9205
9239
  const checksums2 = await deltaProcessor.createChecksums(sourceData);
9206
- if (!_optionalChain([args, 'access', _283 => _283.ctx, 'access', _284 => _284.flags, 'access', _285 => _285.targetLocale, 'optionalAccess', _286 => _286.length])) {
9240
+ if (!_optionalChain([args, 'access', _287 => _287.ctx, 'access', _288 => _288.flags, 'access', _289 => _289.targetLocale, 'optionalAccess', _290 => _290.length])) {
9207
9241
  await deltaProcessor.saveChecksums(checksums2);
9208
9242
  }
9209
9243
  });
@@ -9393,13 +9427,13 @@ var flagsSchema2 = _zod.z.object({
9393
9427
 
9394
9428
  // src/cli/cmd/run/_utils.ts
9395
9429
  async function determineAuthId(ctx) {
9396
- const isByokMode = !!_optionalChain([ctx, 'access', _287 => _287.config, 'optionalAccess', _288 => _288.provider]);
9430
+ const isByokMode = !!_optionalChain([ctx, 'access', _291 => _291.config, 'optionalAccess', _292 => _292.provider]);
9397
9431
  if (isByokMode) {
9398
9432
  return null;
9399
9433
  } else {
9400
9434
  try {
9401
- const authStatus = await _optionalChain([ctx, 'access', _289 => _289.localizer, 'optionalAccess', _290 => _290.checkAuth, 'call', _291 => _291()]);
9402
- return _optionalChain([authStatus, 'optionalAccess', _292 => _292.username]) || null;
9435
+ const authStatus = await _optionalChain([ctx, 'access', _293 => _293.localizer, 'optionalAccess', _294 => _294.checkAuth, 'call', _295 => _295()]);
9436
+ return _optionalChain([authStatus, 'optionalAccess', _296 => _296.username]) || null;
9403
9437
  } catch (e3) {
9404
9438
  return null;
9405
9439
  }
@@ -9482,6 +9516,7 @@ var run_default = new (0, _interactivecommander.Command)().command("run").descri
9482
9516
  config: ctx.config,
9483
9517
  flags: ctx.flags
9484
9518
  });
9519
+ exitGracefully();
9485
9520
  } catch (error) {
9486
9521
  trackEvent(authId || "unknown", "cmd.run.error", {});
9487
9522
  process.exit(1);
@@ -9559,7 +9594,7 @@ var InBranchFlow = class extends IntegrationFlow {
9559
9594
  _child_process.execSync.call(void 0, `git config --global safe.directory ${process.cwd()}`);
9560
9595
  _child_process.execSync.call(void 0, `git config user.name "${gitConfig.userName}"`);
9561
9596
  _child_process.execSync.call(void 0, `git config user.email "${gitConfig.userEmail}"`);
9562
- _optionalChain([this, 'access', _293 => _293.platformKit, 'optionalAccess', _294 => _294.gitConfig, 'call', _295 => _295()]);
9597
+ _optionalChain([this, 'access', _297 => _297.platformKit, 'optionalAccess', _298 => _298.gitConfig, 'call', _299 => _299()]);
9563
9598
  _child_process.execSync.call(void 0, `git fetch origin ${baseBranchName}`, { stdio: "inherit" });
9564
9599
  _child_process.execSync.call(void 0, `git checkout ${baseBranchName} --`, { stdio: "inherit" });
9565
9600
  if (!processOwnCommits) {
@@ -9591,7 +9626,7 @@ var InBranchFlow = class extends IntegrationFlow {
9591
9626
  // src/cli/cmd/ci/flows/pull-request.ts
9592
9627
  var PullRequestFlow = class extends InBranchFlow {
9593
9628
  async preRun() {
9594
- const canContinue = await _optionalChain([super.preRun.bind(this), 'optionalCall', _296 => _296()]);
9629
+ const canContinue = await _optionalChain([super.preRun.bind(this), 'optionalCall', _300 => _300()]);
9595
9630
  if (!canContinue) {
9596
9631
  return false;
9597
9632
  }
@@ -9854,10 +9889,10 @@ var BitbucketPlatformKit = class extends PlatformKit {
9854
9889
  repo_slug: this.platformConfig.repositoryName,
9855
9890
  state: "OPEN"
9856
9891
  }).then(({ data: { values } }) => {
9857
- return _optionalChain([values, 'optionalAccess', _297 => _297.find, 'call', _298 => _298(
9858
- ({ source, destination }) => _optionalChain([source, 'optionalAccess', _299 => _299.branch, 'optionalAccess', _300 => _300.name]) === branch && _optionalChain([destination, 'optionalAccess', _301 => _301.branch, 'optionalAccess', _302 => _302.name]) === this.platformConfig.baseBranchName
9892
+ return _optionalChain([values, 'optionalAccess', _301 => _301.find, 'call', _302 => _302(
9893
+ ({ source, destination }) => _optionalChain([source, 'optionalAccess', _303 => _303.branch, 'optionalAccess', _304 => _304.name]) === branch && _optionalChain([destination, 'optionalAccess', _305 => _305.branch, 'optionalAccess', _306 => _306.name]) === this.platformConfig.baseBranchName
9859
9894
  )]);
9860
- }).then((pr) => _optionalChain([pr, 'optionalAccess', _303 => _303.id]));
9895
+ }).then((pr) => _optionalChain([pr, 'optionalAccess', _307 => _307.id]));
9861
9896
  }
9862
9897
  async closePullRequest({ pullRequestNumber }) {
9863
9898
  await this.bb.repositories.declinePullRequest({
@@ -9953,7 +9988,7 @@ var GitHubPlatformKit = class extends PlatformKit {
9953
9988
  repo: this.platformConfig.repositoryName,
9954
9989
  base: this.platformConfig.baseBranchName,
9955
9990
  state: "open"
9956
- }).then(({ data }) => data[0]).then((pr) => _optionalChain([pr, 'optionalAccess', _304 => _304.number]));
9991
+ }).then(({ data }) => data[0]).then((pr) => _optionalChain([pr, 'optionalAccess', _308 => _308.number]));
9957
9992
  }
9958
9993
  async closePullRequest({ pullRequestNumber }) {
9959
9994
  await this.octokit.rest.pulls.update({
@@ -10080,7 +10115,7 @@ var GitlabPlatformKit = class extends PlatformKit {
10080
10115
  sourceBranch: branch,
10081
10116
  state: "opened"
10082
10117
  });
10083
- return _optionalChain([mergeRequests, 'access', _305 => _305[0], 'optionalAccess', _306 => _306.iid]);
10118
+ return _optionalChain([mergeRequests, 'access', _309 => _309[0], 'optionalAccess', _310 => _310.iid]);
10084
10119
  }
10085
10120
  async closePullRequest({
10086
10121
  pullRequestNumber
@@ -10170,7 +10205,7 @@ var ci_default = new (0, _interactivecommander.Command)().command("ci").descript
10170
10205
  }
10171
10206
  const env = {
10172
10207
  LINGODOTDEV_API_KEY: settings.auth.apiKey,
10173
- LINGODOTDEV_PULL_REQUEST: _optionalChain([options, 'access', _307 => _307.pullRequest, 'optionalAccess', _308 => _308.toString, 'call', _309 => _309()]) || "false",
10208
+ LINGODOTDEV_PULL_REQUEST: _optionalChain([options, 'access', _311 => _311.pullRequest, 'optionalAccess', _312 => _312.toString, 'call', _313 => _313()]) || "false",
10174
10209
  ...options.commitMessage && {
10175
10210
  LINGODOTDEV_COMMIT_MESSAGE: options.commitMessage
10176
10211
  },
@@ -10190,7 +10225,7 @@ var ci_default = new (0, _interactivecommander.Command)().command("ci").descript
10190
10225
  const { isPullRequestMode } = platformKit.config;
10191
10226
  ora.info(`Pull request mode: ${isPullRequestMode ? "on" : "off"}`);
10192
10227
  const flow = isPullRequestMode ? new PullRequestFlow(ora, platformKit) : new InBranchFlow(ora, platformKit);
10193
- const canRun = await _optionalChain([flow, 'access', _310 => _310.preRun, 'optionalCall', _311 => _311()]);
10228
+ const canRun = await _optionalChain([flow, 'access', _314 => _314.preRun, 'optionalCall', _315 => _315()]);
10194
10229
  if (canRun === false) {
10195
10230
  return;
10196
10231
  }
@@ -10200,7 +10235,7 @@ var ci_default = new (0, _interactivecommander.Command)().command("ci").descript
10200
10235
  if (!hasChanges) {
10201
10236
  return;
10202
10237
  }
10203
- await _optionalChain([flow, 'access', _312 => _312.postRun, 'optionalCall', _313 => _313()]);
10238
+ await _optionalChain([flow, 'access', _316 => _316.postRun, 'optionalCall', _317 => _317()]);
10204
10239
  });
10205
10240
  function parseBooleanArg(val) {
10206
10241
  if (val === true) return true;
@@ -10269,17 +10304,17 @@ var status_default = new (0, _interactivecommander.Command)().command("status").
10269
10304
  flags
10270
10305
  });
10271
10306
  let buckets = getBuckets(i18nConfig);
10272
- if (_optionalChain([flags, 'access', _314 => _314.bucket, 'optionalAccess', _315 => _315.length])) {
10307
+ if (_optionalChain([flags, 'access', _318 => _318.bucket, 'optionalAccess', _319 => _319.length])) {
10273
10308
  buckets = buckets.filter(
10274
10309
  (bucket) => flags.bucket.includes(bucket.type)
10275
10310
  );
10276
10311
  }
10277
10312
  ora.succeed("Buckets retrieved");
10278
- if (_optionalChain([flags, 'access', _316 => _316.file, 'optionalAccess', _317 => _317.length])) {
10313
+ if (_optionalChain([flags, 'access', _320 => _320.file, 'optionalAccess', _321 => _321.length])) {
10279
10314
  buckets = buckets.map((bucket) => {
10280
10315
  const paths = bucket.paths.filter(
10281
10316
  (path17) => flags.file.find(
10282
- (file) => _optionalChain([path17, 'access', _318 => _318.pathPattern, 'optionalAccess', _319 => _319.includes, 'call', _320 => _320(file)]) || _optionalChain([path17, 'access', _321 => _321.pathPattern, 'optionalAccess', _322 => _322.match, 'call', _323 => _323(file)]) || minimatch(path17.pathPattern, file)
10317
+ (file) => _optionalChain([path17, 'access', _322 => _322.pathPattern, 'optionalAccess', _323 => _323.includes, 'call', _324 => _324(file)]) || _optionalChain([path17, 'access', _325 => _325.pathPattern, 'optionalAccess', _326 => _326.match, 'call', _327 => _327(file)]) || minimatch(path17.pathPattern, file)
10283
10318
  )
10284
10319
  );
10285
10320
  return { ...bucket, paths };
@@ -10299,7 +10334,7 @@ var status_default = new (0, _interactivecommander.Command)().command("status").
10299
10334
  });
10300
10335
  }
10301
10336
  }
10302
- const targetLocales = _optionalChain([flags, 'access', _324 => _324.locale, 'optionalAccess', _325 => _325.length]) ? flags.locale : i18nConfig.locale.targets;
10337
+ const targetLocales = _optionalChain([flags, 'access', _328 => _328.locale, 'optionalAccess', _329 => _329.length]) ? flags.locale : i18nConfig.locale.targets;
10303
10338
  let totalSourceKeyCount = 0;
10304
10339
  let uniqueKeysToTranslate = 0;
10305
10340
  let totalExistingTranslations = 0;
@@ -10656,6 +10691,7 @@ var status_default = new (0, _interactivecommander.Command)().command("status").
10656
10691
  totalWordsToTranslate,
10657
10692
  authenticated: !!authId
10658
10693
  });
10694
+ exitGracefully();
10659
10695
  } catch (error) {
10660
10696
  ora.fail(error.message);
10661
10697
  trackEvent(authId || "status", "cmd.status.error", {
@@ -10703,12 +10739,12 @@ function validateParams2(i18nConfig, flags) {
10703
10739
  message: "No buckets found in i18n.json. Please add at least one bucket containing i18n content.",
10704
10740
  docUrl: "bucketNotFound"
10705
10741
  });
10706
- } else if (_optionalChain([flags, 'access', _326 => _326.locale, 'optionalAccess', _327 => _327.some, 'call', _328 => _328((locale) => !i18nConfig.locale.targets.includes(locale))])) {
10742
+ } else if (_optionalChain([flags, 'access', _330 => _330.locale, 'optionalAccess', _331 => _331.some, 'call', _332 => _332((locale) => !i18nConfig.locale.targets.includes(locale))])) {
10707
10743
  throw new CLIError({
10708
10744
  message: `One or more specified locales do not exist in i18n.json locale.targets. Please add them to the list and try again.`,
10709
10745
  docUrl: "localeTargetNotFound"
10710
10746
  });
10711
- } else if (_optionalChain([flags, 'access', _329 => _329.bucket, 'optionalAccess', _330 => _330.some, 'call', _331 => _331(
10747
+ } else if (_optionalChain([flags, 'access', _333 => _333.bucket, 'optionalAccess', _334 => _334.some, 'call', _335 => _335(
10712
10748
  (bucket) => !i18nConfig.buckets[bucket]
10713
10749
  )])) {
10714
10750
  throw new CLIError({
@@ -10800,7 +10836,7 @@ async function renderHero2() {
10800
10836
  // package.json
10801
10837
  var package_default = {
10802
10838
  name: "lingo.dev",
10803
- version: "0.111.0",
10839
+ version: "0.111.1",
10804
10840
  description: "Lingo.dev CLI",
10805
10841
  private: false,
10806
10842
  publishConfig: {
@@ -11077,7 +11113,7 @@ var purge_default = new (0, _interactivecommander.Command)().command("purge").de
11077
11113
  if (options.file && options.file.length) {
11078
11114
  buckets = buckets.map((bucket) => {
11079
11115
  const paths = bucket.paths.filter(
11080
- (bucketPath) => _optionalChain([options, 'access', _332 => _332.file, 'optionalAccess', _333 => _333.some, 'call', _334 => _334((f) => bucketPath.pathPattern.includes(f))])
11116
+ (bucketPath) => _optionalChain([options, 'access', _336 => _336.file, 'optionalAccess', _337 => _337.some, 'call', _338 => _338((f) => bucketPath.pathPattern.includes(f))])
11081
11117
  );
11082
11118
  return { ...bucket, paths };
11083
11119
  }).filter((bucket) => bucket.paths.length > 0);