@formatjs/cli 6.16.14 → 6.16.16

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/bin/formatjs CHANGED
@@ -9757,7 +9757,7 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9757
9757
  }
9758
9758
  }));
9759
9759
  //#endregion
9760
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/fs/index.js
9760
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/fs/index.js
9761
9761
  var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
9762
9762
  const u = require_universalify().fromCallback;
9763
9763
  const fs = require_graceful_fs();
@@ -9865,7 +9865,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
9865
9865
  else process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?", "Warning", "fs-extra-WARN0003");
9866
9866
  }));
9867
9867
  //#endregion
9868
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/mkdirs/utils.js
9868
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/mkdirs/utils.js
9869
9869
  var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9870
9870
  const path$12 = __require("path");
9871
9871
  module.exports.checkPath = function checkPath(pth) {
@@ -9879,7 +9879,7 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9879
9879
  };
9880
9880
  }));
9881
9881
  //#endregion
9882
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/mkdirs/make-dir.js
9882
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/mkdirs/make-dir.js
9883
9883
  var require_make_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9884
9884
  const fs = require_fs();
9885
9885
  const { checkPath } = require_utils$1();
@@ -9907,7 +9907,7 @@ var require_make_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9907
9907
  };
9908
9908
  }));
9909
9909
  //#endregion
9910
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/mkdirs/index.js
9910
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/mkdirs/index.js
9911
9911
  var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9912
9912
  const u = require_universalify().fromPromise;
9913
9913
  const { makeDir: _makeDir, makeDirSync } = require_make_dir();
@@ -9922,7 +9922,7 @@ var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9922
9922
  };
9923
9923
  }));
9924
9924
  //#endregion
9925
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/path-exists/index.js
9925
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/path-exists/index.js
9926
9926
  var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9927
9927
  const u = require_universalify().fromPromise;
9928
9928
  const fs = require_fs();
@@ -9935,7 +9935,7 @@ var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9935
9935
  };
9936
9936
  }));
9937
9937
  //#endregion
9938
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/util/utimes.js
9938
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/util/utimes.js
9939
9939
  var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9940
9940
  const fs = require_fs();
9941
9941
  const u = require_universalify().fromPromise;
@@ -9977,7 +9977,7 @@ var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9977
9977
  };
9978
9978
  }));
9979
9979
  //#endregion
9980
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/util/stat.js
9980
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/util/stat.js
9981
9981
  var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9982
9982
  const fs = require_fs();
9983
9983
  const path$11 = __require("path");
@@ -10103,7 +10103,7 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10103
10103
  };
10104
10104
  }));
10105
10105
  //#endregion
10106
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/util/async.js
10106
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/util/async.js
10107
10107
  var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10108
10108
  async function asyncIteratorConcurrentProcess(iterator, fn) {
10109
10109
  const promises = [];
@@ -10115,7 +10115,7 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10115
10115
  module.exports = { asyncIteratorConcurrentProcess };
10116
10116
  }));
10117
10117
  //#endregion
10118
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/copy/copy.js
10118
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/copy/copy.js
10119
10119
  var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10120
10120
  const fs = require_fs();
10121
10121
  const path$10 = __require("path");
@@ -10206,7 +10206,7 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10206
10206
  module.exports = copy;
10207
10207
  }));
10208
10208
  //#endregion
10209
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/copy/copy-sync.js
10209
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/copy/copy-sync.js
10210
10210
  var require_copy_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10211
10211
  const fs = require_graceful_fs();
10212
10212
  const path$9 = __require("path");
@@ -10319,7 +10319,7 @@ var require_copy_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10319
10319
  module.exports = copySync;
10320
10320
  }));
10321
10321
  //#endregion
10322
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/copy/index.js
10322
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/copy/index.js
10323
10323
  var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10324
10324
  const u = require_universalify().fromPromise;
10325
10325
  module.exports = {
@@ -10328,7 +10328,7 @@ var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10328
10328
  };
10329
10329
  }));
10330
10330
  //#endregion
10331
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/remove/index.js
10331
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/remove/index.js
10332
10332
  var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10333
10333
  const fs = require_graceful_fs();
10334
10334
  const u = require_universalify().fromCallback;
@@ -10350,7 +10350,7 @@ var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10350
10350
  };
10351
10351
  }));
10352
10352
  //#endregion
10353
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/empty/index.js
10353
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/empty/index.js
10354
10354
  var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10355
10355
  const u = require_universalify().fromPromise;
10356
10356
  const fs = require_fs();
@@ -10386,7 +10386,7 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10386
10386
  };
10387
10387
  }));
10388
10388
  //#endregion
10389
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/ensure/file.js
10389
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/ensure/file.js
10390
10390
  var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10391
10391
  const u = require_universalify().fromPromise;
10392
10392
  const path$7 = __require("path");
@@ -10433,7 +10433,7 @@ var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10433
10433
  };
10434
10434
  }));
10435
10435
  //#endregion
10436
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/ensure/link.js
10436
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/ensure/link.js
10437
10437
  var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10438
10438
  const u = require_universalify().fromPromise;
10439
10439
  const path$6 = __require("path");
@@ -10481,7 +10481,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10481
10481
  };
10482
10482
  }));
10483
10483
  //#endregion
10484
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/ensure/symlink-paths.js
10484
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/ensure/symlink-paths.js
10485
10485
  var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10486
10486
  const path$5 = __require("path");
10487
10487
  const fs = require_fs();
@@ -10564,7 +10564,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
10564
10564
  };
10565
10565
  }));
10566
10566
  //#endregion
10567
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/ensure/symlink-type.js
10567
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/ensure/symlink-type.js
10568
10568
  var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10569
10569
  const fs = require_fs();
10570
10570
  const u = require_universalify().fromPromise;
@@ -10594,7 +10594,7 @@ var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10594
10594
  };
10595
10595
  }));
10596
10596
  //#endregion
10597
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/ensure/symlink.js
10597
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/ensure/symlink.js
10598
10598
  var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10599
10599
  const u = require_universalify().fromPromise;
10600
10600
  const path$4 = __require("path");
@@ -10621,8 +10621,13 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10621
10621
  srcStat = await fs.stat(srcpath, { bigint: true });
10622
10622
  }
10623
10623
  }
10624
- const dstStat = await fs.stat(dstpath, { bigint: true });
10625
- if (areIdentical(srcStat, dstStat)) return;
10624
+ let dstStat;
10625
+ try {
10626
+ dstStat = await fs.stat(dstpath, { bigint: true });
10627
+ } catch (err) {
10628
+ if (err.code !== "ENOENT") throw err;
10629
+ }
10630
+ if (dstStat && areIdentical(srcStat, dstStat)) return;
10626
10631
  }
10627
10632
  const relative = await symlinkPaths(srcpath, dstpath);
10628
10633
  srcpath = relative.toDst;
@@ -10648,8 +10653,13 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10648
10653
  srcStat = fs.statSync(srcpath, { bigint: true });
10649
10654
  }
10650
10655
  }
10651
- const dstStat = fs.statSync(dstpath, { bigint: true });
10652
- if (areIdentical(srcStat, dstStat)) return;
10656
+ let dstStat;
10657
+ try {
10658
+ dstStat = fs.statSync(dstpath, { bigint: true });
10659
+ } catch (err) {
10660
+ if (err.code !== "ENOENT") throw err;
10661
+ }
10662
+ if (dstStat && areIdentical(srcStat, dstStat)) return;
10653
10663
  }
10654
10664
  const relative = symlinkPathsSync(srcpath, dstpath);
10655
10665
  srcpath = relative.toDst;
@@ -10665,7 +10675,7 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10665
10675
  };
10666
10676
  }));
10667
10677
  //#endregion
10668
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/ensure/index.js
10678
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/ensure/index.js
10669
10679
  var require_ensure = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10670
10680
  const { createFile, createFileSync } = require_file();
10671
10681
  const { createLink, createLinkSync } = require_link();
@@ -10766,7 +10776,7 @@ var require_jsonfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10766
10776
  };
10767
10777
  }));
10768
10778
  //#endregion
10769
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/json/jsonfile.js
10779
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/json/jsonfile.js
10770
10780
  var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10771
10781
  const jsonFile = require_jsonfile$1();
10772
10782
  module.exports = {
@@ -10777,7 +10787,7 @@ var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10777
10787
  };
10778
10788
  }));
10779
10789
  //#endregion
10780
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/output-file/index.js
10790
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/output-file/index.js
10781
10791
  var require_output_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10782
10792
  const u = require_universalify().fromPromise;
10783
10793
  const fs = require_fs();
@@ -10800,7 +10810,7 @@ var require_output_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10800
10810
  };
10801
10811
  }));
10802
10812
  //#endregion
10803
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/json/output-json.js
10813
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/json/output-json.js
10804
10814
  var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10805
10815
  const { stringify } = require_utils();
10806
10816
  const { outputFile } = require_output_file();
@@ -10811,7 +10821,7 @@ var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10811
10821
  module.exports = outputJson;
10812
10822
  }));
10813
10823
  //#endregion
10814
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/json/output-json-sync.js
10824
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/json/output-json-sync.js
10815
10825
  var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10816
10826
  const { stringify } = require_utils();
10817
10827
  const { outputFileSync } = require_output_file();
@@ -10822,7 +10832,7 @@ var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module)
10822
10832
  module.exports = outputJsonSync;
10823
10833
  }));
10824
10834
  //#endregion
10825
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/json/index.js
10835
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/json/index.js
10826
10836
  var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10827
10837
  const u = require_universalify().fromPromise;
10828
10838
  const jsonFile = require_jsonfile();
@@ -10837,7 +10847,7 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10837
10847
  module.exports = jsonFile;
10838
10848
  }));
10839
10849
  //#endregion
10840
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/move/move.js
10850
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/move/move.js
10841
10851
  var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10842
10852
  const fs = require_fs();
10843
10853
  const path$2 = __require("path");
@@ -10877,7 +10887,7 @@ var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10877
10887
  module.exports = move;
10878
10888
  }));
10879
10889
  //#endregion
10880
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/move/move-sync.js
10890
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/move/move-sync.js
10881
10891
  var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10882
10892
  const fs = require_graceful_fs();
10883
10893
  const path$1 = __require("path");
@@ -10925,7 +10935,7 @@ var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10925
10935
  module.exports = moveSync;
10926
10936
  }));
10927
10937
  //#endregion
10928
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/move/index.js
10938
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/move/index.js
10929
10939
  var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10930
10940
  const u = require_universalify().fromPromise;
10931
10941
  module.exports = {
@@ -10934,7 +10944,7 @@ var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10934
10944
  };
10935
10945
  }));
10936
10946
  //#endregion
10937
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/esm.mjs
10947
+ //#region node_modules/.aspect_rules_js/fs-extra@11.4.0/node_modules/fs-extra/lib/esm.mjs
10938
10948
  var import_out = /* @__PURE__ */ __toESM(require_out());
10939
10949
  var import_loud_rejection = /* @__PURE__ */ __toESM(require_loud_rejection());
10940
10950
  var import_copy = /* @__PURE__ */ __toESM(require_copy(), 1);
@@ -15182,11 +15192,11 @@ function doPrintAST(ast, isInPlural) {
15182
15192
  if (isPluralElement(el)) return printPluralElement(el);
15183
15193
  if (isSelectElement(el)) return printSelectElement(el);
15184
15194
  if (isPoundElement(el)) return "#";
15185
- if (isTagElement(el)) return printTagElement(el);
15195
+ if (isTagElement(el)) return printTagElement(el, isInPlural);
15186
15196
  }).join("");
15187
15197
  }
15188
- function printTagElement(el) {
15189
- return `<${el.value}>${printAST(el.children)}</${el.value}>`;
15198
+ function printTagElement(el, isInPlural) {
15199
+ return `<${el.value}>${doPrintAST(el.children, isInPlural)}</${el.value}>`;
15190
15200
  }
15191
15201
  function quoteSyntaxToken(token) {
15192
15202
  return `'${token.split("'").join("''")}'`;
@@ -162951,7 +162961,16 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
162951
162961
  }
162952
162962
  });
162953
162963
  }));
162954
- require_typescript$1();
162964
+ //#endregion
162965
+ //#region node_modules/.aspect_rules_js/@typescript+typescript6@6.0.2/node_modules/@typescript/typescript6/lib/typescript.js
162966
+ var require_typescript = /* @__PURE__ */ __commonJSMin(((exports, module) => {
162967
+ module.exports = require_typescript$1();
162968
+ }));
162969
+ //#endregion
162970
+ //#region node_modules/.aspect_rules_js/@formatjs+ts-transformer@0.0.0/node_modules/@formatjs/ts-transformer/index.js
162971
+ var import_compat = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
162972
+ module.exports = require_typescript();
162973
+ })))(), 1);
162955
162974
  const LEVEL_COLORS = {
162956
162975
  debug: "green",
162957
162976
  warn: "yellow",
@@ -163543,15 +163562,7 @@ async function resolveBuiltinFormatter(format) {
163543
163562
  }
163544
163563
  }
163545
163564
  //#endregion
163546
- //#region node_modules/.aspect_rules_js/@typescript+typescript6@6.0.2/node_modules/@typescript/typescript6/lib/typescript.js
163547
- var require_typescript = /* @__PURE__ */ __commonJSMin(((exports, module) => {
163548
- module.exports = require_typescript$1();
163549
- }));
163550
- //#endregion
163551
163565
  //#region packages/cli-lib/parse_script.ts
163552
- var import_compat = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
163553
- module.exports = require_typescript();
163554
- })))());
163555
163566
  /**
163556
163567
  * Invoid TypeScript module transpilation with our TS transformer
163557
163568
  * @param opts Formatjs TS Transformer opt