@forsakringskassan/vite-lib-config 4.7.0 → 4.7.2

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.
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { run } from "../dist/api-extractor.mjs";
4
+
5
+ const argv = process.argv.slice(2);
6
+
7
+ try {
8
+ await run(argv);
9
+ } catch (err) {
10
+ console.error(err);
11
+ process.exitCode = 1;
12
+ }
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { run } from "../dist/build-selectors.js";
3
+ import { run } from "../dist/build-selectors.mjs";
4
4
 
5
5
  const argv = process.argv.slice(2);
6
6
 
@@ -7,10 +7,6 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __commonJS = (cb, mod) => function __require() {
8
8
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
9
  };
10
- var __export = (target, all) => {
11
- for (var name in all)
12
- __defProp(target, name, { get: all[name], enumerable: true });
13
- };
14
10
  var __copyProps = (to, from, except, desc) => {
15
11
  if (from && typeof from === "object" || typeof from === "function") {
16
12
  for (let key of __getOwnPropNames(from))
@@ -27,12 +23,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
23
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
24
  mod
29
25
  ));
30
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
26
 
32
27
  // node_modules/is-ci/node_modules/ci-info/vendors.json
33
28
  var require_vendors = __commonJS({
34
- "node_modules/is-ci/node_modules/ci-info/vendors.json"(exports2, module2) {
35
- module2.exports = [
29
+ "node_modules/is-ci/node_modules/ci-info/vendors.json"(exports, module) {
30
+ module.exports = [
36
31
  {
37
32
  name: "Agola CI",
38
33
  constant: "AGOLA",
@@ -400,34 +395,34 @@ var require_vendors = __commonJS({
400
395
 
401
396
  // node_modules/is-ci/node_modules/ci-info/index.js
402
397
  var require_ci_info = __commonJS({
403
- "node_modules/is-ci/node_modules/ci-info/index.js"(exports2) {
398
+ "node_modules/is-ci/node_modules/ci-info/index.js"(exports) {
404
399
  "use strict";
405
400
  var vendors = require_vendors();
406
401
  var env = process.env;
407
- Object.defineProperty(exports2, "_vendors", {
402
+ Object.defineProperty(exports, "_vendors", {
408
403
  value: vendors.map(function(v2) {
409
404
  return v2.constant;
410
405
  })
411
406
  });
412
- exports2.name = null;
413
- exports2.isPR = null;
414
- exports2.id = null;
407
+ exports.name = null;
408
+ exports.isPR = null;
409
+ exports.id = null;
415
410
  if (env.CI !== "false") {
416
411
  vendors.forEach(function(vendor) {
417
412
  const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
418
413
  const isCI2 = envs.every(function(obj) {
419
414
  return checkEnv(obj);
420
415
  });
421
- exports2[vendor.constant] = isCI2;
416
+ exports[vendor.constant] = isCI2;
422
417
  if (!isCI2) {
423
418
  return;
424
419
  }
425
- exports2.name = vendor.name;
426
- exports2.isPR = checkPR(vendor);
427
- exports2.id = vendor.constant;
420
+ exports.name = vendor.name;
421
+ exports.isPR = checkPR(vendor);
422
+ exports.id = vendor.constant;
428
423
  });
429
424
  }
430
- exports2.isCI = !!(env.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
425
+ exports.isCI = !!(env.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
431
426
  (env.BUILD_ID || // Jenkins, Cloudbees
432
427
  env.BUILD_NUMBER || // Jenkins, TeamCity
433
428
  env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages/Workers
@@ -437,7 +432,7 @@ var require_ci_info = __commonJS({
437
432
  env.CI_NAME || // Codeship and others
438
433
  env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
439
434
  env.RUN_ID || // TaskCluster, dsari
440
- exports2.name || false));
435
+ exports.name || false));
441
436
  function checkEnv(obj) {
442
437
  if (typeof obj === "string") return !!env[obj];
443
438
  if ("env" in obj) {
@@ -481,15 +476,15 @@ var require_ci_info = __commonJS({
481
476
 
482
477
  // node_modules/is-ci/index.js
483
478
  var require_is_ci = __commonJS({
484
- "node_modules/is-ci/index.js"(exports2, module2) {
479
+ "node_modules/is-ci/index.js"(exports, module) {
485
480
  "use strict";
486
- module2.exports = require_ci_info().isCI;
481
+ module.exports = require_ci_info().isCI;
487
482
  }
488
483
  });
489
484
 
490
485
  // node_modules/semver/internal/constants.js
491
486
  var require_constants = __commonJS({
492
- "node_modules/semver/internal/constants.js"(exports2, module2) {
487
+ "node_modules/semver/internal/constants.js"(exports, module) {
493
488
  "use strict";
494
489
  var SEMVER_SPEC_VERSION = "2.0.0";
495
490
  var MAX_LENGTH = 256;
@@ -506,7 +501,7 @@ var require_constants = __commonJS({
506
501
  "prepatch",
507
502
  "prerelease"
508
503
  ];
509
- module2.exports = {
504
+ module.exports = {
510
505
  MAX_LENGTH,
511
506
  MAX_SAFE_COMPONENT_LENGTH,
512
507
  MAX_SAFE_BUILD_LENGTH,
@@ -521,17 +516,17 @@ var require_constants = __commonJS({
521
516
 
522
517
  // node_modules/semver/internal/debug.js
523
518
  var require_debug = __commonJS({
524
- "node_modules/semver/internal/debug.js"(exports2, module2) {
519
+ "node_modules/semver/internal/debug.js"(exports, module) {
525
520
  "use strict";
526
521
  var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
527
522
  };
528
- module2.exports = debug;
523
+ module.exports = debug;
529
524
  }
530
525
  });
531
526
 
532
527
  // node_modules/semver/internal/re.js
533
528
  var require_re = __commonJS({
534
- "node_modules/semver/internal/re.js"(exports2, module2) {
529
+ "node_modules/semver/internal/re.js"(exports, module) {
535
530
  "use strict";
536
531
  var {
537
532
  MAX_SAFE_COMPONENT_LENGTH,
@@ -539,12 +534,12 @@ var require_re = __commonJS({
539
534
  MAX_LENGTH
540
535
  } = require_constants();
541
536
  var debug = require_debug();
542
- exports2 = module2.exports = {};
543
- var re2 = exports2.re = [];
544
- var safeRe = exports2.safeRe = [];
545
- var src = exports2.src = [];
546
- var safeSrc = exports2.safeSrc = [];
547
- var t = exports2.t = {};
537
+ exports = module.exports = {};
538
+ var re2 = exports.re = [];
539
+ var safeRe = exports.safeRe = [];
540
+ var src = exports.src = [];
541
+ var safeSrc = exports.safeSrc = [];
542
+ var t = exports.t = {};
548
543
  var R2 = 0;
549
544
  var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
550
545
  var safeRegexReplacements = [
@@ -597,18 +592,18 @@ var require_re = __commonJS({
597
592
  createToken("COERCERTLFULL", src[t.COERCEFULL], true);
598
593
  createToken("LONETILDE", "(?:~>?)");
599
594
  createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
600
- exports2.tildeTrimReplace = "$1~";
595
+ exports.tildeTrimReplace = "$1~";
601
596
  createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
602
597
  createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
603
598
  createToken("LONECARET", "(?:\\^)");
604
599
  createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
605
- exports2.caretTrimReplace = "$1^";
600
+ exports.caretTrimReplace = "$1^";
606
601
  createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
607
602
  createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
608
603
  createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
609
604
  createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
610
605
  createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
611
- exports2.comparatorTrimReplace = "$1$2$3";
606
+ exports.comparatorTrimReplace = "$1$2$3";
612
607
  createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
613
608
  createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
614
609
  createToken("STAR", "(<|>)?=?\\s*\\*");
@@ -619,7 +614,7 @@ var require_re = __commonJS({
619
614
 
620
615
  // node_modules/semver/internal/parse-options.js
621
616
  var require_parse_options = __commonJS({
622
- "node_modules/semver/internal/parse-options.js"(exports2, module2) {
617
+ "node_modules/semver/internal/parse-options.js"(exports, module) {
623
618
  "use strict";
624
619
  var looseOption = Object.freeze({ loose: true });
625
620
  var emptyOpts = Object.freeze({});
@@ -632,13 +627,13 @@ var require_parse_options = __commonJS({
632
627
  }
633
628
  return options;
634
629
  };
635
- module2.exports = parseOptions;
630
+ module.exports = parseOptions;
636
631
  }
637
632
  });
638
633
 
639
634
  // node_modules/semver/internal/identifiers.js
640
635
  var require_identifiers = __commonJS({
641
- "node_modules/semver/internal/identifiers.js"(exports2, module2) {
636
+ "node_modules/semver/internal/identifiers.js"(exports, module) {
642
637
  "use strict";
643
638
  var numeric = /^[0-9]+$/;
644
639
  var compareIdentifiers = (a, b) => {
@@ -654,7 +649,7 @@ var require_identifiers = __commonJS({
654
649
  return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
655
650
  };
656
651
  var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
657
- module2.exports = {
652
+ module.exports = {
658
653
  compareIdentifiers,
659
654
  rcompareIdentifiers
660
655
  };
@@ -663,7 +658,7 @@ var require_identifiers = __commonJS({
663
658
 
664
659
  // node_modules/semver/classes/semver.js
665
660
  var require_semver = __commonJS({
666
- "node_modules/semver/classes/semver.js"(exports2, module2) {
661
+ "node_modules/semver/classes/semver.js"(exports, module) {
667
662
  "use strict";
668
663
  var debug = require_debug();
669
664
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
@@ -936,13 +931,13 @@ var require_semver = __commonJS({
936
931
  return this;
937
932
  }
938
933
  };
939
- module2.exports = SemVer;
934
+ module.exports = SemVer;
940
935
  }
941
936
  });
942
937
 
943
938
  // node_modules/semver/functions/parse.js
944
939
  var require_parse = __commonJS({
945
- "node_modules/semver/functions/parse.js"(exports2, module2) {
940
+ "node_modules/semver/functions/parse.js"(exports, module) {
946
941
  "use strict";
947
942
  var SemVer = require_semver();
948
943
  var parse = (version2, options, throwErrors = false) => {
@@ -958,39 +953,39 @@ var require_parse = __commonJS({
958
953
  throw er;
959
954
  }
960
955
  };
961
- module2.exports = parse;
956
+ module.exports = parse;
962
957
  }
963
958
  });
964
959
 
965
960
  // node_modules/semver/functions/valid.js
966
961
  var require_valid = __commonJS({
967
- "node_modules/semver/functions/valid.js"(exports2, module2) {
962
+ "node_modules/semver/functions/valid.js"(exports, module) {
968
963
  "use strict";
969
964
  var parse = require_parse();
970
965
  var valid = (version2, options) => {
971
966
  const v2 = parse(version2, options);
972
967
  return v2 ? v2.version : null;
973
968
  };
974
- module2.exports = valid;
969
+ module.exports = valid;
975
970
  }
976
971
  });
977
972
 
978
973
  // node_modules/semver/functions/clean.js
979
974
  var require_clean = __commonJS({
980
- "node_modules/semver/functions/clean.js"(exports2, module2) {
975
+ "node_modules/semver/functions/clean.js"(exports, module) {
981
976
  "use strict";
982
977
  var parse = require_parse();
983
978
  var clean = (version2, options) => {
984
979
  const s = parse(version2.trim().replace(/^[=v]+/, ""), options);
985
980
  return s ? s.version : null;
986
981
  };
987
- module2.exports = clean;
982
+ module.exports = clean;
988
983
  }
989
984
  });
990
985
 
991
986
  // node_modules/semver/functions/inc.js
992
987
  var require_inc = __commonJS({
993
- "node_modules/semver/functions/inc.js"(exports2, module2) {
988
+ "node_modules/semver/functions/inc.js"(exports, module) {
994
989
  "use strict";
995
990
  var SemVer = require_semver();
996
991
  var inc = (version2, release, options, identifier, identifierBase) => {
@@ -1008,13 +1003,13 @@ var require_inc = __commonJS({
1008
1003
  return null;
1009
1004
  }
1010
1005
  };
1011
- module2.exports = inc;
1006
+ module.exports = inc;
1012
1007
  }
1013
1008
  });
1014
1009
 
1015
1010
  // node_modules/semver/functions/diff.js
1016
1011
  var require_diff = __commonJS({
1017
- "node_modules/semver/functions/diff.js"(exports2, module2) {
1012
+ "node_modules/semver/functions/diff.js"(exports, module) {
1018
1013
  "use strict";
1019
1014
  var parse = require_parse();
1020
1015
  var diff = (version1, version2) => {
@@ -1052,86 +1047,86 @@ var require_diff = __commonJS({
1052
1047
  }
1053
1048
  return "prerelease";
1054
1049
  };
1055
- module2.exports = diff;
1050
+ module.exports = diff;
1056
1051
  }
1057
1052
  });
1058
1053
 
1059
1054
  // node_modules/semver/functions/major.js
1060
1055
  var require_major = __commonJS({
1061
- "node_modules/semver/functions/major.js"(exports2, module2) {
1056
+ "node_modules/semver/functions/major.js"(exports, module) {
1062
1057
  "use strict";
1063
1058
  var SemVer = require_semver();
1064
1059
  var major2 = (a, loose) => new SemVer(a, loose).major;
1065
- module2.exports = major2;
1060
+ module.exports = major2;
1066
1061
  }
1067
1062
  });
1068
1063
 
1069
1064
  // node_modules/semver/functions/minor.js
1070
1065
  var require_minor = __commonJS({
1071
- "node_modules/semver/functions/minor.js"(exports2, module2) {
1066
+ "node_modules/semver/functions/minor.js"(exports, module) {
1072
1067
  "use strict";
1073
1068
  var SemVer = require_semver();
1074
1069
  var minor = (a, loose) => new SemVer(a, loose).minor;
1075
- module2.exports = minor;
1070
+ module.exports = minor;
1076
1071
  }
1077
1072
  });
1078
1073
 
1079
1074
  // node_modules/semver/functions/patch.js
1080
1075
  var require_patch = __commonJS({
1081
- "node_modules/semver/functions/patch.js"(exports2, module2) {
1076
+ "node_modules/semver/functions/patch.js"(exports, module) {
1082
1077
  "use strict";
1083
1078
  var SemVer = require_semver();
1084
1079
  var patch = (a, loose) => new SemVer(a, loose).patch;
1085
- module2.exports = patch;
1080
+ module.exports = patch;
1086
1081
  }
1087
1082
  });
1088
1083
 
1089
1084
  // node_modules/semver/functions/prerelease.js
1090
1085
  var require_prerelease = __commonJS({
1091
- "node_modules/semver/functions/prerelease.js"(exports2, module2) {
1086
+ "node_modules/semver/functions/prerelease.js"(exports, module) {
1092
1087
  "use strict";
1093
1088
  var parse = require_parse();
1094
1089
  var prerelease = (version2, options) => {
1095
1090
  const parsed = parse(version2, options);
1096
1091
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
1097
1092
  };
1098
- module2.exports = prerelease;
1093
+ module.exports = prerelease;
1099
1094
  }
1100
1095
  });
1101
1096
 
1102
1097
  // node_modules/semver/functions/compare.js
1103
1098
  var require_compare = __commonJS({
1104
- "node_modules/semver/functions/compare.js"(exports2, module2) {
1099
+ "node_modules/semver/functions/compare.js"(exports, module) {
1105
1100
  "use strict";
1106
1101
  var SemVer = require_semver();
1107
1102
  var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
1108
- module2.exports = compare;
1103
+ module.exports = compare;
1109
1104
  }
1110
1105
  });
1111
1106
 
1112
1107
  // node_modules/semver/functions/rcompare.js
1113
1108
  var require_rcompare = __commonJS({
1114
- "node_modules/semver/functions/rcompare.js"(exports2, module2) {
1109
+ "node_modules/semver/functions/rcompare.js"(exports, module) {
1115
1110
  "use strict";
1116
1111
  var compare = require_compare();
1117
1112
  var rcompare = (a, b, loose) => compare(b, a, loose);
1118
- module2.exports = rcompare;
1113
+ module.exports = rcompare;
1119
1114
  }
1120
1115
  });
1121
1116
 
1122
1117
  // node_modules/semver/functions/compare-loose.js
1123
1118
  var require_compare_loose = __commonJS({
1124
- "node_modules/semver/functions/compare-loose.js"(exports2, module2) {
1119
+ "node_modules/semver/functions/compare-loose.js"(exports, module) {
1125
1120
  "use strict";
1126
1121
  var compare = require_compare();
1127
1122
  var compareLoose = (a, b) => compare(a, b, true);
1128
- module2.exports = compareLoose;
1123
+ module.exports = compareLoose;
1129
1124
  }
1130
1125
  });
1131
1126
 
1132
1127
  // node_modules/semver/functions/compare-build.js
1133
1128
  var require_compare_build = __commonJS({
1134
- "node_modules/semver/functions/compare-build.js"(exports2, module2) {
1129
+ "node_modules/semver/functions/compare-build.js"(exports, module) {
1135
1130
  "use strict";
1136
1131
  var SemVer = require_semver();
1137
1132
  var compareBuild = (a, b, loose) => {
@@ -1139,93 +1134,93 @@ var require_compare_build = __commonJS({
1139
1134
  const versionB = new SemVer(b, loose);
1140
1135
  return versionA.compare(versionB) || versionA.compareBuild(versionB);
1141
1136
  };
1142
- module2.exports = compareBuild;
1137
+ module.exports = compareBuild;
1143
1138
  }
1144
1139
  });
1145
1140
 
1146
1141
  // node_modules/semver/functions/sort.js
1147
1142
  var require_sort = __commonJS({
1148
- "node_modules/semver/functions/sort.js"(exports2, module2) {
1143
+ "node_modules/semver/functions/sort.js"(exports, module) {
1149
1144
  "use strict";
1150
1145
  var compareBuild = require_compare_build();
1151
1146
  var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
1152
- module2.exports = sort;
1147
+ module.exports = sort;
1153
1148
  }
1154
1149
  });
1155
1150
 
1156
1151
  // node_modules/semver/functions/rsort.js
1157
1152
  var require_rsort = __commonJS({
1158
- "node_modules/semver/functions/rsort.js"(exports2, module2) {
1153
+ "node_modules/semver/functions/rsort.js"(exports, module) {
1159
1154
  "use strict";
1160
1155
  var compareBuild = require_compare_build();
1161
1156
  var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
1162
- module2.exports = rsort;
1157
+ module.exports = rsort;
1163
1158
  }
1164
1159
  });
1165
1160
 
1166
1161
  // node_modules/semver/functions/gt.js
1167
1162
  var require_gt = __commonJS({
1168
- "node_modules/semver/functions/gt.js"(exports2, module2) {
1163
+ "node_modules/semver/functions/gt.js"(exports, module) {
1169
1164
  "use strict";
1170
1165
  var compare = require_compare();
1171
1166
  var gt2 = (a, b, loose) => compare(a, b, loose) > 0;
1172
- module2.exports = gt2;
1167
+ module.exports = gt2;
1173
1168
  }
1174
1169
  });
1175
1170
 
1176
1171
  // node_modules/semver/functions/lt.js
1177
1172
  var require_lt = __commonJS({
1178
- "node_modules/semver/functions/lt.js"(exports2, module2) {
1173
+ "node_modules/semver/functions/lt.js"(exports, module) {
1179
1174
  "use strict";
1180
1175
  var compare = require_compare();
1181
1176
  var lt2 = (a, b, loose) => compare(a, b, loose) < 0;
1182
- module2.exports = lt2;
1177
+ module.exports = lt2;
1183
1178
  }
1184
1179
  });
1185
1180
 
1186
1181
  // node_modules/semver/functions/eq.js
1187
1182
  var require_eq = __commonJS({
1188
- "node_modules/semver/functions/eq.js"(exports2, module2) {
1183
+ "node_modules/semver/functions/eq.js"(exports, module) {
1189
1184
  "use strict";
1190
1185
  var compare = require_compare();
1191
1186
  var eq = (a, b, loose) => compare(a, b, loose) === 0;
1192
- module2.exports = eq;
1187
+ module.exports = eq;
1193
1188
  }
1194
1189
  });
1195
1190
 
1196
1191
  // node_modules/semver/functions/neq.js
1197
1192
  var require_neq = __commonJS({
1198
- "node_modules/semver/functions/neq.js"(exports2, module2) {
1193
+ "node_modules/semver/functions/neq.js"(exports, module) {
1199
1194
  "use strict";
1200
1195
  var compare = require_compare();
1201
1196
  var neq = (a, b, loose) => compare(a, b, loose) !== 0;
1202
- module2.exports = neq;
1197
+ module.exports = neq;
1203
1198
  }
1204
1199
  });
1205
1200
 
1206
1201
  // node_modules/semver/functions/gte.js
1207
1202
  var require_gte = __commonJS({
1208
- "node_modules/semver/functions/gte.js"(exports2, module2) {
1203
+ "node_modules/semver/functions/gte.js"(exports, module) {
1209
1204
  "use strict";
1210
1205
  var compare = require_compare();
1211
1206
  var gte = (a, b, loose) => compare(a, b, loose) >= 0;
1212
- module2.exports = gte;
1207
+ module.exports = gte;
1213
1208
  }
1214
1209
  });
1215
1210
 
1216
1211
  // node_modules/semver/functions/lte.js
1217
1212
  var require_lte = __commonJS({
1218
- "node_modules/semver/functions/lte.js"(exports2, module2) {
1213
+ "node_modules/semver/functions/lte.js"(exports, module) {
1219
1214
  "use strict";
1220
1215
  var compare = require_compare();
1221
1216
  var lte = (a, b, loose) => compare(a, b, loose) <= 0;
1222
- module2.exports = lte;
1217
+ module.exports = lte;
1223
1218
  }
1224
1219
  });
1225
1220
 
1226
1221
  // node_modules/semver/functions/cmp.js
1227
1222
  var require_cmp = __commonJS({
1228
- "node_modules/semver/functions/cmp.js"(exports2, module2) {
1223
+ "node_modules/semver/functions/cmp.js"(exports, module) {
1229
1224
  "use strict";
1230
1225
  var eq = require_eq();
1231
1226
  var neq = require_neq();
@@ -1269,13 +1264,13 @@ var require_cmp = __commonJS({
1269
1264
  throw new TypeError(`Invalid operator: ${op}`);
1270
1265
  }
1271
1266
  };
1272
- module2.exports = cmp;
1267
+ module.exports = cmp;
1273
1268
  }
1274
1269
  });
1275
1270
 
1276
1271
  // node_modules/semver/functions/coerce.js
1277
1272
  var require_coerce = __commonJS({
1278
- "node_modules/semver/functions/coerce.js"(exports2, module2) {
1273
+ "node_modules/semver/functions/coerce.js"(exports, module) {
1279
1274
  "use strict";
1280
1275
  var SemVer = require_semver();
1281
1276
  var parse = require_parse();
@@ -1315,13 +1310,13 @@ var require_coerce = __commonJS({
1315
1310
  const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
1316
1311
  return parse(`${major2}.${minor}.${patch}${prerelease}${build}`, options);
1317
1312
  };
1318
- module2.exports = coerce;
1313
+ module.exports = coerce;
1319
1314
  }
1320
1315
  });
1321
1316
 
1322
1317
  // node_modules/semver/internal/lrucache.js
1323
1318
  var require_lrucache = __commonJS({
1324
- "node_modules/semver/internal/lrucache.js"(exports2, module2) {
1319
+ "node_modules/semver/internal/lrucache.js"(exports, module) {
1325
1320
  "use strict";
1326
1321
  var LRUCache = class {
1327
1322
  constructor() {
@@ -1353,13 +1348,13 @@ var require_lrucache = __commonJS({
1353
1348
  return this;
1354
1349
  }
1355
1350
  };
1356
- module2.exports = LRUCache;
1351
+ module.exports = LRUCache;
1357
1352
  }
1358
1353
  });
1359
1354
 
1360
1355
  // node_modules/semver/classes/range.js
1361
1356
  var require_range = __commonJS({
1362
- "node_modules/semver/classes/range.js"(exports2, module2) {
1357
+ "node_modules/semver/classes/range.js"(exports, module) {
1363
1358
  "use strict";
1364
1359
  var SPACE_CHARACTERS = /\s+/g;
1365
1360
  var Range = class _Range {
@@ -1500,7 +1495,7 @@ var require_range = __commonJS({
1500
1495
  return false;
1501
1496
  }
1502
1497
  };
1503
- module2.exports = Range;
1498
+ module.exports = Range;
1504
1499
  var LRU = require_lrucache();
1505
1500
  var cache = new LRU();
1506
1501
  var parseOptions = require_parse_options();
@@ -1736,7 +1731,7 @@ var require_range = __commonJS({
1736
1731
 
1737
1732
  // node_modules/semver/classes/comparator.js
1738
1733
  var require_comparator = __commonJS({
1739
- "node_modules/semver/classes/comparator.js"(exports2, module2) {
1734
+ "node_modules/semver/classes/comparator.js"(exports, module) {
1740
1735
  "use strict";
1741
1736
  var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
1742
1737
  var Comparator = class _Comparator {
@@ -1837,7 +1832,7 @@ var require_comparator = __commonJS({
1837
1832
  return false;
1838
1833
  }
1839
1834
  };
1840
- module2.exports = Comparator;
1835
+ module.exports = Comparator;
1841
1836
  var parseOptions = require_parse_options();
1842
1837
  var { safeRe: re2, t } = require_re();
1843
1838
  var cmp = require_cmp();
@@ -1849,7 +1844,7 @@ var require_comparator = __commonJS({
1849
1844
 
1850
1845
  // node_modules/semver/functions/satisfies.js
1851
1846
  var require_satisfies = __commonJS({
1852
- "node_modules/semver/functions/satisfies.js"(exports2, module2) {
1847
+ "node_modules/semver/functions/satisfies.js"(exports, module) {
1853
1848
  "use strict";
1854
1849
  var Range = require_range();
1855
1850
  var satisfies = (version2, range, options) => {
@@ -1860,23 +1855,23 @@ var require_satisfies = __commonJS({
1860
1855
  }
1861
1856
  return range.test(version2);
1862
1857
  };
1863
- module2.exports = satisfies;
1858
+ module.exports = satisfies;
1864
1859
  }
1865
1860
  });
1866
1861
 
1867
1862
  // node_modules/semver/ranges/to-comparators.js
1868
1863
  var require_to_comparators = __commonJS({
1869
- "node_modules/semver/ranges/to-comparators.js"(exports2, module2) {
1864
+ "node_modules/semver/ranges/to-comparators.js"(exports, module) {
1870
1865
  "use strict";
1871
1866
  var Range = require_range();
1872
1867
  var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
1873
- module2.exports = toComparators;
1868
+ module.exports = toComparators;
1874
1869
  }
1875
1870
  });
1876
1871
 
1877
1872
  // node_modules/semver/ranges/max-satisfying.js
1878
1873
  var require_max_satisfying = __commonJS({
1879
- "node_modules/semver/ranges/max-satisfying.js"(exports2, module2) {
1874
+ "node_modules/semver/ranges/max-satisfying.js"(exports, module) {
1880
1875
  "use strict";
1881
1876
  var SemVer = require_semver();
1882
1877
  var Range = require_range();
@@ -1899,13 +1894,13 @@ var require_max_satisfying = __commonJS({
1899
1894
  });
1900
1895
  return max;
1901
1896
  };
1902
- module2.exports = maxSatisfying;
1897
+ module.exports = maxSatisfying;
1903
1898
  }
1904
1899
  });
1905
1900
 
1906
1901
  // node_modules/semver/ranges/min-satisfying.js
1907
1902
  var require_min_satisfying = __commonJS({
1908
- "node_modules/semver/ranges/min-satisfying.js"(exports2, module2) {
1903
+ "node_modules/semver/ranges/min-satisfying.js"(exports, module) {
1909
1904
  "use strict";
1910
1905
  var SemVer = require_semver();
1911
1906
  var Range = require_range();
@@ -1928,13 +1923,13 @@ var require_min_satisfying = __commonJS({
1928
1923
  });
1929
1924
  return min;
1930
1925
  };
1931
- module2.exports = minSatisfying;
1926
+ module.exports = minSatisfying;
1932
1927
  }
1933
1928
  });
1934
1929
 
1935
1930
  // node_modules/semver/ranges/min-version.js
1936
1931
  var require_min_version = __commonJS({
1937
- "node_modules/semver/ranges/min-version.js"(exports2, module2) {
1932
+ "node_modules/semver/ranges/min-version.js"(exports, module) {
1938
1933
  "use strict";
1939
1934
  var SemVer = require_semver();
1940
1935
  var Range = require_range();
@@ -1987,13 +1982,13 @@ var require_min_version = __commonJS({
1987
1982
  }
1988
1983
  return null;
1989
1984
  };
1990
- module2.exports = minVersion;
1985
+ module.exports = minVersion;
1991
1986
  }
1992
1987
  });
1993
1988
 
1994
1989
  // node_modules/semver/ranges/valid.js
1995
1990
  var require_valid2 = __commonJS({
1996
- "node_modules/semver/ranges/valid.js"(exports2, module2) {
1991
+ "node_modules/semver/ranges/valid.js"(exports, module) {
1997
1992
  "use strict";
1998
1993
  var Range = require_range();
1999
1994
  var validRange = (range, options) => {
@@ -2003,13 +1998,13 @@ var require_valid2 = __commonJS({
2003
1998
  return null;
2004
1999
  }
2005
2000
  };
2006
- module2.exports = validRange;
2001
+ module.exports = validRange;
2007
2002
  }
2008
2003
  });
2009
2004
 
2010
2005
  // node_modules/semver/ranges/outside.js
2011
2006
  var require_outside = __commonJS({
2012
- "node_modules/semver/ranges/outside.js"(exports2, module2) {
2007
+ "node_modules/semver/ranges/outside.js"(exports, module) {
2013
2008
  "use strict";
2014
2009
  var SemVer = require_semver();
2015
2010
  var Comparator = require_comparator();
@@ -2072,33 +2067,33 @@ var require_outside = __commonJS({
2072
2067
  }
2073
2068
  return true;
2074
2069
  };
2075
- module2.exports = outside;
2070
+ module.exports = outside;
2076
2071
  }
2077
2072
  });
2078
2073
 
2079
2074
  // node_modules/semver/ranges/gtr.js
2080
2075
  var require_gtr = __commonJS({
2081
- "node_modules/semver/ranges/gtr.js"(exports2, module2) {
2076
+ "node_modules/semver/ranges/gtr.js"(exports, module) {
2082
2077
  "use strict";
2083
2078
  var outside = require_outside();
2084
2079
  var gtr = (version2, range, options) => outside(version2, range, ">", options);
2085
- module2.exports = gtr;
2080
+ module.exports = gtr;
2086
2081
  }
2087
2082
  });
2088
2083
 
2089
2084
  // node_modules/semver/ranges/ltr.js
2090
2085
  var require_ltr = __commonJS({
2091
- "node_modules/semver/ranges/ltr.js"(exports2, module2) {
2086
+ "node_modules/semver/ranges/ltr.js"(exports, module) {
2092
2087
  "use strict";
2093
2088
  var outside = require_outside();
2094
2089
  var ltr = (version2, range, options) => outside(version2, range, "<", options);
2095
- module2.exports = ltr;
2090
+ module.exports = ltr;
2096
2091
  }
2097
2092
  });
2098
2093
 
2099
2094
  // node_modules/semver/ranges/intersects.js
2100
2095
  var require_intersects = __commonJS({
2101
- "node_modules/semver/ranges/intersects.js"(exports2, module2) {
2096
+ "node_modules/semver/ranges/intersects.js"(exports, module) {
2102
2097
  "use strict";
2103
2098
  var Range = require_range();
2104
2099
  var intersects = (r1, r2, options) => {
@@ -2106,17 +2101,17 @@ var require_intersects = __commonJS({
2106
2101
  r2 = new Range(r2, options);
2107
2102
  return r1.intersects(r2, options);
2108
2103
  };
2109
- module2.exports = intersects;
2104
+ module.exports = intersects;
2110
2105
  }
2111
2106
  });
2112
2107
 
2113
2108
  // node_modules/semver/ranges/simplify.js
2114
2109
  var require_simplify = __commonJS({
2115
- "node_modules/semver/ranges/simplify.js"(exports2, module2) {
2110
+ "node_modules/semver/ranges/simplify.js"(exports, module) {
2116
2111
  "use strict";
2117
2112
  var satisfies = require_satisfies();
2118
2113
  var compare = require_compare();
2119
- module2.exports = (versions, range, options) => {
2114
+ module.exports = (versions, range, options) => {
2120
2115
  const set = [];
2121
2116
  let first = null;
2122
2117
  let prev = null;
@@ -2162,7 +2157,7 @@ var require_simplify = __commonJS({
2162
2157
 
2163
2158
  // node_modules/semver/ranges/subset.js
2164
2159
  var require_subset = __commonJS({
2165
- "node_modules/semver/ranges/subset.js"(exports2, module2) {
2160
+ "node_modules/semver/ranges/subset.js"(exports, module) {
2166
2161
  "use strict";
2167
2162
  var Range = require_range();
2168
2163
  var Comparator = require_comparator();
@@ -2318,13 +2313,13 @@ var require_subset = __commonJS({
2318
2313
  const comp = compare(a.semver, b.semver, options);
2319
2314
  return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
2320
2315
  };
2321
- module2.exports = subset;
2316
+ module.exports = subset;
2322
2317
  }
2323
2318
  });
2324
2319
 
2325
2320
  // node_modules/semver/index.js
2326
2321
  var require_semver2 = __commonJS({
2327
- "node_modules/semver/index.js"(exports2, module2) {
2322
+ "node_modules/semver/index.js"(exports, module) {
2328
2323
  "use strict";
2329
2324
  var internalRe = require_re();
2330
2325
  var constants = require_constants();
@@ -2367,7 +2362,7 @@ var require_semver2 = __commonJS({
2367
2362
  var intersects = require_intersects();
2368
2363
  var simplifyRange = require_simplify();
2369
2364
  var subset = require_subset();
2370
- module2.exports = {
2365
+ module.exports = {
2371
2366
  parse,
2372
2367
  valid,
2373
2368
  clean,
@@ -2418,24 +2413,19 @@ var require_semver2 = __commonJS({
2418
2413
  });
2419
2414
 
2420
2415
  // src/api-extractor.ts
2421
- var api_extractor_exports = {};
2422
- __export(api_extractor_exports, {
2423
- run: () => run
2424
- });
2425
- module.exports = __toCommonJS(api_extractor_exports);
2426
- var import_node_fs2 = require("node:fs");
2427
- var import_promises2 = __toESM(require("node:fs/promises"));
2428
- var import_node_path4 = __toESM(require("node:path"));
2429
- var import_api_extractor = require("@microsoft/api-extractor");
2416
+ import { existsSync } from "node:fs";
2417
+ import fs3 from "node:fs/promises";
2418
+ import path3 from "node:path";
2419
+ import { Extractor, ExtractorConfig } from "@microsoft/api-extractor";
2430
2420
 
2431
2421
  // node_modules/find-up/index.js
2432
- var import_node_path2 = __toESM(require("node:path"), 1);
2422
+ import path2 from "node:path";
2433
2423
 
2434
2424
  // node_modules/locate-path/index.js
2435
- var import_node_process = __toESM(require("node:process"), 1);
2436
- var import_node_path = __toESM(require("node:path"), 1);
2437
- var import_node_fs = __toESM(require("node:fs"), 1);
2438
- var import_node_url = require("node:url");
2425
+ import process2 from "node:process";
2426
+ import path from "node:path";
2427
+ import fs, { promises as fsPromises } from "node:fs";
2428
+ import { fileURLToPath } from "node:url";
2439
2429
 
2440
2430
  // node_modules/p-locate/node_modules/yocto-queue/index.js
2441
2431
  var Node = class {
@@ -2598,9 +2588,9 @@ function checkType(type) {
2598
2588
  throw new Error(`Invalid type specified: ${type}`);
2599
2589
  }
2600
2590
  var matchType = (type, stat) => type === "both" ? stat.isFile() || stat.isDirectory() : stat[typeMappings[type]]();
2601
- var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
2591
+ var toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
2602
2592
  async function locatePath(paths, {
2603
- cwd = import_node_process.default.cwd(),
2593
+ cwd = process2.cwd(),
2604
2594
  type = "file",
2605
2595
  allowSymlinks = true,
2606
2596
  concurrency,
@@ -2608,10 +2598,10 @@ async function locatePath(paths, {
2608
2598
  } = {}) {
2609
2599
  checkType(type);
2610
2600
  cwd = toPath(cwd);
2611
- const statFunction = allowSymlinks ? import_node_fs.promises.stat : import_node_fs.promises.lstat;
2601
+ const statFunction = allowSymlinks ? fsPromises.stat : fsPromises.lstat;
2612
2602
  return pLocate(paths, async (path_) => {
2613
2603
  try {
2614
- const stat = await statFunction(import_node_path.default.resolve(cwd, path_));
2604
+ const stat = await statFunction(path.resolve(cwd, path_));
2615
2605
  return matchType(type, stat);
2616
2606
  } catch {
2617
2607
  return false;
@@ -2620,21 +2610,21 @@ async function locatePath(paths, {
2620
2610
  }
2621
2611
 
2622
2612
  // node_modules/unicorn-magic/node.js
2623
- var import_node_util = require("node:util");
2624
- var import_node_child_process = require("node:child_process");
2625
- var import_node_url2 = require("node:url");
2626
- var execFileOriginal = (0, import_node_util.promisify)(import_node_child_process.execFile);
2613
+ import { promisify } from "node:util";
2614
+ import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "node:child_process";
2615
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
2616
+ var execFileOriginal = promisify(execFileCallback);
2627
2617
  function toPath2(urlOrPath) {
2628
- return urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
2618
+ return urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
2629
2619
  }
2630
2620
  var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
2631
2621
 
2632
2622
  // node_modules/find-up/index.js
2633
2623
  var findUpStop = /* @__PURE__ */ Symbol("findUpStop");
2634
2624
  async function findUpMultiple(name, options = {}) {
2635
- let directory = import_node_path2.default.resolve(toPath2(options.cwd) ?? "");
2636
- const { root } = import_node_path2.default.parse(directory);
2637
- const stopAt = import_node_path2.default.resolve(directory, toPath2(options.stopAt) ?? root);
2625
+ let directory = path2.resolve(toPath2(options.cwd) ?? "");
2626
+ const { root } = path2.parse(directory);
2627
+ const stopAt = path2.resolve(directory, toPath2(options.stopAt) ?? root);
2638
2628
  const limit = options.limit ?? Number.POSITIVE_INFINITY;
2639
2629
  const paths = [name].flat();
2640
2630
  const runMatcher = async (locateOptions) => {
@@ -2654,12 +2644,12 @@ async function findUpMultiple(name, options = {}) {
2654
2644
  break;
2655
2645
  }
2656
2646
  if (foundPath) {
2657
- matches.push(import_node_path2.default.resolve(directory, foundPath));
2647
+ matches.push(path2.resolve(directory, foundPath));
2658
2648
  }
2659
2649
  if (directory === stopAt || matches.length >= limit) {
2660
2650
  break;
2661
2651
  }
2662
- directory = import_node_path2.default.dirname(directory);
2652
+ directory = path2.dirname(directory);
2663
2653
  }
2664
2654
  return matches;
2665
2655
  }
@@ -2669,15 +2659,15 @@ async function findUp(name, options = {}) {
2669
2659
  }
2670
2660
 
2671
2661
  // node_modules/glob/dist/esm/index.min.js
2672
- var import_node_url3 = require("node:url");
2673
- var import_node_path3 = require("node:path");
2674
- var import_node_url4 = require("node:url");
2675
- var import_fs = require("fs");
2676
- var xi = __toESM(require("node:fs"), 1);
2677
- var import_promises = require("node:fs/promises");
2678
- var import_node_events = require("node:events");
2679
- var import_node_stream = __toESM(require("node:stream"), 1);
2680
- var import_node_string_decoder = require("node:string_decoder");
2662
+ import { fileURLToPath as Wi } from "node:url";
2663
+ import { posix as mi, win32 as re } from "node:path";
2664
+ import { fileURLToPath as gi } from "node:url";
2665
+ import { lstatSync as wi, readdir as yi, readdirSync as bi, readlinkSync as Si, realpathSync as Ei } from "fs";
2666
+ import * as xi from "node:fs";
2667
+ import { lstat as Ci, readdir as Ti, readlink as Ai, realpath as ki } from "node:fs/promises";
2668
+ import { EventEmitter as ee } from "node:events";
2669
+ import Pe from "node:stream";
2670
+ import { StringDecoder as ni } from "node:string_decoder";
2681
2671
  var Gt = (n7, t, e) => {
2682
2672
  let s = n7 instanceof RegExp ? ce(n7, e) : n7, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
2683
2673
  return r && { start: r[0], end: r[1], pre: e.slice(0, r[0]), body: e.slice(r[0] + s.length, r[1]), post: e.slice(r[1] + i.length) };
@@ -3985,9 +3975,9 @@ var ft = class Me {
3985
3975
  }
3986
3976
  };
3987
3977
  var Ne = typeof process == "object" && process ? process : { stdout: null, stderr: null };
3988
- var oi = (n7) => !!n7 && typeof n7 == "object" && (n7 instanceof V || n7 instanceof import_node_stream.default || hi(n7) || ai(n7));
3989
- var hi = (n7) => !!n7 && typeof n7 == "object" && n7 instanceof import_node_events.EventEmitter && typeof n7.pipe == "function" && n7.pipe !== import_node_stream.default.Writable.prototype.pipe;
3990
- var ai = (n7) => !!n7 && typeof n7 == "object" && n7 instanceof import_node_events.EventEmitter && typeof n7.write == "function" && typeof n7.end == "function";
3978
+ var oi = (n7) => !!n7 && typeof n7 == "object" && (n7 instanceof V || n7 instanceof Pe || hi(n7) || ai(n7));
3979
+ var hi = (n7) => !!n7 && typeof n7 == "object" && n7 instanceof ee && typeof n7.pipe == "function" && n7.pipe !== Pe.Writable.prototype.pipe;
3980
+ var ai = (n7) => !!n7 && typeof n7 == "object" && n7 instanceof ee && typeof n7.write == "function" && typeof n7.end == "function";
3991
3981
  var G = /* @__PURE__ */ Symbol("EOF");
3992
3982
  var H = /* @__PURE__ */ Symbol("maybeEmitEnd");
3993
3983
  var K = /* @__PURE__ */ Symbol("emittedEnd");
@@ -4051,7 +4041,7 @@ var te = class extends Mt {
4051
4041
  };
4052
4042
  var di = (n7) => !!n7.objectMode;
4053
4043
  var pi = (n7) => !n7.objectMode && !!n7.encoding && n7.encoding !== "buffer";
4054
- var V = class extends import_node_events.EventEmitter {
4044
+ var V = class extends ee {
4055
4045
  [v] = false;
4056
4046
  [dt] = false;
4057
4047
  [F] = [];
@@ -4076,7 +4066,7 @@ var V = class extends import_node_events.EventEmitter {
4076
4066
  constructor(...t) {
4077
4067
  let e = t[0] || {};
4078
4068
  if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
4079
- di(e) ? (this[k] = true, this[P] = null) : pi(e) ? (this[P] = e.encoding, this[k] = false) : (this[k] = false, this[P] = null), this[B] = !!e.async, this[et] = this[P] ? new import_node_string_decoder.StringDecoder(this[P]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[C] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[F] });
4069
+ di(e) ? (this[k] = true, this[P] = null) : pi(e) ? (this[P] = e.encoding, this[k] = false) : (this[k] = false, this[P] = null), this[B] = !!e.async, this[et] = this[P] ? new ni(this[P]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[C] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[F] });
4080
4070
  let { signal: s } = e;
4081
4071
  s && (this[pt] = s, s.aborted ? this[Qt]() : s.addEventListener("abort", () => this[Qt]()));
4082
4072
  }
@@ -4323,8 +4313,8 @@ var V = class extends import_node_events.EventEmitter {
4323
4313
  return oi;
4324
4314
  }
4325
4315
  };
4326
- var vi = import_fs.realpathSync.native;
4327
- var wt = { lstatSync: import_fs.lstatSync, readdir: import_fs.readdir, readdirSync: import_fs.readdirSync, readlinkSync: import_fs.readlinkSync, realpathSync: vi, promises: { lstat: import_promises.lstat, readdir: import_promises.readdir, readlink: import_promises.readlink, realpath: import_promises.realpath } };
4316
+ var vi = Ei.native;
4317
+ var wt = { lstatSync: wi, readdir: yi, readdirSync: bi, readlinkSync: Si, realpathSync: vi, promises: { lstat: Ci, readdir: Ti, readlink: Ai, realpath: ki } };
4328
4318
  var Ue = (n7) => !n7 || n7 === wt || n7 === xi ? wt : { ...wt, ...n7, promises: { ...wt.promises, ...n7.promises || {} } };
4329
4319
  var $e = /^\\\\\?\\([a-z]:)\\?$/i;
4330
4320
  var Ri = (n7) => n7.replace(/\//g, "\\").replace($e, "$1\\");
@@ -4794,7 +4784,7 @@ var Pt = class n2 extends R {
4794
4784
  return new n2(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
4795
4785
  }
4796
4786
  getRootString(t) {
4797
- return import_node_path3.win32.parse(t).root;
4787
+ return re.parse(t).root;
4798
4788
  }
4799
4789
  getRoot(t) {
4800
4790
  if (t = Ri(t.toUpperCase()), t === this.root.name) return this.root;
@@ -4832,7 +4822,7 @@ var It = class {
4832
4822
  nocase;
4833
4823
  #r;
4834
4824
  constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16 * 1024, fs: o = wt } = {}) {
4835
- this.#r = Ue(o), (t instanceof URL || t.startsWith("file://")) && (t = (0, import_node_url4.fileURLToPath)(t));
4825
+ this.#r = Ue(o), (t instanceof URL || t.startsWith("file://")) && (t = gi(t));
4836
4826
  let h = e.resolve(t);
4837
4827
  this.roots = /* @__PURE__ */ Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne(r);
4838
4828
  let a = h.substring(this.rootPath.length).split(s);
@@ -5066,11 +5056,11 @@ var it = class extends It {
5066
5056
  sep = "\\";
5067
5057
  constructor(t = process.cwd(), e = {}) {
5068
5058
  let { nocase: s = true } = e;
5069
- super(t, import_node_path3.win32, "\\", { ...e, nocase: s }), this.nocase = s;
5059
+ super(t, re, "\\", { ...e, nocase: s }), this.nocase = s;
5070
5060
  for (let i = this.cwd; i; i = i.parent) i.nocase = this.nocase;
5071
5061
  }
5072
5062
  parseRootPath(t) {
5073
- return import_node_path3.win32.parse(t).root.toUpperCase();
5063
+ return re.parse(t).root.toUpperCase();
5074
5064
  }
5075
5065
  newRoot(t) {
5076
5066
  return new Pt(this.rootPath, U, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t });
@@ -5083,7 +5073,7 @@ var rt = class extends It {
5083
5073
  sep = "/";
5084
5074
  constructor(t = process.cwd(), e = {}) {
5085
5075
  let { nocase: s = false } = e;
5086
- super(t, import_node_path3.posix, "/", { ...e, nocase: s }), this.nocase = s;
5076
+ super(t, mi, "/", { ...e, nocase: s }), this.nocase = s;
5087
5077
  }
5088
5078
  parseRootPath(t) {
5089
5079
  return "/";
@@ -5577,7 +5567,7 @@ var I = class {
5577
5567
  patterns;
5578
5568
  constructor(t, e) {
5579
5569
  if (!e) throw new TypeError("glob options required");
5580
- if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = (0, import_node_url3.fileURLToPath)(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== false, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : 1 / 0, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
5570
+ if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = Wi(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== false, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : 1 / 0, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
5581
5571
  if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === false, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
5582
5572
  if (e.noglobstar) throw new TypeError("base matching requires globstar");
5583
5573
  t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
@@ -5656,8 +5646,8 @@ Ze.glob = Ze;
5656
5646
  var import_is_ci = __toESM(require_is_ci());
5657
5647
 
5658
5648
  // src/utils/detect-vue-major.ts
5659
- var import_vue = require("vue");
5660
5649
  var import_semver = __toESM(require_semver2());
5650
+ import { version } from "vue";
5661
5651
 
5662
5652
  // node_modules/dedent/dist/dedent.mjs
5663
5653
  function ownKeys(object, enumerableOnly) {
@@ -5812,19 +5802,19 @@ async function findReferencedFiles(filename, visited) {
5812
5802
  return;
5813
5803
  }
5814
5804
  visited.add(filename);
5815
- const content = await import_promises2.default.readFile(filename, "utf8");
5805
+ const content = await fs3.readFile(filename, "utf8");
5816
5806
  const matches = content.matchAll(/^(?:import|export)[^"]*"([^"]+)";?$/gm);
5817
5807
  for (const match of Array.from(matches)) {
5818
5808
  const modname = match[1];
5819
5809
  if (!modname.startsWith(".")) {
5820
5810
  continue;
5821
5811
  }
5822
- const relPath = import_node_path4.default.join(import_node_path4.default.dirname(filename), modname);
5823
- if ((0, import_node_fs2.existsSync)(relPath)) {
5824
- const stat = await import_promises2.default.stat(relPath);
5812
+ const relPath = path3.join(path3.dirname(filename), modname);
5813
+ if (existsSync(relPath)) {
5814
+ const stat = await fs3.stat(relPath);
5825
5815
  if (stat.isDirectory()) {
5826
5816
  await findReferencedFiles(
5827
- import_node_path4.default.join(relPath, "index.d.ts"),
5817
+ path3.join(relPath, "index.d.ts"),
5828
5818
  visited
5829
5819
  );
5830
5820
  } else {
@@ -5841,13 +5831,13 @@ async function patchAugmentations(config) {
5841
5831
  return;
5842
5832
  }
5843
5833
  async function extract(filename) {
5844
- const content = await import_promises2.default.readFile(filename, "utf8");
5834
+ const content = await fs3.readFile(filename, "utf8");
5845
5835
  return extractAugmentations(content);
5846
5836
  }
5847
5837
  async function patch(filename, augmentations2) {
5848
- const content = await import_promises2.default.readFile(filename, "utf8");
5838
+ const content = await fs3.readFile(filename, "utf8");
5849
5839
  const patched = [content, ...augmentations2].join("\n\n");
5850
- await import_promises2.default.writeFile(filename, patched, "utf8");
5840
+ await fs3.writeFile(filename, patched, "utf8");
5851
5841
  }
5852
5842
  console.log();
5853
5843
  console.group("Patching module augmentations");
@@ -5878,14 +5868,14 @@ async function patchDeclareVarVls(declarationDir) {
5878
5868
  let numPatchedFiles = 0;
5879
5869
  const filenames = await Ze("**/*.vue.d.ts", { cwd: declarationDir });
5880
5870
  const promises = filenames.map(async (filename) => {
5881
- const filePath = import_node_path4.default.join(declarationDir, filename);
5882
- const content = await import_promises2.default.readFile(filePath, "utf8");
5871
+ const filePath = path3.join(declarationDir, filename);
5872
+ const content = await fs3.readFile(filePath, "utf8");
5883
5873
  const updated = content.replace(
5884
5874
  /declare var (__VLS_\d+)/,
5885
5875
  "declare const $1"
5886
5876
  );
5887
5877
  if (content !== updated) {
5888
- await import_promises2.default.writeFile(filePath, updated, "utf8");
5878
+ await fs3.writeFile(filePath, updated, "utf8");
5889
5879
  numPatchedFiles++;
5890
5880
  console.log(filename);
5891
5881
  }
@@ -5915,6 +5905,7 @@ specify custom configuration filenames as the positional argument to this tool,
5915
5905
  e.g. \`fkui-api-extractor custom.json other.json\` would use those two filenames
5916
5906
  only.
5917
5907
  `);
5908
+ return;
5918
5909
  }
5919
5910
  const configFiles = await getConfigFiles(positional);
5920
5911
  const numFiles = configFiles.length;
@@ -5925,7 +5916,7 @@ only.
5925
5916
  console.group(`Running API Extractor in local mode on ${strFiles}:`);
5926
5917
  }
5927
5918
  for (const filePath of configFiles) {
5928
- console.log(`- ${import_node_path4.default.basename(filePath)}`);
5919
+ console.log(`- ${path3.basename(filePath)}`);
5929
5920
  }
5930
5921
  console.groupEnd();
5931
5922
  console.log();
@@ -5933,8 +5924,8 @@ only.
5933
5924
  await patchDeclareVarVls("temp/types");
5934
5925
  }
5935
5926
  for (const filePath of configFiles) {
5936
- const config = import_api_extractor.ExtractorConfig.loadFileAndPrepare(filePath);
5937
- const result = import_api_extractor.Extractor.invoke(config, {
5927
+ const config = ExtractorConfig.loadFileAndPrepare(filePath);
5928
+ const result = Extractor.invoke(config, {
5938
5929
  localBuild: !import_is_ci.default,
5939
5930
  showVerboseMessages: true
5940
5931
  });
@@ -5955,7 +5946,6 @@ only.
5955
5946
  }
5956
5947
  }
5957
5948
  }
5958
- // Annotate the CommonJS export names for ESM import in node:
5959
- 0 && (module.exports = {
5949
+ export {
5960
5950
  run
5961
- });
5951
+ };
@@ -0,0 +1,68 @@
1
+ // src/build-selectors.ts
2
+ import { existsSync } from "node:fs";
3
+ import fs from "node:fs/promises";
4
+ import path from "node:path/posix";
5
+ import * as esbuild from "esbuild";
6
+ var extension = {
7
+ cjs: ".cjs",
8
+ esm: ".mjs"
9
+ };
10
+ async function build2(entrypoint, options) {
11
+ const { external, formats } = options;
12
+ if (!existsSync(entrypoint)) {
13
+ return;
14
+ }
15
+ const basename = path.basename(path.dirname(entrypoint));
16
+ for (const format of formats) {
17
+ const result = await esbuild.build({
18
+ entryPoints: [entrypoint],
19
+ outfile: `dist/${format}/${basename}.${format}.js`,
20
+ bundle: true,
21
+ platform: "browser",
22
+ format,
23
+ target: "chrome119",
24
+ sourcemap: true,
25
+ external,
26
+ outExtension: {
27
+ ".js": extension[format]
28
+ },
29
+ logLevel: "info",
30
+ metafile: true
31
+ });
32
+ if (format === "esm") {
33
+ const output = await esbuild.analyzeMetafile(result.metafile);
34
+ console.log(output);
35
+ }
36
+ }
37
+ }
38
+ async function readJsonFile(filePath) {
39
+ const content = await fs.readFile(filePath, "utf8");
40
+ return JSON.parse(content);
41
+ }
42
+ function getExternals(pkg) {
43
+ const { peerDependencies = {}, externalDependencies = [] } = pkg;
44
+ const unique = /* @__PURE__ */ new Set([
45
+ ...Object.keys(peerDependencies),
46
+ ...externalDependencies
47
+ ]);
48
+ return Array.from(unique).toSorted((a, b) => a.localeCompare(b));
49
+ }
50
+ async function run(argv) {
51
+ const flags = new Set(argv.filter((it) => it.startsWith("--")));
52
+ if (flags.has("--help")) {
53
+ console.log("usage: fk-build-selectors [OPTIONS..]");
54
+ console.log(`
55
+ --help Show this help.
56
+ `);
57
+ return;
58
+ }
59
+ const pkg = await readJsonFile("package.json");
60
+ const external = getExternals(pkg);
61
+ const formats = ["cjs", "esm"];
62
+ await build2("src/cypress/index.ts", { external, formats });
63
+ await build2("src/selectors/index.ts", { external, formats });
64
+ }
65
+ export {
66
+ getExternals,
67
+ run
68
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vite-lib-config",
3
- "version": "4.7.0",
3
+ "version": "4.7.2",
4
4
  "description": "Försäkringskassan toolchain to build libraries with Vite",
5
5
  "keywords": [
6
6
  "vite"
@@ -32,7 +32,7 @@
32
32
  "main": "./dist/index.js",
33
33
  "types": "./dist/index.d.ts",
34
34
  "bin": {
35
- "fk-api-extractor": "bin/api-extractor.js",
35
+ "fk-api-extractor": "bin/api-extractor.mjs",
36
36
  "fk-build-vue-lib": "bin/build-vue-lib.mjs",
37
37
  "fk-build-selectors": "bin/build-selectors.mjs"
38
38
  },
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { run } = require("../dist/api-extractor");
4
-
5
- const argv = process.argv.slice(2);
6
-
7
- /* eslint-disable-next-line unicorn/prefer-top-level-await -- technical debt, this still runs as commonjs */
8
- run(argv).catch((err) => {
9
- console.error(err);
10
- process.exitCode = 1;
11
- });
@@ -1,83 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/build-selectors.ts
30
- var build_selectors_exports = {};
31
- __export(build_selectors_exports, {
32
- run: () => run
33
- });
34
- module.exports = __toCommonJS(build_selectors_exports);
35
- var import_node_fs = require("node:fs");
36
- var import_posix = __toESM(require("node:path/posix"));
37
- var esbuild = __toESM(require("esbuild"));
38
- var extension = {
39
- cjs: ".cjs",
40
- esm: ".mjs"
41
- };
42
- async function build2(entrypoint, formats) {
43
- if (!(0, import_node_fs.existsSync)(entrypoint)) {
44
- return;
45
- }
46
- const basename = import_posix.default.basename(import_posix.default.dirname(entrypoint));
47
- for (const format of formats) {
48
- const result = await esbuild.build({
49
- entryPoints: [entrypoint],
50
- outfile: `dist/${format}/${basename}.${format}.js`,
51
- bundle: true,
52
- platform: "browser",
53
- format,
54
- target: "chrome119",
55
- sourcemap: true,
56
- outExtension: {
57
- ".js": extension[format]
58
- },
59
- logLevel: "info",
60
- metafile: true
61
- });
62
- if (format === "esm") {
63
- const output = await esbuild.analyzeMetafile(result.metafile);
64
- console.log(output);
65
- }
66
- }
67
- }
68
- async function run(argv) {
69
- const flags = new Set(argv.filter((it) => it.startsWith("--")));
70
- if (flags.has("--help")) {
71
- console.log("usage: fk-build-selectors [OPTIONS..]");
72
- console.log(`
73
- --help Show this help.
74
- `);
75
- }
76
- const formats = ["cjs", "esm"];
77
- await build2("src/cypress/index.ts", formats);
78
- await build2("src/selectors/index.ts", formats);
79
- }
80
- // Annotate the CommonJS export names for ESM import in node:
81
- 0 && (module.exports = {
82
- run
83
- });