wxt 0.18.6 → 0.18.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.
package/dist/sandbox.js CHANGED
@@ -1,14 +1,12 @@
1
1
  // src/sandbox/define-unlisted-script.ts
2
2
  function defineUnlistedScript(arg) {
3
- if (typeof arg === "function")
4
- return { main: arg };
3
+ if (typeof arg === "function") return { main: arg };
5
4
  return arg;
6
5
  }
7
6
 
8
7
  // src/sandbox/define-background.ts
9
8
  function defineBackground(arg) {
10
- if (typeof arg === "function")
11
- return { main: arg };
9
+ if (typeof arg === "function") return { main: arg };
12
10
  return arg;
13
11
  }
14
12
 
package/dist/storage.cjs CHANGED
@@ -44,8 +44,7 @@ var import_lite = require("dequal/lite");
44
44
  // src/sandbox/utils/logger.ts
45
45
  var import_meta = {};
46
46
  function print(method, ...args) {
47
- if (import_meta.env.MODE === "production")
48
- return;
47
+ if (import_meta.env.MODE === "production") return;
49
48
  if (typeof args[0] === "string") {
50
49
  const message = args.shift();
51
50
  method(`[wxt] ${message}`, ...args);
@@ -282,8 +281,7 @@ function createStorage() {
282
281
  driverKey,
283
282
  driverMetaKey
284
283
  ]);
285
- if (value == null)
286
- return;
284
+ if (value == null) return;
287
285
  const currentVersion = meta?.v ?? 1;
288
286
  if (currentVersion > targetVersion) {
289
287
  throw Error(
@@ -416,10 +414,8 @@ function createDriver(storageArea) {
416
414
  watch(key, cb) {
417
415
  const listener = (changes) => {
418
416
  const change = changes[key];
419
- if (change == null)
420
- return;
421
- if ((0, import_lite.dequal)(change.newValue, change.oldValue))
422
- return;
417
+ if (change == null) return;
418
+ if ((0, import_lite.dequal)(change.newValue, change.oldValue)) return;
423
419
  cb(change.newValue ?? null, change.oldValue ?? null);
424
420
  };
425
421
  getStorageArea().onChanged.addListener(listener);
package/dist/storage.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  toArray
3
- } from "./chunk-5X3S6AWF.js";
4
- import "./chunk-VBXJIVYU.js";
3
+ } from "./chunk-BERPNPEZ.js";
4
+ import "./chunk-QGM4M3NI.js";
5
5
 
6
6
  // src/browser.ts
7
7
  import originalBrowser from "webextension-polyfill";
@@ -12,8 +12,7 @@ import { dequal } from "dequal/lite";
12
12
 
13
13
  // src/sandbox/utils/logger.ts
14
14
  function print(method, ...args) {
15
- if (import.meta.env.MODE === "production")
16
- return;
15
+ if (import.meta.env.MODE === "production") return;
17
16
  if (typeof args[0] === "string") {
18
17
  const message = args.shift();
19
18
  method(`[wxt] ${message}`, ...args);
@@ -245,8 +244,7 @@ function createStorage() {
245
244
  driverKey,
246
245
  driverMetaKey
247
246
  ]);
248
- if (value == null)
249
- return;
247
+ if (value == null) return;
250
248
  const currentVersion = meta?.v ?? 1;
251
249
  if (currentVersion > targetVersion) {
252
250
  throw Error(
@@ -379,10 +377,8 @@ function createDriver(storageArea) {
379
377
  watch(key, cb) {
380
378
  const listener = (changes) => {
381
379
  const change = changes[key];
382
- if (change == null)
383
- return;
384
- if (dequal(change.newValue, change.oldValue))
385
- return;
380
+ if (change == null) return;
381
+ if (dequal(change.newValue, change.oldValue)) return;
386
382
  cb(change.newValue ?? null, change.oldValue ?? null);
387
383
  };
388
384
  getStorageArea().onChanged.addListener(listener);
package/dist/testing.cjs CHANGED
@@ -756,20 +756,17 @@ function z({ onlyFirst: t = false } = {}) {
756
756
  return new RegExp(u, t ? void 0 : "g");
757
757
  }
758
758
  function $(t) {
759
- if (typeof t != "string")
760
- throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
759
+ if (typeof t != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
761
760
  return t.replace(z(), "");
762
761
  }
763
762
  function c(t, u = {}) {
764
- if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = $(t), t.length === 0))
765
- return 0;
763
+ if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = $(t), t.length === 0)) return 0;
766
764
  t = t.replace(Y(), " ");
767
765
  const F = u.ambiguousIsNarrow ? 1 : 2;
768
766
  let e = 0;
769
767
  for (const s3 of t) {
770
768
  const C = s3.codePointAt(0);
771
- if (C <= 31 || C >= 127 && C <= 159 || C >= 768 && C <= 879)
772
- continue;
769
+ if (C <= 31 || C >= 127 && C <= 159 || C >= 768 && C <= 879) continue;
773
770
  switch (K.eastAsianWidth(s3)) {
774
771
  case "F":
775
772
  case "W":
@@ -787,34 +784,28 @@ function c(t, u = {}) {
787
784
  function U() {
788
785
  const t = /* @__PURE__ */ new Map();
789
786
  for (const [u, F] of Object.entries(r)) {
790
- for (const [e, s3] of Object.entries(F))
791
- r[e] = { open: `\x1B[${s3[0]}m`, close: `\x1B[${s3[1]}m` }, F[e] = r[e], t.set(s3[0], s3[1]);
787
+ for (const [e, s3] of Object.entries(F)) r[e] = { open: `\x1B[${s3[0]}m`, close: `\x1B[${s3[1]}m` }, F[e] = r[e], t.set(s3[0], s3[1]);
792
788
  Object.defineProperty(r, u, { value: F, enumerable: false });
793
789
  }
794
790
  return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = M(), r.color.ansi16m = T(), r.bgColor.ansi = L(v), r.bgColor.ansi256 = M(v), r.bgColor.ansi16m = T(v), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F, e) => u === F && F === e ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(e / 255 * 5), enumerable: false }, hexToRgb: { value: (u) => {
795
791
  const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
796
- if (!F)
797
- return [0, 0, 0];
792
+ if (!F) return [0, 0, 0];
798
793
  let [e] = F;
799
794
  e.length === 3 && (e = [...e].map((C) => C + C).join(""));
800
795
  const s3 = Number.parseInt(e, 16);
801
796
  return [s3 >> 16 & 255, s3 >> 8 & 255, s3 & 255];
802
797
  }, enumerable: false }, hexToAnsi256: { value: (u) => r.rgbToAnsi256(...r.hexToRgb(u)), enumerable: false }, ansi256ToAnsi: { value: (u) => {
803
- if (u < 8)
804
- return 30 + u;
805
- if (u < 16)
806
- return 90 + (u - 8);
798
+ if (u < 8) return 30 + u;
799
+ if (u < 16) return 90 + (u - 8);
807
800
  let F, e, s3;
808
- if (u >= 232)
809
- F = ((u - 232) * 10 + 8) / 255, e = F, s3 = F;
801
+ if (u >= 232) F = ((u - 232) * 10 + 8) / 255, e = F, s3 = F;
810
802
  else {
811
803
  u -= 16;
812
804
  const i = u % 36;
813
805
  F = Math.floor(u / 36) / 5, e = Math.floor(i / 6) / 5, s3 = i % 6 / 5;
814
806
  }
815
807
  const C = Math.max(F, e, s3) * 2;
816
- if (C === 0)
817
- return 30;
808
+ if (C === 0) return 30;
818
809
  let D = 30 + (Math.round(s3) << 2 | Math.round(e) << 1 | Math.round(F));
819
810
  return C === 2 && (D += 60), D;
820
811
  }, enumerable: false }, rgbToAnsi: { value: (u, F, e) => r.ansi256ToAnsi(r.rgbToAnsi256(u, F, e)), enumerable: false }, hexToAnsi: { value: (u) => r.ansi256ToAnsi(r.hexToAnsi256(u)), enumerable: false } }), r;
@@ -826,13 +817,11 @@ function P(t, u, F) {
826
817
  `);
827
818
  }
828
819
  function FD(t, u) {
829
- if (t === u)
830
- return;
820
+ if (t === u) return;
831
821
  const F = t.split(`
832
822
  `), e = u.split(`
833
823
  `), s3 = [];
834
- for (let C = 0; C < Math.max(F.length, e.length); C++)
835
- F[C] !== e[C] && s3.push(C);
824
+ for (let C = 0; C < Math.max(F.length, e.length); C++) F[C] !== e[C] && s3.push(C);
836
825
  return s3;
837
826
  }
838
827
  function g(t, u) {
@@ -891,20 +880,15 @@ var init_prompt = __esm({
891
880
  beep = "\x07";
892
881
  cursor = {
893
882
  to(x, y) {
894
- if (!y)
895
- return `${CSI}${x + 1}G`;
883
+ if (!y) return `${CSI}${x + 1}G`;
896
884
  return `${CSI}${y + 1};${x + 1}H`;
897
885
  },
898
886
  move(x, y) {
899
887
  let ret = "";
900
- if (x < 0)
901
- ret += `${CSI}${-x}D`;
902
- else if (x > 0)
903
- ret += `${CSI}${x}C`;
904
- if (y < 0)
905
- ret += `${CSI}${-y}A`;
906
- else if (y > 0)
907
- ret += `${CSI}${y}B`;
888
+ if (x < 0) ret += `${CSI}${-x}D`;
889
+ else if (x > 0) ret += `${CSI}${x}C`;
890
+ if (y < 0) ret += `${CSI}${-y}A`;
891
+ else if (y > 0) ret += `${CSI}${y}B`;
908
892
  return ret;
909
893
  },
910
894
  up: (count = 1) => `${CSI}${count}A`,
@@ -1005,18 +989,14 @@ var init_prompt = __esm({
1005
989
  return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
1006
990
  }
1007
991
  u.length = function(e) {
1008
- for (var s3 = F(e), C = 0, D = 0; D < s3.length; D++)
1009
- C = C + this.characterLength(s3[D]);
992
+ for (var s3 = F(e), C = 0, D = 0; D < s3.length; D++) C = C + this.characterLength(s3[D]);
1010
993
  return C;
1011
994
  }, u.slice = function(e, s3, C) {
1012
995
  textLen = u.length(e), s3 = s3 || 0, C = C || 1, s3 < 0 && (s3 = textLen + s3), C < 0 && (C = textLen + C);
1013
996
  for (var D = "", i = 0, o = F(e), E = 0; E < o.length; E++) {
1014
997
  var a = o[E], n = u.length(a);
1015
- if (i >= s3 - (n == 2 ? 1 : 0))
1016
- if (i + n <= C)
1017
- D += a;
1018
- else
1019
- break;
998
+ if (i >= s3 - (n == 2 ? 1 : 0)) if (i + n <= C) D += a;
999
+ else break;
1020
1000
  i += n;
1021
1001
  }
1022
1002
  return D;
@@ -1062,13 +1042,11 @@ var init_prompt = __esm({
1062
1042
  DD = (t) => {
1063
1043
  const u = t.split(" ");
1064
1044
  let F = u.length;
1065
- for (; F > 0 && !(c(u[F - 1]) > 0); )
1066
- F--;
1045
+ for (; F > 0 && !(c(u[F - 1]) > 0); ) F--;
1067
1046
  return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
1068
1047
  };
1069
1048
  uD = (t, u, F = {}) => {
1070
- if (F.trim !== false && t.trim() === "")
1071
- return "";
1049
+ if (F.trim !== false && t.trim() === "") return "";
1072
1050
  let e = "", s3, C;
1073
1051
  const D = X(t);
1074
1052
  let i = [""];
@@ -1102,8 +1080,7 @@ var init_prompt = __esm({
1102
1080
  if (B.code !== void 0) {
1103
1081
  const A = Number.parseFloat(B.code);
1104
1082
  s3 = A === J ? void 0 : A;
1105
- } else
1106
- B.uri !== void 0 && (C = B.uri.length === 0 ? void 0 : B.uri);
1083
+ } else B.uri !== void 0 && (C = B.uri.length === 0 ? void 0 : B.uri);
1107
1084
  }
1108
1085
  const n = q.codes.get(Number(s3));
1109
1086
  o[E + 1] === `
@@ -1141,10 +1118,8 @@ var init_prompt = __esm({
1141
1118
  }
1142
1119
  emit(u, ...F) {
1143
1120
  const e = this.subscribers.get(u) ?? [], s3 = [];
1144
- for (const C of e)
1145
- C.cb(...F), C.once && s3.push(() => e.splice(e.indexOf(C), 1));
1146
- for (const C of s3)
1147
- C();
1121
+ for (const C of e) C.cb(...F), C.once && s3.push(() => e.splice(e.indexOf(C), 1));
1122
+ for (const C of s3) C();
1148
1123
  }
1149
1124
  unsubscribe() {
1150
1125
  this.subscribers.clear();
@@ -1171,8 +1146,7 @@ var init_prompt = __esm({
1171
1146
  render() {
1172
1147
  const u = P(this._render(this) ?? "", process.stdout.columns, { hard: true });
1173
1148
  if (u !== this._prevFrame) {
1174
- if (this.state === "initial")
1175
- this.output.write(src.cursor.hide);
1149
+ if (this.state === "initial") this.output.write(src.cursor.hide);
1176
1150
  else {
1177
1151
  const F = FD(this._prevFrame, u);
1178
1152
  if (this.restoreCursor(), F && F?.length === 1) {
@@ -1274,8 +1248,7 @@ var init_prompt = __esm({
1274
1248
  super(u), this.valueWithCursor = "", this.on("finalize", () => {
1275
1249
  this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
1276
1250
  }), this.on("value", () => {
1277
- if (this.cursor >= this.value.length)
1278
- this.valueWithCursor = `${this.value}${l.inverse(l.hidden("_"))}`;
1251
+ if (this.cursor >= this.value.length) this.valueWithCursor = `${this.value}${l.inverse(l.hidden("_"))}`;
1279
1252
  else {
1280
1253
  const F = this.value.slice(0, this.cursor), e = this.value.slice(this.cursor);
1281
1254
  this.valueWithCursor = `${F}${l.inverse(e[0])}${e.slice(1)}`;
@@ -1927,6 +1900,7 @@ var CSS_EXTENSIONS_PATTERN = `+(${CSS_EXTENSIONS.join("|")})`;
1927
1900
  // src/core/builders/vite/plugins/devHtmlPrerender.ts
1928
1901
  var import_linkedom = require("linkedom");
1929
1902
  var import_node_path3 = require("path");
1903
+ var import_ohash = require("ohash");
1930
1904
 
1931
1905
  // src/core/utils/network.ts
1932
1906
  var import_node_dns = __toESM(require("dns"), 1);
@@ -1971,8 +1945,7 @@ async function fetchCached(url, config) {
1971
1945
  );
1972
1946
  }
1973
1947
  }
1974
- if (!content)
1975
- content = await config.fsCache.get(url) ?? "";
1948
+ if (!content) content = await config.fsCache.get(url) ?? "";
1976
1949
  if (!content)
1977
1950
  throw Error(
1978
1951
  `Offline and "${url}" has not been cached. Try again when online.`
@@ -1985,12 +1958,10 @@ function download(config) {
1985
1958
  return {
1986
1959
  name: "wxt:download",
1987
1960
  resolveId(id) {
1988
- if (id.startsWith("url:"))
1989
- return "\0" + id;
1961
+ if (id.startsWith("url:")) return "\0" + id;
1990
1962
  },
1991
1963
  async load(id) {
1992
- if (!id.startsWith("\0url:"))
1993
- return;
1964
+ if (!id.startsWith("\0url:")) return;
1994
1965
  const url = id.replace("\0url:", "");
1995
1966
  return await fetchCached(url, config);
1996
1967
  }
@@ -2014,8 +1985,7 @@ var ENABLED_EXTENSIONS = /* @__PURE__ */ new Set([
2014
1985
  ]);
2015
1986
  function unimport(config) {
2016
1987
  const options = config.imports;
2017
- if (options === false)
2018
- return [];
1988
+ if (options === false) return [];
2019
1989
  const unimport2 = (0, import_unimport.createUnimport)(options);
2020
1990
  return {
2021
1991
  name: "wxt:unimport",
@@ -2023,10 +1993,8 @@ function unimport(config) {
2023
1993
  await unimport2.scanImportsFromDir(void 0, { cwd: config.srcDir });
2024
1994
  },
2025
1995
  async transform(code, id) {
2026
- if (id.includes("node_modules"))
2027
- return;
2028
- if (!ENABLED_EXTENSIONS.has((0, import_path.extname)(id)))
2029
- return;
1996
+ if (id.includes("node_modules")) return;
1997
+ if (!ENABLED_EXTENSIONS.has((0, import_path.extname)(id))) return;
2030
1998
  const injected = await unimport2.injectImports(code, id);
2031
1999
  return {
2032
2000
  code: injected.code,
@@ -2332,8 +2300,7 @@ async function resolveConfig(inlineConfig, command) {
2332
2300
  const mergedConfig = await mergeInlineConfig(inlineConfig, userConfig);
2333
2301
  const debug = mergedConfig.debug ?? false;
2334
2302
  const logger = mergedConfig.logger ?? consola;
2335
- if (debug)
2336
- logger.level = LogLevels.debug;
2303
+ if (debug) logger.level = LogLevels.debug;
2337
2304
  const browser = mergedConfig.browser ?? "chrome";
2338
2305
  const manifestVersion = mergedConfig.manifestVersion ?? (browser === "firefox" || browser === "safari" ? 2 : 3);
2339
2306
  const mode = mergedConfig.mode ?? COMMAND_MODES[command];
@@ -2509,8 +2476,7 @@ function resolveAnalysisConfig(root, mergedConfig) {
2509
2476
  };
2510
2477
  }
2511
2478
  async function getUnimportOptions(wxtDir, logger, config) {
2512
- if (config.imports === false)
2513
- return false;
2479
+ if (config.imports === false) return false;
2514
2480
  const enabledConfig = config.imports?.eslintrc?.enabled;
2515
2481
  let enabled;
2516
2482
  switch (enabledConfig) {
package/dist/testing.js CHANGED
@@ -5,10 +5,10 @@ import {
5
5
  tsconfigPaths,
6
6
  unimport,
7
7
  webextensionPolyfillMock
8
- } from "./chunk-QOYT5J6A.js";
9
- import "./chunk-5X3S6AWF.js";
10
- import "./chunk-ZZCTFNQ5.js";
11
- import "./chunk-VBXJIVYU.js";
8
+ } from "./chunk-A3R6ZPUA.js";
9
+ import "./chunk-BERPNPEZ.js";
10
+ import "./chunk-BM6QYGAW.js";
11
+ import "./chunk-QGM4M3NI.js";
12
12
 
13
13
  // src/testing/fake-browser.ts
14
14
  import { fakeBrowser } from "@webext-core/fake-browser";
@@ -4,8 +4,7 @@ import { initPlugins } from "virtual:wxt-plugins";
4
4
 
5
5
  // src/sandbox/utils/logger.ts
6
6
  function print(method, ...args) {
7
- if (import.meta.env.MODE === "production")
8
- return;
7
+ if (import.meta.env.MODE === "production") return;
9
8
  if (typeof args[0] === "string") {
10
9
  const message = args.shift();
11
10
  method(`[wxt] ${message}`, ...args);
@@ -120,8 +119,7 @@ async function reloadTabsForContentScript(contentScript) {
120
119
  );
121
120
  const matchingTabs = allTabs.filter((tab) => {
122
121
  const url = tab.url;
123
- if (!url)
124
- return false;
122
+ if (!url) return false;
125
123
  return !!matchPatterns.find((pattern) => pattern.includes(url));
126
124
  });
127
125
  await Promise.all(matchingTabs.map((tab) => browser2.tabs.reload(tab.id)));
@@ -134,8 +132,7 @@ async function reloadContentScriptMv2(_payload) {
134
132
  if (import.meta.env.COMMAND === "serve") {
135
133
  try {
136
134
  const ws = setupWebSocket((message) => {
137
- if (message.event === "wxt:reload-extension")
138
- browser3.runtime.reload();
135
+ if (message.event === "wxt:reload-extension") browser3.runtime.reload();
139
136
  if (message.event === "wxt:reload-content-script" && message.data != null)
140
137
  reloadContentScript(message.data);
141
138
  });
@@ -3,8 +3,7 @@ import definition from "virtual:user-content-script-isolated-world-entrypoint";
3
3
 
4
4
  // src/sandbox/utils/logger.ts
5
5
  function print(method, ...args) {
6
- if (import.meta.env.MODE === "production")
7
- return;
6
+ if (import.meta.env.MODE === "production") return;
8
7
  if (typeof args[0] === "string") {
9
8
  const message = args.shift();
10
9
  method(`[wxt] ${message}`, ...args);
@@ -3,8 +3,7 @@ import definition from "virtual:user-content-script-main-world-entrypoint";
3
3
 
4
4
  // src/sandbox/utils/logger.ts
5
5
  function print(method, ...args) {
6
- if (import.meta.env.MODE === "production")
7
- return;
6
+ if (import.meta.env.MODE === "production") return;
8
7
  if (typeof args[0] === "string") {
9
8
  const message = args.shift();
10
9
  method(`[wxt] ${message}`, ...args);
@@ -1,7 +1,6 @@
1
1
  // src/sandbox/utils/logger.ts
2
2
  function print(method, ...args) {
3
- if (import.meta.env.MODE === "production")
4
- return;
3
+ if (import.meta.env.MODE === "production") return;
5
4
  if (typeof args[0] === "string") {
6
5
  const message = args.shift();
7
6
  method(`[wxt] ${message}`, ...args);
@@ -3,8 +3,7 @@ import definition from "virtual:user-unlisted-script-entrypoint";
3
3
 
4
4
  // src/sandbox/utils/logger.ts
5
5
  function print(method, ...args) {
6
- if (import.meta.env.MODE === "production")
7
- return;
6
+ if (import.meta.env.MODE === "production") return;
8
7
  if (typeof args[0] === "string") {
9
8
  const message = args.shift();
10
9
  method(`[wxt] ${message}`, ...args);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.18.6",
4
+ "version": "0.18.7",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -92,71 +92,72 @@
92
92
  },
93
93
  "dependencies": {
94
94
  "@aklinker1/rollup-plugin-visualizer": "5.12.0",
95
- "@types/webextension-polyfill": "^0.10.5",
95
+ "@types/webextension-polyfill": "^0.10.7",
96
96
  "@webext-core/fake-browser": "^1.3.1",
97
97
  "@webext-core/isolated-element": "^1.1.2",
98
98
  "@webext-core/match-patterns": "^1.0.3",
99
- "async-mutex": "^0.4.0",
100
- "c12": "^1.5.1",
99
+ "async-mutex": "^0.4.1",
100
+ "c12": "^1.11.1",
101
101
  "cac": "^6.7.14",
102
- "chokidar": "^3.5.3",
102
+ "chokidar": "^3.6.0",
103
103
  "ci-info": "^4.0.0",
104
- "defu": "^6.1.3",
104
+ "defu": "^6.1.4",
105
105
  "dequal": "^2.0.3",
106
- "esbuild": "^0.19.5",
107
- "fast-glob": "^3.3.1",
108
- "filesize": "^10.0.8",
109
- "fs-extra": "^11.1.1",
110
- "get-port": "^7.0.0",
111
- "giget": "^1.1.3",
106
+ "esbuild": "^0.19.12",
107
+ "fast-glob": "^3.3.2",
108
+ "filesize": "^10.1.2",
109
+ "fs-extra": "^11.2.0",
110
+ "get-port": "^7.1.0",
111
+ "giget": "^1.2.3",
112
112
  "hookable": "^5.5.3",
113
- "is-wsl": "^3.0.0",
114
- "jiti": "^1.21.0",
113
+ "is-wsl": "^3.1.0",
114
+ "jiti": "^1.21.6",
115
115
  "json5": "^2.2.3",
116
116
  "jszip": "^3.10.1",
117
- "linkedom": "^0.18.2",
117
+ "linkedom": "^0.18.3",
118
118
  "magicast": "^0.3.4",
119
- "minimatch": "^9.0.3",
119
+ "minimatch": "^9.0.4",
120
120
  "natural-compare": "^1.4.0",
121
121
  "normalize-path": "^3.0.0",
122
122
  "nypm": "^0.3.8",
123
+ "ohash": "^1.1.3",
123
124
  "open": "^10.1.0",
124
125
  "ora": "^7.0.1",
125
- "picocolors": "^1.0.0",
126
+ "picocolors": "^1.0.1",
126
127
  "prompts": "^2.4.2",
127
128
  "publish-browser-extension": "^2.1.3",
128
- "unimport": "^3.4.0",
129
- "vite": "^5.2.8",
129
+ "unimport": "^3.7.2",
130
+ "vite": "^5.3.0",
130
131
  "web-ext-run": "^0.2.0",
131
132
  "webextension-polyfill": "^0.10.0"
132
133
  },
133
134
  "devDependencies": {
134
- "@aklinker1/check": "^1.1.1",
135
- "@faker-js/faker": "^8.3.1",
135
+ "@aklinker1/check": "^1.3.1",
136
+ "@faker-js/faker": "^8.4.1",
136
137
  "@types/fs-extra": "^11.0.4",
137
138
  "@types/lodash.merge": "^4.6.9",
138
139
  "@types/natural-compare": "^1.4.3",
139
- "@types/node": "^20.10.3",
140
+ "@types/node": "^20.14.2",
140
141
  "@types/normalize-path": "^3.0.2",
141
142
  "@types/prompts": "^2.4.9",
142
- "execa": "^9.1.0",
143
+ "execa": "^9.2.0",
143
144
  "extract-zip": "^2.0.1",
144
- "happy-dom": "^13.3.8",
145
+ "happy-dom": "^13.10.1",
145
146
  "lodash.merge": "^4.6.2",
146
- "p-map": "^7.0.0",
147
- "publint": "^0.2.6",
148
- "tsup": "^8.0.1",
149
- "tsx": "^4.11.2",
147
+ "p-map": "^7.0.2",
148
+ "publint": "^0.2.8",
149
+ "tsup": "^8.1.0",
150
+ "tsx": "^4.15.4",
150
151
  "typescript": "^5.4.5"
151
152
  },
152
153
  "scripts": {
153
154
  "wxt": "tsx src/cli/index.ts",
154
- "build": "tsx scripts/build.ts",
155
- "check": "run-s -c check:*",
155
+ "build": "buildc -- tsx scripts/build.ts",
156
+ "check": "buildc --deps-only -- run-s -c check:*",
156
157
  "check:default": "check",
157
158
  "check:tsc-virtual": "tsc --noEmit -p src/virtual",
158
- "test": "vitest",
159
- "test:e2e": "vitest -r e2e",
159
+ "test": "buildc --deps-only -- vitest",
160
+ "test:e2e": "buildc --deps-only -- vitest -r e2e",
160
161
  "sync-releases": "pnpx changelogen@latest gh release"
161
162
  }
162
163
  }