@forsakringskassan/vite-lib-config 1.7.5 → 1.7.7

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.
@@ -3806,6 +3806,9 @@ minimatch.Minimatch = Minimatch;
3806
3806
  minimatch.escape = escape;
3807
3807
  minimatch.unescape = unescape;
3808
3808
 
3809
+ // node_modules/glob/dist/esm/glob.js
3810
+ var import_node_url2 = require("node:url");
3811
+
3809
3812
  // node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js
3810
3813
  var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
3811
3814
  var warned = /* @__PURE__ */ new Set();
@@ -5098,17 +5101,17 @@ var actualFS = __toESM(require("node:fs"), 1);
5098
5101
  var import_promises = require("node:fs/promises");
5099
5102
 
5100
5103
  // node_modules/minipass/dist/esm/index.js
5101
- var import_events = require("events");
5102
- var import_stream = __toESM(require("stream"), 1);
5103
- var import_string_decoder = require("string_decoder");
5104
+ var import_node_events = require("node:events");
5105
+ var import_node_stream = __toESM(require("node:stream"), 1);
5106
+ var import_node_string_decoder = require("node:string_decoder");
5104
5107
  var proc = typeof process === "object" && process ? process : {
5105
5108
  stdout: null,
5106
5109
  stderr: null
5107
5110
  };
5108
- var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof import_stream.default || isReadable(s) || isWritable(s));
5109
- var isReadable = (s) => !!s && typeof s === "object" && s instanceof import_events.EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
5110
- s.pipe !== import_stream.default.Writable.prototype.pipe;
5111
- var isWritable = (s) => !!s && typeof s === "object" && s instanceof import_events.EventEmitter && typeof s.write === "function" && typeof s.end === "function";
5111
+ var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof import_node_stream.default || isReadable(s) || isWritable(s));
5112
+ var isReadable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
5113
+ s.pipe !== import_node_stream.default.Writable.prototype.pipe;
5114
+ var isWritable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.write === "function" && typeof s.end === "function";
5112
5115
  var EOF = Symbol("EOF");
5113
5116
  var MAYBE_EMIT_END = Symbol("maybeEmitEnd");
5114
5117
  var EMITTED_END = Symbol("emittedEnd");
@@ -5184,7 +5187,7 @@ var PipeProxyErrors = class extends Pipe {
5184
5187
  };
5185
5188
  var isObjectModeOptions = (o) => !!o.objectMode;
5186
5189
  var isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer";
5187
- var Minipass = class extends import_events.EventEmitter {
5190
+ var Minipass = class extends import_node_events.EventEmitter {
5188
5191
  [FLOWING] = false;
5189
5192
  [PAUSED] = false;
5190
5193
  [PIPES] = [];
@@ -5235,7 +5238,7 @@ var Minipass = class extends import_events.EventEmitter {
5235
5238
  this[ENCODING] = null;
5236
5239
  }
5237
5240
  this[ASYNC] = !!options.async;
5238
- this[DECODER] = this[ENCODING] ? new import_string_decoder.StringDecoder(this[ENCODING]) : null;
5241
+ this[DECODER] = this[ENCODING] ? new import_node_string_decoder.StringDecoder(this[ENCODING]) : null;
5239
5242
  if (options && options.debugExposeBuffer === true) {
5240
5243
  Object.defineProperty(this, "buffer", { get: () => this[BUFFER] });
5241
5244
  }
@@ -7703,9 +7706,6 @@ var PathScurryDarwin = class extends PathScurryPosix {
7703
7706
  var Path = process.platform === "win32" ? PathWin32 : PathPosix;
7704
7707
  var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
7705
7708
 
7706
- // node_modules/glob/dist/esm/glob.js
7707
- var import_node_url2 = require("node:url");
7708
-
7709
7709
  // node_modules/glob/dist/esm/pattern.js
7710
7710
  var isPatternList = (pl) => pl.length >= 1;
7711
7711
  var isGlobList = (gl) => gl.length >= 1;
@@ -7878,12 +7878,15 @@ var Ignore = class {
7878
7878
  relativeChildren;
7879
7879
  absolute;
7880
7880
  absoluteChildren;
7881
+ platform;
7882
+ mmopts;
7881
7883
  constructor(ignored, { nobrace, nocase, noext, noglobstar, platform = defaultPlatform2 }) {
7882
7884
  this.relative = [];
7883
7885
  this.absolute = [];
7884
7886
  this.relativeChildren = [];
7885
7887
  this.absoluteChildren = [];
7886
- const mmopts = {
7888
+ this.platform = platform;
7889
+ this.mmopts = {
7887
7890
  dot: true,
7888
7891
  nobrace,
7889
7892
  nocase,
@@ -7894,32 +7897,34 @@ var Ignore = class {
7894
7897
  nocomment: true,
7895
7898
  nonegate: true
7896
7899
  };
7897
- for (const ign of ignored) {
7898
- const mm = new Minimatch(ign, mmopts);
7899
- for (let i = 0; i < mm.set.length; i++) {
7900
- const parsed = mm.set[i];
7901
- const globParts = mm.globParts[i];
7902
- if (!parsed || !globParts) {
7903
- throw new Error("invalid pattern object");
7904
- }
7905
- while (parsed[0] === "." && globParts[0] === ".") {
7906
- parsed.shift();
7907
- globParts.shift();
7908
- }
7909
- const p = new Pattern(parsed, globParts, 0, platform);
7910
- const m = new Minimatch(p.globString(), mmopts);
7911
- const children = globParts[globParts.length - 1] === "**";
7912
- const absolute = p.isAbsolute();
7900
+ for (const ign of ignored)
7901
+ this.add(ign);
7902
+ }
7903
+ add(ign) {
7904
+ const mm = new Minimatch(ign, this.mmopts);
7905
+ for (let i = 0; i < mm.set.length; i++) {
7906
+ const parsed = mm.set[i];
7907
+ const globParts = mm.globParts[i];
7908
+ if (!parsed || !globParts) {
7909
+ throw new Error("invalid pattern object");
7910
+ }
7911
+ while (parsed[0] === "." && globParts[0] === ".") {
7912
+ parsed.shift();
7913
+ globParts.shift();
7914
+ }
7915
+ const p = new Pattern(parsed, globParts, 0, this.platform);
7916
+ const m = new Minimatch(p.globString(), this.mmopts);
7917
+ const children = globParts[globParts.length - 1] === "**";
7918
+ const absolute = p.isAbsolute();
7919
+ if (absolute)
7920
+ this.absolute.push(m);
7921
+ else
7922
+ this.relative.push(m);
7923
+ if (children) {
7913
7924
  if (absolute)
7914
- this.absolute.push(m);
7925
+ this.absoluteChildren.push(m);
7915
7926
  else
7916
- this.relative.push(m);
7917
- if (children) {
7918
- if (absolute)
7919
- this.absoluteChildren.push(m);
7920
- else
7921
- this.relativeChildren.push(m);
7922
- }
7927
+ this.relativeChildren.push(m);
7923
7928
  }
7924
7929
  }
7925
7930
  }
@@ -8189,13 +8194,19 @@ var GlobUtil = class {
8189
8194
  #sep;
8190
8195
  signal;
8191
8196
  maxDepth;
8197
+ includeChildMatches;
8192
8198
  constructor(patterns, path5, opts) {
8193
8199
  this.patterns = patterns;
8194
8200
  this.path = path5;
8195
8201
  this.opts = opts;
8196
8202
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
8197
- if (opts.ignore) {
8198
- this.#ignore = makeIgnore(opts.ignore, opts);
8203
+ this.includeChildMatches = opts.includeChildMatches !== false;
8204
+ if (opts.ignore || !this.includeChildMatches) {
8205
+ this.#ignore = makeIgnore(opts.ignore ?? [], opts);
8206
+ if (!this.includeChildMatches && typeof this.#ignore.add !== "function") {
8207
+ const m = "cannot ignore child matches, ignore lacks add() method.";
8208
+ throw new Error(m);
8209
+ }
8199
8210
  }
8200
8211
  this.maxDepth = opts.maxDepth || Infinity;
8201
8212
  if (opts.signal) {
@@ -8284,8 +8295,13 @@ var GlobUtil = class {
8284
8295
  return this.matchCheckTest(s, ifDir);
8285
8296
  }
8286
8297
  matchFinish(e, absolute) {
8298
+ var _a2;
8287
8299
  if (this.#ignored(e))
8288
8300
  return;
8301
+ if (!this.includeChildMatches && ((_a2 = this.#ignore) == null ? void 0 : _a2.add)) {
8302
+ const ign = `${e.relativePosix()}/**`;
8303
+ this.#ignore.add(ign);
8304
+ }
8289
8305
  const abs = this.opts.absolute === void 0 ? absolute : this.opts.absolute;
8290
8306
  this.seen.add(e);
8291
8307
  const mark = this.opts.mark && e.isDirectory() ? this.#sep : "";
@@ -8428,10 +8444,9 @@ var GlobUtil = class {
8428
8444
  }
8429
8445
  };
8430
8446
  var GlobWalker = class extends GlobUtil {
8431
- matches;
8447
+ matches = /* @__PURE__ */ new Set();
8432
8448
  constructor(patterns, path5, opts) {
8433
8449
  super(patterns, path5, opts);
8434
- this.matches = /* @__PURE__ */ new Set();
8435
8450
  }
8436
8451
  matchEmit(e) {
8437
8452
  this.matches.add(e);
@@ -8533,6 +8548,7 @@ var Glob = class {
8533
8548
  signal;
8534
8549
  windowsPathsNoEscape;
8535
8550
  withFileTypes;
8551
+ includeChildMatches;
8536
8552
  /**
8537
8553
  * The options provided to the constructor.
8538
8554
  */
@@ -8575,6 +8591,7 @@ var Glob = class {
8575
8591
  this.noext = !!opts.noext;
8576
8592
  this.realpath = !!opts.realpath;
8577
8593
  this.absolute = opts.absolute;
8594
+ this.includeChildMatches = opts.includeChildMatches !== false;
8578
8595
  this.noglobstar = !!opts.noglobstar;
8579
8596
  this.matchBase = !!opts.matchBase;
8580
8597
  this.maxDepth = typeof opts.maxDepth === "number" ? opts.maxDepth : Infinity;
@@ -8648,7 +8665,8 @@ var Glob = class {
8648
8665
  ...this.opts,
8649
8666
  maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
8650
8667
  platform: this.platform,
8651
- nocase: this.nocase
8668
+ nocase: this.nocase,
8669
+ includeChildMatches: this.includeChildMatches
8652
8670
  }).walk()
8653
8671
  ];
8654
8672
  }
@@ -8658,7 +8676,8 @@ var Glob = class {
8658
8676
  ...this.opts,
8659
8677
  maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
8660
8678
  platform: this.platform,
8661
- nocase: this.nocase
8679
+ nocase: this.nocase,
8680
+ includeChildMatches: this.includeChildMatches
8662
8681
  }).walkSync()
8663
8682
  ];
8664
8683
  }
@@ -8667,7 +8686,8 @@ var Glob = class {
8667
8686
  ...this.opts,
8668
8687
  maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
8669
8688
  platform: this.platform,
8670
- nocase: this.nocase
8689
+ nocase: this.nocase,
8690
+ includeChildMatches: this.includeChildMatches
8671
8691
  }).stream();
8672
8692
  }
8673
8693
  streamSync() {
@@ -8675,7 +8695,8 @@ var Glob = class {
8675
8695
  ...this.opts,
8676
8696
  maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
8677
8697
  platform: this.platform,
8678
- nocase: this.nocase
8698
+ nocase: this.nocase,
8699
+ includeChildMatches: this.includeChildMatches
8679
8700
  }).streamSync();
8680
8701
  }
8681
8702
  /**
package/dist/cli.js CHANGED
@@ -32,47 +32,55 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
32
32
  // node_modules/picocolors/picocolors.js
33
33
  var require_picocolors = __commonJS({
34
34
  "node_modules/picocolors/picocolors.js"(exports2, module2) {
35
- var tty = require("tty");
36
- var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
35
+ var argv = process.argv || [];
36
+ var env = process.env;
37
+ var isColorSupported = !("NO_COLOR" in env || argv.includes("--no-color")) && ("FORCE_COLOR" in env || argv.includes("--color") || process.platform === "win32" || require != null && require("tty").isatty(1) && env.TERM !== "dumb" || "CI" in env);
37
38
  var formatter = (open, close, replace = open) => (input) => {
38
39
  let string = "" + input;
39
40
  let index = string.indexOf(close, open.length);
40
41
  return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
41
42
  };
42
43
  var replaceClose = (string, close, replace, index) => {
43
- let start = string.substring(0, index) + replace;
44
- let end = string.substring(index + close.length);
45
- let nextIndex = end.indexOf(close);
46
- return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
44
+ let result = "";
45
+ let cursor = 0;
46
+ do {
47
+ result += string.substring(cursor, index) + replace;
48
+ cursor = index + close.length;
49
+ index = string.indexOf(close, cursor);
50
+ } while (~index);
51
+ return result + string.substring(cursor);
52
+ };
53
+ var createColors = (enabled = isColorSupported) => {
54
+ let init = enabled ? formatter : () => String;
55
+ return {
56
+ isColorSupported: enabled,
57
+ reset: init("\x1B[0m", "\x1B[0m"),
58
+ bold: init("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
59
+ dim: init("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
60
+ italic: init("\x1B[3m", "\x1B[23m"),
61
+ underline: init("\x1B[4m", "\x1B[24m"),
62
+ inverse: init("\x1B[7m", "\x1B[27m"),
63
+ hidden: init("\x1B[8m", "\x1B[28m"),
64
+ strikethrough: init("\x1B[9m", "\x1B[29m"),
65
+ black: init("\x1B[30m", "\x1B[39m"),
66
+ red: init("\x1B[31m", "\x1B[39m"),
67
+ green: init("\x1B[32m", "\x1B[39m"),
68
+ yellow: init("\x1B[33m", "\x1B[39m"),
69
+ blue: init("\x1B[34m", "\x1B[39m"),
70
+ magenta: init("\x1B[35m", "\x1B[39m"),
71
+ cyan: init("\x1B[36m", "\x1B[39m"),
72
+ white: init("\x1B[37m", "\x1B[39m"),
73
+ gray: init("\x1B[90m", "\x1B[39m"),
74
+ bgBlack: init("\x1B[40m", "\x1B[49m"),
75
+ bgRed: init("\x1B[41m", "\x1B[49m"),
76
+ bgGreen: init("\x1B[42m", "\x1B[49m"),
77
+ bgYellow: init("\x1B[43m", "\x1B[49m"),
78
+ bgBlue: init("\x1B[44m", "\x1B[49m"),
79
+ bgMagenta: init("\x1B[45m", "\x1B[49m"),
80
+ bgCyan: init("\x1B[46m", "\x1B[49m"),
81
+ bgWhite: init("\x1B[47m", "\x1B[49m")
82
+ };
47
83
  };
48
- var createColors = (enabled = isColorSupported) => ({
49
- isColorSupported: enabled,
50
- reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
51
- bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
52
- dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
53
- italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
54
- underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
55
- inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
56
- hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
57
- strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
58
- black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
59
- red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
60
- green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
61
- yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
62
- blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
63
- magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
64
- cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
65
- white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
66
- gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
67
- bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
68
- bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
69
- bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
70
- bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
71
- bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
72
- bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
73
- bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
74
- bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
75
- });
76
84
  module2.exports = createColors();
77
85
  module2.exports.createColors = createColors;
78
86
  }
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.43.4"
8
+ "packageVersion": "7.44.1"
9
9
  }
10
10
  ]
11
11
  }
@@ -135,47 +135,55 @@ var require_cjs = __commonJS({
135
135
  // node_modules/picocolors/picocolors.js
136
136
  var require_picocolors = __commonJS({
137
137
  "node_modules/picocolors/picocolors.js"(exports2, module2) {
138
- var tty = require("tty");
139
- var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
138
+ var argv = process.argv || [];
139
+ var env = process.env;
140
+ var isColorSupported = !("NO_COLOR" in env || argv.includes("--no-color")) && ("FORCE_COLOR" in env || argv.includes("--color") || process.platform === "win32" || require != null && require("tty").isatty(1) && env.TERM !== "dumb" || "CI" in env);
140
141
  var formatter = (open, close, replace = open) => (input) => {
141
142
  let string = "" + input;
142
143
  let index = string.indexOf(close, open.length);
143
144
  return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
144
145
  };
145
146
  var replaceClose = (string, close, replace, index) => {
146
- let start = string.substring(0, index) + replace;
147
- let end = string.substring(index + close.length);
148
- let nextIndex = end.indexOf(close);
149
- return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
147
+ let result = "";
148
+ let cursor = 0;
149
+ do {
150
+ result += string.substring(cursor, index) + replace;
151
+ cursor = index + close.length;
152
+ index = string.indexOf(close, cursor);
153
+ } while (~index);
154
+ return result + string.substring(cursor);
155
+ };
156
+ var createColors = (enabled = isColorSupported) => {
157
+ let init = enabled ? formatter : () => String;
158
+ return {
159
+ isColorSupported: enabled,
160
+ reset: init("\x1B[0m", "\x1B[0m"),
161
+ bold: init("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
162
+ dim: init("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
163
+ italic: init("\x1B[3m", "\x1B[23m"),
164
+ underline: init("\x1B[4m", "\x1B[24m"),
165
+ inverse: init("\x1B[7m", "\x1B[27m"),
166
+ hidden: init("\x1B[8m", "\x1B[28m"),
167
+ strikethrough: init("\x1B[9m", "\x1B[29m"),
168
+ black: init("\x1B[30m", "\x1B[39m"),
169
+ red: init("\x1B[31m", "\x1B[39m"),
170
+ green: init("\x1B[32m", "\x1B[39m"),
171
+ yellow: init("\x1B[33m", "\x1B[39m"),
172
+ blue: init("\x1B[34m", "\x1B[39m"),
173
+ magenta: init("\x1B[35m", "\x1B[39m"),
174
+ cyan: init("\x1B[36m", "\x1B[39m"),
175
+ white: init("\x1B[37m", "\x1B[39m"),
176
+ gray: init("\x1B[90m", "\x1B[39m"),
177
+ bgBlack: init("\x1B[40m", "\x1B[49m"),
178
+ bgRed: init("\x1B[41m", "\x1B[49m"),
179
+ bgGreen: init("\x1B[42m", "\x1B[49m"),
180
+ bgYellow: init("\x1B[43m", "\x1B[49m"),
181
+ bgBlue: init("\x1B[44m", "\x1B[49m"),
182
+ bgMagenta: init("\x1B[45m", "\x1B[49m"),
183
+ bgCyan: init("\x1B[46m", "\x1B[49m"),
184
+ bgWhite: init("\x1B[47m", "\x1B[49m")
185
+ };
150
186
  };
151
- var createColors = (enabled = isColorSupported) => ({
152
- isColorSupported: enabled,
153
- reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
154
- bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
155
- dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
156
- italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
157
- underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
158
- inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
159
- hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
160
- strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
161
- black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
162
- red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
163
- green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
164
- yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
165
- blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
166
- magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
167
- cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
168
- white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
169
- gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
170
- bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
171
- bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
172
- bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
173
- bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
174
- bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
175
- bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
176
- bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
177
- bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
178
- });
179
187
  module2.exports = createColors();
180
188
  module2.exports.createColors = createColors;
181
189
  }
@@ -7276,6 +7284,9 @@ minimatch.Minimatch = Minimatch;
7276
7284
  minimatch.escape = escape;
7277
7285
  minimatch.unescape = unescape;
7278
7286
 
7287
+ // node_modules/glob/dist/esm/glob.js
7288
+ var import_node_url2 = require("node:url");
7289
+
7279
7290
  // node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js
7280
7291
  var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
7281
7292
  var warned = /* @__PURE__ */ new Set();
@@ -8568,17 +8579,17 @@ var actualFS = __toESM(require("node:fs"), 1);
8568
8579
  var import_promises2 = require("node:fs/promises");
8569
8580
 
8570
8581
  // node_modules/minipass/dist/esm/index.js
8571
- var import_events = require("events");
8572
- var import_stream = __toESM(require("stream"), 1);
8573
- var import_string_decoder = require("string_decoder");
8582
+ var import_node_events = require("node:events");
8583
+ var import_node_stream = __toESM(require("node:stream"), 1);
8584
+ var import_node_string_decoder = require("node:string_decoder");
8574
8585
  var proc = typeof process === "object" && process ? process : {
8575
8586
  stdout: null,
8576
8587
  stderr: null
8577
8588
  };
8578
- var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof import_stream.default || isReadable(s) || isWritable(s));
8579
- var isReadable = (s) => !!s && typeof s === "object" && s instanceof import_events.EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
8580
- s.pipe !== import_stream.default.Writable.prototype.pipe;
8581
- var isWritable = (s) => !!s && typeof s === "object" && s instanceof import_events.EventEmitter && typeof s.write === "function" && typeof s.end === "function";
8589
+ var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof import_node_stream.default || isReadable(s) || isWritable(s));
8590
+ var isReadable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
8591
+ s.pipe !== import_node_stream.default.Writable.prototype.pipe;
8592
+ var isWritable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.write === "function" && typeof s.end === "function";
8582
8593
  var EOF = Symbol("EOF");
8583
8594
  var MAYBE_EMIT_END = Symbol("maybeEmitEnd");
8584
8595
  var EMITTED_END = Symbol("emittedEnd");
@@ -8654,7 +8665,7 @@ var PipeProxyErrors = class extends Pipe {
8654
8665
  };
8655
8666
  var isObjectModeOptions = (o) => !!o.objectMode;
8656
8667
  var isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer";
8657
- var Minipass = class extends import_events.EventEmitter {
8668
+ var Minipass = class extends import_node_events.EventEmitter {
8658
8669
  [FLOWING] = false;
8659
8670
  [PAUSED] = false;
8660
8671
  [PIPES] = [];
@@ -8705,7 +8716,7 @@ var Minipass = class extends import_events.EventEmitter {
8705
8716
  this[ENCODING] = null;
8706
8717
  }
8707
8718
  this[ASYNC] = !!options.async;
8708
- this[DECODER] = this[ENCODING] ? new import_string_decoder.StringDecoder(this[ENCODING]) : null;
8719
+ this[DECODER] = this[ENCODING] ? new import_node_string_decoder.StringDecoder(this[ENCODING]) : null;
8709
8720
  if (options && options.debugExposeBuffer === true) {
8710
8721
  Object.defineProperty(this, "buffer", { get: () => this[BUFFER] });
8711
8722
  }
@@ -11173,9 +11184,6 @@ var PathScurryDarwin = class extends PathScurryPosix {
11173
11184
  var Path = process.platform === "win32" ? PathWin32 : PathPosix;
11174
11185
  var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
11175
11186
 
11176
- // node_modules/glob/dist/esm/glob.js
11177
- var import_node_url2 = require("node:url");
11178
-
11179
11187
  // node_modules/glob/dist/esm/pattern.js
11180
11188
  var isPatternList = (pl) => pl.length >= 1;
11181
11189
  var isGlobList = (gl) => gl.length >= 1;
@@ -11348,12 +11356,15 @@ var Ignore = class {
11348
11356
  relativeChildren;
11349
11357
  absolute;
11350
11358
  absoluteChildren;
11359
+ platform;
11360
+ mmopts;
11351
11361
  constructor(ignored, { nobrace, nocase, noext, noglobstar, platform = defaultPlatform2 }) {
11352
11362
  this.relative = [];
11353
11363
  this.absolute = [];
11354
11364
  this.relativeChildren = [];
11355
11365
  this.absoluteChildren = [];
11356
- const mmopts = {
11366
+ this.platform = platform;
11367
+ this.mmopts = {
11357
11368
  dot: true,
11358
11369
  nobrace,
11359
11370
  nocase,
@@ -11364,32 +11375,34 @@ var Ignore = class {
11364
11375
  nocomment: true,
11365
11376
  nonegate: true
11366
11377
  };
11367
- for (const ign of ignored) {
11368
- const mm = new Minimatch(ign, mmopts);
11369
- for (let i = 0; i < mm.set.length; i++) {
11370
- const parsed = mm.set[i];
11371
- const globParts = mm.globParts[i];
11372
- if (!parsed || !globParts) {
11373
- throw new Error("invalid pattern object");
11374
- }
11375
- while (parsed[0] === "." && globParts[0] === ".") {
11376
- parsed.shift();
11377
- globParts.shift();
11378
- }
11379
- const p = new Pattern(parsed, globParts, 0, platform);
11380
- const m = new Minimatch(p.globString(), mmopts);
11381
- const children = globParts[globParts.length - 1] === "**";
11382
- const absolute = p.isAbsolute();
11378
+ for (const ign of ignored)
11379
+ this.add(ign);
11380
+ }
11381
+ add(ign) {
11382
+ const mm = new Minimatch(ign, this.mmopts);
11383
+ for (let i = 0; i < mm.set.length; i++) {
11384
+ const parsed = mm.set[i];
11385
+ const globParts = mm.globParts[i];
11386
+ if (!parsed || !globParts) {
11387
+ throw new Error("invalid pattern object");
11388
+ }
11389
+ while (parsed[0] === "." && globParts[0] === ".") {
11390
+ parsed.shift();
11391
+ globParts.shift();
11392
+ }
11393
+ const p = new Pattern(parsed, globParts, 0, this.platform);
11394
+ const m = new Minimatch(p.globString(), this.mmopts);
11395
+ const children = globParts[globParts.length - 1] === "**";
11396
+ const absolute = p.isAbsolute();
11397
+ if (absolute)
11398
+ this.absolute.push(m);
11399
+ else
11400
+ this.relative.push(m);
11401
+ if (children) {
11383
11402
  if (absolute)
11384
- this.absolute.push(m);
11403
+ this.absoluteChildren.push(m);
11385
11404
  else
11386
- this.relative.push(m);
11387
- if (children) {
11388
- if (absolute)
11389
- this.absoluteChildren.push(m);
11390
- else
11391
- this.relativeChildren.push(m);
11392
- }
11405
+ this.relativeChildren.push(m);
11393
11406
  }
11394
11407
  }
11395
11408
  }
@@ -11659,13 +11672,19 @@ var GlobUtil = class {
11659
11672
  #sep;
11660
11673
  signal;
11661
11674
  maxDepth;
11675
+ includeChildMatches;
11662
11676
  constructor(patterns, path4, opts) {
11663
11677
  this.patterns = patterns;
11664
11678
  this.path = path4;
11665
11679
  this.opts = opts;
11666
11680
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
11667
- if (opts.ignore) {
11668
- this.#ignore = makeIgnore(opts.ignore, opts);
11681
+ this.includeChildMatches = opts.includeChildMatches !== false;
11682
+ if (opts.ignore || !this.includeChildMatches) {
11683
+ this.#ignore = makeIgnore(opts.ignore ?? [], opts);
11684
+ if (!this.includeChildMatches && typeof this.#ignore.add !== "function") {
11685
+ const m = "cannot ignore child matches, ignore lacks add() method.";
11686
+ throw new Error(m);
11687
+ }
11669
11688
  }
11670
11689
  this.maxDepth = opts.maxDepth || Infinity;
11671
11690
  if (opts.signal) {
@@ -11754,8 +11773,13 @@ var GlobUtil = class {
11754
11773
  return this.matchCheckTest(s, ifDir);
11755
11774
  }
11756
11775
  matchFinish(e, absolute) {
11776
+ var _a2;
11757
11777
  if (this.#ignored(e))
11758
11778
  return;
11779
+ if (!this.includeChildMatches && ((_a2 = this.#ignore) == null ? void 0 : _a2.add)) {
11780
+ const ign = `${e.relativePosix()}/**`;
11781
+ this.#ignore.add(ign);
11782
+ }
11759
11783
  const abs = this.opts.absolute === void 0 ? absolute : this.opts.absolute;
11760
11784
  this.seen.add(e);
11761
11785
  const mark = this.opts.mark && e.isDirectory() ? this.#sep : "";
@@ -11898,10 +11922,9 @@ var GlobUtil = class {
11898
11922
  }
11899
11923
  };
11900
11924
  var GlobWalker = class extends GlobUtil {
11901
- matches;
11925
+ matches = /* @__PURE__ */ new Set();
11902
11926
  constructor(patterns, path4, opts) {
11903
11927
  super(patterns, path4, opts);
11904
- this.matches = /* @__PURE__ */ new Set();
11905
11928
  }
11906
11929
  matchEmit(e) {
11907
11930
  this.matches.add(e);
@@ -12003,6 +12026,7 @@ var Glob = class {
12003
12026
  signal;
12004
12027
  windowsPathsNoEscape;
12005
12028
  withFileTypes;
12029
+ includeChildMatches;
12006
12030
  /**
12007
12031
  * The options provided to the constructor.
12008
12032
  */
@@ -12045,6 +12069,7 @@ var Glob = class {
12045
12069
  this.noext = !!opts.noext;
12046
12070
  this.realpath = !!opts.realpath;
12047
12071
  this.absolute = opts.absolute;
12072
+ this.includeChildMatches = opts.includeChildMatches !== false;
12048
12073
  this.noglobstar = !!opts.noglobstar;
12049
12074
  this.matchBase = !!opts.matchBase;
12050
12075
  this.maxDepth = typeof opts.maxDepth === "number" ? opts.maxDepth : Infinity;
@@ -12118,7 +12143,8 @@ var Glob = class {
12118
12143
  ...this.opts,
12119
12144
  maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
12120
12145
  platform: this.platform,
12121
- nocase: this.nocase
12146
+ nocase: this.nocase,
12147
+ includeChildMatches: this.includeChildMatches
12122
12148
  }).walk()
12123
12149
  ];
12124
12150
  }
@@ -12128,7 +12154,8 @@ var Glob = class {
12128
12154
  ...this.opts,
12129
12155
  maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
12130
12156
  platform: this.platform,
12131
- nocase: this.nocase
12157
+ nocase: this.nocase,
12158
+ includeChildMatches: this.includeChildMatches
12132
12159
  }).walkSync()
12133
12160
  ];
12134
12161
  }
@@ -12137,7 +12164,8 @@ var Glob = class {
12137
12164
  ...this.opts,
12138
12165
  maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
12139
12166
  platform: this.platform,
12140
- nocase: this.nocase
12167
+ nocase: this.nocase,
12168
+ includeChildMatches: this.includeChildMatches
12141
12169
  }).stream();
12142
12170
  }
12143
12171
  streamSync() {
@@ -12145,7 +12173,8 @@ var Glob = class {
12145
12173
  ...this.opts,
12146
12174
  maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
12147
12175
  platform: this.platform,
12148
- nocase: this.nocase
12176
+ nocase: this.nocase,
12177
+ includeChildMatches: this.includeChildMatches
12149
12178
  }).streamSync();
12150
12179
  }
12151
12180
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vite-lib-config",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "description": "Försäkringskassan toolchain to build libraries with Vite",
5
5
  "keywords": [
6
6
  "vite"
@@ -41,7 +41,7 @@
41
41
  "dist"
42
42
  ],
43
43
  "dependencies": {
44
- "@microsoft/api-extractor": "7.43.4",
44
+ "@microsoft/api-extractor": "7.44.1",
45
45
  "@vue/babel-preset-app": "5.0.8"
46
46
  },
47
47
  "peerDependencies": {