@vixt/vue 0.10.1 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ import { App } from "vue";
2
+ import { RouteRecord, Router, RouterOptions } from "vue-router";
3
+
4
+ //#region src/client/client.d.ts
5
+ interface VueVixtAppConfig {
6
+ /** https://router.vuejs.org/api/interfaces/RouterOptions.html */
7
+ router?: Partial<RouterOptions>;
8
+ }
9
+ interface VueVixtApp {
10
+ /** Vue app instance */
11
+ app: App;
12
+ /** Router instance */
13
+ router: Router;
14
+ /** Router routes */
15
+ routes: RouteRecord[];
16
+ }
17
+ declare module '@vixt/core/client' {
18
+ interface VixtAppConfig extends VueVixtAppConfig {}
19
+ interface VixtApp extends VueVixtApp {}
20
+ }
21
+ //#endregion
22
+ export { VueVixtApp, VueVixtAppConfig };
@@ -1,5 +1,4 @@
1
1
  import * as _$vue from "vue";
2
-
3
2
  //#region src/client/entry.d.ts
4
3
  declare function entry(): _$vue.App<Element>;
5
4
  //#endregion
@@ -1,10 +1,9 @@
1
+ import { createApp } from "vue";
1
2
  import "virtual:vixt:css";
2
- import "virtual:uno.css";
3
3
  import { applyPlugins, createVixtApp } from "@vixt/core/client";
4
4
  import appConfig from "virtual:vixt:app-config";
5
5
  import plugins from "virtual:vixt:plugins";
6
6
  import RootComponent from "virtual:vixt:root-component.vue";
7
- import { createApp } from "vue";
8
7
  //#region src/client/entry.ts
9
8
  function entry() {
10
9
  const app = createApp(RootComponent);
@@ -0,0 +1,2 @@
1
+ import { VueVixtApp, VueVixtAppConfig } from "./client.js";
2
+ export { VueVixtApp, VueVixtAppConfig };
File without changes
@@ -1,6 +1,6 @@
1
+ import { createRouter, createWebHistory } from "vue-router";
1
2
  import { defineVixtPlugin } from "@vixt/core/client";
2
3
  import { setupLayouts } from "virtual:generated-layouts";
3
- import { createRouter, createWebHistory } from "vue-router";
4
4
  import { routes } from "vue-router/auto-routes";
5
5
  //#region src/client/plugins/router.ts
6
6
  var router_default = defineVixtPlugin({
@@ -1,7 +1,9 @@
1
+ import { VueVixtOptions } from "./node.mjs";
1
2
  import * as _$_vixt_core0 from "@vixt/core";
2
3
  import * as _$vite from "vite";
3
4
 
4
- //#region src/index.d.ts
5
+ //#region src/node/index.d.ts
6
+ /** @hidden */
5
7
  declare const _default: (options?: _$_vixt_core0.VixtOptions | undefined) => _$vite.PluginOption;
6
8
  //#endregion
7
- export { _default as default };
9
+ export { VueVixtOptions, _default as default };
@@ -0,0 +1,36 @@
1
+ import { a as __toESM, i as require_lib, n as virtual_root_component_default, r as resolvePathSync } from "./virtual-root-component-6LvPEGIT.mjs";
2
+ import { t as preset_vue_default } from "./preset-vue-CS1Dp3Yf.mjs";
3
+ import { createVixtPlugin } from "@vixt/core";
4
+ import { VueRouterAutoImports } from "vue-router/unplugin";
5
+ //#region src/node/index.ts
6
+ /** @module vue */
7
+ var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
8
+ const plugins = ["@vixt/vue/client/plugins/router"];
9
+ /** @hidden */
10
+ var node_default = createVixtPlugin({ defaults: {
11
+ modules: [preset_vue_default, virtual_root_component_default],
12
+ plugins,
13
+ app: {
14
+ entryFile: "main.ts",
15
+ entryCode: import_lib.default.readFileSync(resolvePathSync("@vixt/vue/client/entry"), "utf-8"),
16
+ head: { meta: [{ charset: "utf-8" }, {
17
+ name: "viewport",
18
+ content: "width=device-width, initial-scale=1.0"
19
+ }] }
20
+ },
21
+ imports: {
22
+ imports: ["vue", VueRouterAutoImports],
23
+ vueTemplate: true
24
+ },
25
+ typescript: { tsConfig: {
26
+ compilerOptions: { types: [
27
+ "@vixt/vue/types",
28
+ "vue-router/auto",
29
+ "vite-plugin-vue-layouts/client"
30
+ ] },
31
+ vueCompilerOptions: { plugins: ["vue-router/volar/sfc-typed-router", "vue-router/volar/sfc-route-blocks"] }
32
+ } },
33
+ vite: { optimizeDeps: { exclude: plugins } }
34
+ } });
35
+ //#endregion
36
+ export { node_default as default };
@@ -0,0 +1,7 @@
1
+ import * as _$_vixt_core0 from "@vixt/core";
2
+ import { VixtOptions } from "@vixt/core";
3
+
4
+ //#region src/node/modules/preset-vue.d.ts
5
+ declare const _default: _$_vixt_core0.VixtModule<VixtOptions>;
6
+ //#endregion
7
+ export { _default as default };
@@ -0,0 +1,2 @@
1
+ import { t as preset_vue_default } from "../preset-vue-CS1Dp3Yf.mjs";
2
+ export { preset_vue_default as default };
@@ -0,0 +1,7 @@
1
+ import * as _$_vixt_core0 from "@vixt/core";
2
+
3
+ //#region src/node/modules/virtual-root-component.d.ts
4
+ declare function isEmptyCode(code?: string): boolean;
5
+ declare const _default: _$_vixt_core0.VixtModule<_$_vixt_core0.ModuleOptions>;
6
+ //#endregion
7
+ export { _default as default, isEmptyCode };
@@ -0,0 +1,2 @@
1
+ import { n as virtual_root_component_default, t as isEmptyCode } from "../virtual-root-component-6LvPEGIT.mjs";
2
+ export { virtual_root_component_default as default, isEmptyCode };
@@ -0,0 +1,30 @@
1
+ import { ExtractPluginOptions } from "@vixt/core";
2
+ import Vue from "@vitejs/plugin-vue";
3
+ import VueJsx from "@vitejs/plugin-vue-jsx";
4
+ import Components from "unplugin-vue-components/vite";
5
+ import VueDevTools from "vite-plugin-vue-devtools";
6
+ import Layouts from "vite-plugin-vue-layouts";
7
+ import VueRouter from "vue-router/vite";
8
+
9
+ //#region src/node/node.d.ts
10
+ interface VueVixtOptions {
11
+ /** https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue */
12
+ vue?: ExtractPluginOptions<typeof Vue>;
13
+ /** https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue-jsx */
14
+ vueJsx?: ExtractPluginOptions<typeof VueJsx>;
15
+ /** https://router.vuejs.org/file-based-routing/ */
16
+ router?: ExtractPluginOptions<typeof VueRouter>;
17
+ /** https://github.com/JohnCampionJr/vite-plugin-vue-layouts */
18
+ layouts?: ExtractPluginOptions<typeof Layouts>;
19
+ /** https://github.com/unplugin/unplugin-vue-components */
20
+ components?: ExtractPluginOptions<typeof Components>;
21
+ /** https://github.com/webfansplz/vite-plugin-vue-devtools */
22
+ devtools?: ExtractPluginOptions<typeof VueDevTools> & {
23
+ enabled?: boolean;
24
+ };
25
+ }
26
+ declare module '@vixt/core' {
27
+ interface VixtOptions extends VueVixtOptions {}
28
+ }
29
+ //#endregion
30
+ export { VueVixtOptions };
@@ -0,0 +1,83 @@
1
+ import { defineVixtModule, resolveLayersDirs } from "@vixt/core";
2
+ import Vue from "@vitejs/plugin-vue";
3
+ import VueJsx from "@vitejs/plugin-vue-jsx";
4
+ import Components from "unplugin-vue-components/vite";
5
+ import VueDevTools from "vite-plugin-vue-devtools";
6
+ import Layouts from "vite-plugin-vue-layouts";
7
+ import VueRouter from "vue-router/vite";
8
+ //#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
9
+ function isPlainObject(value) {
10
+ if (value === null || typeof value !== "object") return false;
11
+ const prototype = Object.getPrototypeOf(value);
12
+ if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) return false;
13
+ if (Symbol.iterator in value) return false;
14
+ if (Symbol.toStringTag in value) return Object.prototype.toString.call(value) === "[object Module]";
15
+ return true;
16
+ }
17
+ function _defu(baseObject, defaults, namespace = ".", merger) {
18
+ if (!isPlainObject(defaults)) return _defu(baseObject, {}, namespace, merger);
19
+ const object = { ...defaults };
20
+ for (const key of Object.keys(baseObject)) {
21
+ if (key === "__proto__" || key === "constructor") continue;
22
+ const value = baseObject[key];
23
+ if (value === null || value === void 0) continue;
24
+ if (merger && merger(object, key, value, namespace)) continue;
25
+ if (Array.isArray(value) && Array.isArray(object[key])) object[key] = [...value, ...object[key]];
26
+ else if (isPlainObject(value) && isPlainObject(object[key])) object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
27
+ else object[key] = value;
28
+ }
29
+ return object;
30
+ }
31
+ function createDefu(merger) {
32
+ return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
33
+ }
34
+ const defu = createDefu();
35
+ var preset_vue_default = defineVixtModule({
36
+ meta: { name: "vixt:preset-vue" },
37
+ setup(_, vixt) {
38
+ const { components = [], pages = [], layouts = [] } = resolveLayersDirs([...vixt._layers].reverse());
39
+ const { buildTypesDir } = vixt.options;
40
+ const defaultOptions = {
41
+ vue: {},
42
+ vueJsx: {},
43
+ router: {
44
+ dts: `${buildTypesDir}/typed-router.d.ts`,
45
+ routesFolder: pages,
46
+ extendRoute(route) {
47
+ const node = route.node.value;
48
+ const overrides = node._overrides;
49
+ if (overrides.size <= 1) return;
50
+ for (const pageDir of [...pages].reverse()) {
51
+ const matched = [...overrides.keys()].find((e) => e.match(pageDir));
52
+ if (matched) {
53
+ node.components.set("default", matched);
54
+ return;
55
+ }
56
+ }
57
+ }
58
+ },
59
+ layouts: {
60
+ layoutsDirs: layouts,
61
+ pagesDirs: pages
62
+ },
63
+ components: {
64
+ dts: `${buildTypesDir}/components.d.ts`,
65
+ dirs: [...components].reverse(),
66
+ directoryAsNamespace: true,
67
+ collapseSamePrefixes: true
68
+ },
69
+ devtools: { enabled: false }
70
+ };
71
+ const options = vixt.options = defu(vixt.options, defaultOptions);
72
+ return [
73
+ VueRouter(options.router),
74
+ Vue(options.vue),
75
+ VueJsx(options.vueJsx),
76
+ Layouts(options.layouts),
77
+ Components(options.components),
78
+ options.devtools?.enabled && VueDevTools(options.devtools)
79
+ ];
80
+ }
81
+ });
82
+ //#endregion
83
+ export { preset_vue_default as t };
@@ -1,5 +1,5 @@
1
1
  import { builtinModules, createRequire } from "node:module";
2
- import { VixtClientAutoImports, createVixtPlugin, defineVixtModule, resolveLayersDirs } from "@vixt/core";
2
+ import { defineVixtModule } from "@vixt/core";
3
3
  import fs, { realpathSync, statSync } from "node:fs";
4
4
  import { fileURLToPath, pathToFileURL } from "node:url";
5
5
  import assert from "node:assert";
@@ -7,15 +7,6 @@ import process$1 from "node:process";
7
7
  import path from "node:path";
8
8
  import v8 from "node:v8";
9
9
  import { format, inspect } from "node:util";
10
- import Vue from "@vitejs/plugin-vue";
11
- import VueJsx from "@vitejs/plugin-vue-jsx";
12
- import UnoCSS from "unocss/vite";
13
- import AutoImport from "unplugin-auto-import/vite";
14
- import Components from "unplugin-vue-components/vite";
15
- import VueDevTools from "vite-plugin-vue-devtools";
16
- import Layouts from "vite-plugin-vue-layouts";
17
- import { VueRouterAutoImports } from "vue-router/unplugin";
18
- import VueRouter from "vue-router/vite";
19
10
  import { parse } from "@vue/compiler-sfc";
20
11
  //#region \0rolldown/runtime.js
21
12
  var __create = Object.create;
@@ -24,7 +15,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
24
15
  var __getOwnPropNames = Object.getOwnPropertyNames;
25
16
  var __getProtoOf = Object.getPrototypeOf;
26
17
  var __hasOwnProp = Object.prototype.hasOwnProperty;
27
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
18
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
28
19
  var __copyProps = (to, from, except, desc) => {
29
20
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
30
21
  key = keys[i];
@@ -424,7 +415,7 @@ var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
424
415
  //#endregion
425
416
  //#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
426
417
  var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
427
- var fs$3 = __require("fs");
418
+ var fs$2 = __require("fs");
428
419
  var polyfills = require_polyfills();
429
420
  var legacy = require_legacy_streams();
430
421
  var clone = require_clone();
@@ -453,36 +444,36 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
453
444
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
454
445
  console.error(m);
455
446
  };
456
- if (!fs$3[gracefulQueue]) {
457
- publishQueue(fs$3, global[gracefulQueue] || []);
458
- fs$3.close = (function(fs$close) {
447
+ if (!fs$2[gracefulQueue]) {
448
+ publishQueue(fs$2, global[gracefulQueue] || []);
449
+ fs$2.close = (function(fs$close) {
459
450
  function close(fd, cb) {
460
- return fs$close.call(fs$3, fd, function(err) {
451
+ return fs$close.call(fs$2, fd, function(err) {
461
452
  if (!err) resetQueue();
462
453
  if (typeof cb === "function") cb.apply(this, arguments);
463
454
  });
464
455
  }
465
456
  Object.defineProperty(close, previousSymbol, { value: fs$close });
466
457
  return close;
467
- })(fs$3.close);
468
- fs$3.closeSync = (function(fs$closeSync) {
458
+ })(fs$2.close);
459
+ fs$2.closeSync = (function(fs$closeSync) {
469
460
  function closeSync(fd) {
470
- fs$closeSync.apply(fs$3, arguments);
461
+ fs$closeSync.apply(fs$2, arguments);
471
462
  resetQueue();
472
463
  }
473
464
  Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
474
465
  return closeSync;
475
- })(fs$3.closeSync);
466
+ })(fs$2.closeSync);
476
467
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
477
- debug(fs$3[gracefulQueue]);
478
- __require("assert").equal(fs$3[gracefulQueue].length, 0);
468
+ debug(fs$2[gracefulQueue]);
469
+ __require("assert").equal(fs$2[gracefulQueue].length, 0);
479
470
  });
480
471
  }
481
- if (!global[gracefulQueue]) publishQueue(global, fs$3[gracefulQueue]);
482
- module.exports = patch(clone(fs$3));
483
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$3.__patched) {
484
- module.exports = patch(fs$3);
485
- fs$3.__patched = true;
472
+ if (!global[gracefulQueue]) publishQueue(global, fs$2[gracefulQueue]);
473
+ module.exports = patch(clone(fs$2));
474
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$2.__patched) {
475
+ module.exports = patch(fs$2);
476
+ fs$2.__patched = true;
486
477
  }
487
478
  function patch(fs) {
488
479
  polyfills(fs);
@@ -737,23 +728,23 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
737
728
  }
738
729
  function enqueue(elem) {
739
730
  debug("ENQUEUE", elem[0].name, elem[1]);
740
- fs$3[gracefulQueue].push(elem);
731
+ fs$2[gracefulQueue].push(elem);
741
732
  retry();
742
733
  }
743
734
  var retryTimer;
744
735
  function resetQueue() {
745
736
  var now = Date.now();
746
- for (var i = 0; i < fs$3[gracefulQueue].length; ++i) if (fs$3[gracefulQueue][i].length > 2) {
747
- fs$3[gracefulQueue][i][3] = now;
748
- fs$3[gracefulQueue][i][4] = now;
737
+ for (var i = 0; i < fs$2[gracefulQueue].length; ++i) if (fs$2[gracefulQueue][i].length > 2) {
738
+ fs$2[gracefulQueue][i][3] = now;
739
+ fs$2[gracefulQueue][i][4] = now;
749
740
  }
750
741
  retry();
751
742
  }
752
743
  function retry() {
753
744
  clearTimeout(retryTimer);
754
745
  retryTimer = void 0;
755
- if (fs$3[gracefulQueue].length === 0) return;
756
- var elem = fs$3[gracefulQueue].shift();
746
+ if (fs$2[gracefulQueue].length === 0) return;
747
+ var elem = fs$2[gracefulQueue].shift();
757
748
  var fn = elem[0];
758
749
  var args = elem[1];
759
750
  var err = elem[2];
@@ -772,13 +763,13 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
772
763
  if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
773
764
  debug("RETRY", fn.name, args);
774
765
  fn.apply(null, args.concat([startTime]));
775
- } else fs$3[gracefulQueue].push(elem);
766
+ } else fs$2[gracefulQueue].push(elem);
776
767
  }
777
768
  if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
778
769
  }
779
770
  }));
780
771
  //#endregion
781
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js
772
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js
782
773
  var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
783
774
  const u = require_universalify().fromCallback;
784
775
  const fs = require_graceful_fs();
@@ -886,7 +877,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
886
877
  else process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?", "Warning", "fs-extra-WARN0003");
887
878
  }));
888
879
  //#endregion
889
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/utils.js
880
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/utils.js
890
881
  var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
891
882
  const path$12 = __require("path");
892
883
  module.exports.checkPath = function checkPath(pth) {
@@ -900,7 +891,7 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
900
891
  };
901
892
  }));
902
893
  //#endregion
903
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/make-dir.js
894
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/make-dir.js
904
895
  var require_make_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
905
896
  const fs = require_fs();
906
897
  const { checkPath } = require_utils$1();
@@ -928,7 +919,7 @@ var require_make_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
928
919
  };
929
920
  }));
930
921
  //#endregion
931
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js
922
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js
932
923
  var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
933
924
  const u = require_universalify().fromPromise;
934
925
  const { makeDir: _makeDir, makeDirSync } = require_make_dir();
@@ -943,7 +934,7 @@ var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
943
934
  };
944
935
  }));
945
936
  //#endregion
946
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js
937
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/path-exists/index.js
947
938
  var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
948
939
  const u = require_universalify().fromPromise;
949
940
  const fs = require_fs();
@@ -956,28 +947,41 @@ var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
956
947
  };
957
948
  }));
958
949
  //#endregion
959
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/utimes.js
950
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/utimes.js
960
951
  var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
961
952
  const fs = require_fs();
962
953
  const u = require_universalify().fromPromise;
963
954
  async function utimesMillis(path, atime, mtime) {
964
955
  const fd = await fs.open(path, "r+");
965
- let closeErr = null;
956
+ let error = null;
966
957
  try {
967
958
  await fs.futimes(fd, atime, mtime);
959
+ } catch (futimesErr) {
960
+ error = futimesErr;
968
961
  } finally {
969
962
  try {
970
963
  await fs.close(fd);
971
- } catch (e) {
972
- closeErr = e;
964
+ } catch (closeErr) {
965
+ if (!error) error = closeErr;
973
966
  }
974
967
  }
975
- if (closeErr) throw closeErr;
968
+ if (error) throw error;
976
969
  }
977
970
  function utimesMillisSync(path, atime, mtime) {
978
971
  const fd = fs.openSync(path, "r+");
979
- fs.futimesSync(fd, atime, mtime);
980
- return fs.closeSync(fd);
972
+ let error = null;
973
+ try {
974
+ fs.futimesSync(fd, atime, mtime);
975
+ } catch (futimesErr) {
976
+ error = futimesErr;
977
+ } finally {
978
+ try {
979
+ fs.closeSync(fd);
980
+ } catch (closeErr) {
981
+ if (!error) error = closeErr;
982
+ }
983
+ }
984
+ if (error) throw error;
981
985
  }
982
986
  module.exports = {
983
987
  utimesMillis: u(utimesMillis),
@@ -985,7 +989,7 @@ var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
985
989
  };
986
990
  }));
987
991
  //#endregion
988
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js
992
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/stat.js
989
993
  var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
990
994
  const fs = require_fs();
991
995
  const path$11 = __require("path");
@@ -1111,7 +1115,7 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1111
1115
  };
1112
1116
  }));
1113
1117
  //#endregion
1114
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/async.js
1118
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/async.js
1115
1119
  var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1116
1120
  async function asyncIteratorConcurrentProcess(iterator, fn) {
1117
1121
  const promises = [];
@@ -1123,7 +1127,7 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1123
1127
  module.exports = { asyncIteratorConcurrentProcess };
1124
1128
  }));
1125
1129
  //#endregion
1126
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy.js
1130
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/copy.js
1127
1131
  var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1128
1132
  const fs = require_fs();
1129
1133
  const path$10 = __require("path");
@@ -1214,7 +1218,7 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1214
1218
  module.exports = copy;
1215
1219
  }));
1216
1220
  //#endregion
1217
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy-sync.js
1221
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/copy-sync.js
1218
1222
  var require_copy_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1219
1223
  const fs = require_graceful_fs();
1220
1224
  const path$9 = __require("path");
@@ -1327,7 +1331,7 @@ var require_copy_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1327
1331
  module.exports = copySync;
1328
1332
  }));
1329
1333
  //#endregion
1330
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/index.js
1334
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/index.js
1331
1335
  var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1332
1336
  const u = require_universalify().fromPromise;
1333
1337
  module.exports = {
@@ -1336,7 +1340,7 @@ var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1336
1340
  };
1337
1341
  }));
1338
1342
  //#endregion
1339
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js
1343
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/remove/index.js
1340
1344
  var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1341
1345
  const fs = require_graceful_fs();
1342
1346
  const u = require_universalify().fromCallback;
@@ -1358,7 +1362,7 @@ var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1358
1362
  };
1359
1363
  }));
1360
1364
  //#endregion
1361
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/empty/index.js
1365
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/empty/index.js
1362
1366
  var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1363
1367
  const u = require_universalify().fromPromise;
1364
1368
  const fs = require_fs();
@@ -1394,7 +1398,7 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1394
1398
  };
1395
1399
  }));
1396
1400
  //#endregion
1397
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/file.js
1401
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/file.js
1398
1402
  var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1399
1403
  const u = require_universalify().fromPromise;
1400
1404
  const path$7 = __require("path");
@@ -1441,7 +1445,7 @@ var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1441
1445
  };
1442
1446
  }));
1443
1447
  //#endregion
1444
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/link.js
1448
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/link.js
1445
1449
  var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1446
1450
  const u = require_universalify().fromPromise;
1447
1451
  const path$6 = __require("path");
@@ -1452,11 +1456,11 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1452
1456
  async function createLink(srcpath, dstpath) {
1453
1457
  let dstStat;
1454
1458
  try {
1455
- dstStat = await fs.lstat(dstpath);
1459
+ dstStat = await fs.lstat(dstpath, { bigint: true });
1456
1460
  } catch {}
1457
1461
  let srcStat;
1458
1462
  try {
1459
- srcStat = await fs.lstat(srcpath);
1463
+ srcStat = await fs.lstat(srcpath, { bigint: true });
1460
1464
  } catch (err) {
1461
1465
  err.message = err.message.replace("lstat", "ensureLink");
1462
1466
  throw err;
@@ -1469,10 +1473,10 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1469
1473
  function createLinkSync(srcpath, dstpath) {
1470
1474
  let dstStat;
1471
1475
  try {
1472
- dstStat = fs.lstatSync(dstpath);
1476
+ dstStat = fs.lstatSync(dstpath, { bigint: true });
1473
1477
  } catch {}
1474
1478
  try {
1475
- const srcStat = fs.lstatSync(srcpath);
1479
+ const srcStat = fs.lstatSync(srcpath, { bigint: true });
1476
1480
  if (dstStat && areIdentical(srcStat, dstStat)) return;
1477
1481
  } catch (err) {
1478
1482
  err.message = err.message.replace("lstat", "ensureLink");
@@ -1489,7 +1493,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1489
1493
  };
1490
1494
  }));
1491
1495
  //#endregion
1492
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-paths.js
1496
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink-paths.js
1493
1497
  var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1494
1498
  const path$5 = __require("path");
1495
1499
  const fs = require_fs();
@@ -1572,7 +1576,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1572
1576
  };
1573
1577
  }));
1574
1578
  //#endregion
1575
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-type.js
1579
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink-type.js
1576
1580
  var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1577
1581
  const fs = require_fs();
1578
1582
  const u = require_universalify().fromPromise;
@@ -1602,7 +1606,7 @@ var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1602
1606
  };
1603
1607
  }));
1604
1608
  //#endregion
1605
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink.js
1609
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink.js
1606
1610
  var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1607
1611
  const u = require_universalify().fromPromise;
1608
1612
  const path$4 = __require("path");
@@ -1619,17 +1623,17 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1619
1623
  } catch {}
1620
1624
  if (stats && stats.isSymbolicLink()) {
1621
1625
  let srcStat;
1622
- if (path$4.isAbsolute(srcpath)) srcStat = await fs.stat(srcpath);
1626
+ if (path$4.isAbsolute(srcpath)) srcStat = await fs.stat(srcpath, { bigint: true });
1623
1627
  else {
1624
1628
  const dstdir = path$4.dirname(dstpath);
1625
1629
  const relativeToDst = path$4.join(dstdir, srcpath);
1626
1630
  try {
1627
- srcStat = await fs.stat(relativeToDst);
1631
+ srcStat = await fs.stat(relativeToDst, { bigint: true });
1628
1632
  } catch {
1629
- srcStat = await fs.stat(srcpath);
1633
+ srcStat = await fs.stat(srcpath, { bigint: true });
1630
1634
  }
1631
1635
  }
1632
- const dstStat = await fs.stat(dstpath);
1636
+ const dstStat = await fs.stat(dstpath, { bigint: true });
1633
1637
  if (areIdentical(srcStat, dstStat)) return;
1634
1638
  }
1635
1639
  const relative = await symlinkPaths(srcpath, dstpath);
@@ -1646,17 +1650,17 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1646
1650
  } catch {}
1647
1651
  if (stats && stats.isSymbolicLink()) {
1648
1652
  let srcStat;
1649
- if (path$4.isAbsolute(srcpath)) srcStat = fs.statSync(srcpath);
1653
+ if (path$4.isAbsolute(srcpath)) srcStat = fs.statSync(srcpath, { bigint: true });
1650
1654
  else {
1651
1655
  const dstdir = path$4.dirname(dstpath);
1652
1656
  const relativeToDst = path$4.join(dstdir, srcpath);
1653
1657
  try {
1654
- srcStat = fs.statSync(relativeToDst);
1658
+ srcStat = fs.statSync(relativeToDst, { bigint: true });
1655
1659
  } catch {
1656
- srcStat = fs.statSync(srcpath);
1660
+ srcStat = fs.statSync(srcpath, { bigint: true });
1657
1661
  }
1658
1662
  }
1659
- const dstStat = fs.statSync(dstpath);
1663
+ const dstStat = fs.statSync(dstpath, { bigint: true });
1660
1664
  if (areIdentical(srcStat, dstStat)) return;
1661
1665
  }
1662
1666
  const relative = symlinkPathsSync(srcpath, dstpath);
@@ -1673,7 +1677,7 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1673
1677
  };
1674
1678
  }));
1675
1679
  //#endregion
1676
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/index.js
1680
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/index.js
1677
1681
  var require_ensure = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1678
1682
  const { createFile, createFileSync } = require_file();
1679
1683
  const { createLink, createLinkSync } = require_link();
@@ -1694,11 +1698,13 @@ var require_ensure = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1694
1698
  };
1695
1699
  }));
1696
1700
  //#endregion
1697
- //#region ../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js
1701
+ //#region ../../node_modules/.pnpm/jsonfile@6.2.1/node_modules/jsonfile/utils.js
1698
1702
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1699
1703
  function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
1700
1704
  const EOF = finalEOL ? EOL : "";
1701
- return JSON.stringify(obj, replacer, spaces).replace(/\n/g, EOL) + EOF;
1705
+ const str = JSON.stringify(obj, replacer, spaces);
1706
+ if (str === void 0) throw new TypeError(`Converting ${typeof obj} value to JSON is not supported`);
1707
+ return str.replace(/\n/g, EOL) + EOF;
1702
1708
  }
1703
1709
  function stripBom(content) {
1704
1710
  if (Buffer.isBuffer(content)) content = content.toString("utf8");
@@ -1710,7 +1716,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1710
1716
  };
1711
1717
  }));
1712
1718
  //#endregion
1713
- //#region ../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js
1719
+ //#region ../../node_modules/.pnpm/jsonfile@6.2.1/node_modules/jsonfile/index.js
1714
1720
  var require_jsonfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1715
1721
  let _fs;
1716
1722
  try {
@@ -1772,7 +1778,7 @@ var require_jsonfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1772
1778
  };
1773
1779
  }));
1774
1780
  //#endregion
1775
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/jsonfile.js
1781
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/jsonfile.js
1776
1782
  var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1777
1783
  const jsonFile = require_jsonfile$1();
1778
1784
  module.exports = {
@@ -1783,7 +1789,7 @@ var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1783
1789
  };
1784
1790
  }));
1785
1791
  //#endregion
1786
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js
1792
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/output-file/index.js
1787
1793
  var require_output_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1788
1794
  const u = require_universalify().fromPromise;
1789
1795
  const fs = require_fs();
@@ -1806,7 +1812,7 @@ var require_output_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1806
1812
  };
1807
1813
  }));
1808
1814
  //#endregion
1809
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json.js
1815
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/output-json.js
1810
1816
  var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1811
1817
  const { stringify } = require_utils();
1812
1818
  const { outputFile } = require_output_file();
@@ -1816,7 +1822,7 @@ var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1816
1822
  module.exports = outputJson;
1817
1823
  }));
1818
1824
  //#endregion
1819
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json-sync.js
1825
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/output-json-sync.js
1820
1826
  var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1821
1827
  const { stringify } = require_utils();
1822
1828
  const { outputFileSync } = require_output_file();
@@ -1826,7 +1832,7 @@ var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module)
1826
1832
  module.exports = outputJsonSync;
1827
1833
  }));
1828
1834
  //#endregion
1829
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/index.js
1835
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/index.js
1830
1836
  var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1831
1837
  const u = require_universalify().fromPromise;
1832
1838
  const jsonFile = require_jsonfile();
@@ -1841,7 +1847,7 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1841
1847
  module.exports = jsonFile;
1842
1848
  }));
1843
1849
  //#endregion
1844
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move.js
1850
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/move/move.js
1845
1851
  var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1846
1852
  const fs = require_fs();
1847
1853
  const path$2 = __require("path");
@@ -1881,7 +1887,7 @@ var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1881
1887
  module.exports = move;
1882
1888
  }));
1883
1889
  //#endregion
1884
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move-sync.js
1890
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/move/move-sync.js
1885
1891
  var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1886
1892
  const fs = require_graceful_fs();
1887
1893
  const path$1 = __require("path");
@@ -1929,7 +1935,7 @@ var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1929
1935
  module.exports = moveSync;
1930
1936
  }));
1931
1937
  //#endregion
1932
- //#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/index.js
1938
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/move/index.js
1933
1939
  var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1934
1940
  const u = require_universalify().fromPromise;
1935
1941
  module.exports = {
@@ -1938,8 +1944,8 @@ var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1938
1944
  };
1939
1945
  }));
1940
1946
  //#endregion
1941
- //#region ../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.mjs
1942
- var import_lib = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
1947
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/index.js
1948
+ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1943
1949
  module.exports = {
1944
1950
  ...require_fs(),
1945
1951
  ...require_copy(),
@@ -1952,7 +1958,10 @@ var import_lib = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((export
1952
1958
  ...require_path_exists(),
1953
1959
  ...require_remove()
1954
1960
  };
1955
- })))(), 1);
1961
+ }));
1962
+ //#endregion
1963
+ //#region ../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.mjs
1964
+ var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
1956
1965
  var astralIdentifierCodes = [
1957
1966
  509,
1958
1967
  0,
@@ -5460,23 +5469,21 @@ var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic";
5460
5469
  var ecma11BinaryProperties = ecma10BinaryProperties;
5461
5470
  var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict";
5462
5471
  var ecma13BinaryProperties = ecma12BinaryProperties;
5463
- var ecma14BinaryProperties = ecma13BinaryProperties;
5464
5472
  var unicodeBinaryProperties = {
5465
5473
  9: ecma9BinaryProperties,
5466
5474
  10: ecma10BinaryProperties,
5467
5475
  11: ecma11BinaryProperties,
5468
5476
  12: ecma12BinaryProperties,
5469
5477
  13: ecma13BinaryProperties,
5470
- 14: ecma14BinaryProperties
5478
+ 14: ecma13BinaryProperties
5471
5479
  };
5472
- var ecma14BinaryPropertiesOfStrings = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
5473
5480
  var unicodeBinaryPropertiesOfStrings = {
5474
5481
  9: "",
5475
5482
  10: "",
5476
5483
  11: "",
5477
5484
  12: "",
5478
5485
  13: "",
5479
- 14: ecma14BinaryPropertiesOfStrings
5486
+ 14: "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"
5480
5487
  };
5481
5488
  var unicodeGeneralCategoryValues = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";
5482
5489
  var ecma9ScriptValues = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";
@@ -5484,14 +5491,13 @@ var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Han
5484
5491
  var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
5485
5492
  var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
5486
5493
  var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
5487
- var ecma14ScriptValues = ecma13ScriptValues + " " + scriptValuesAddedInUnicode;
5488
5494
  var unicodeScriptValues = {
5489
5495
  9: ecma9ScriptValues,
5490
5496
  10: ecma10ScriptValues,
5491
5497
  11: ecma11ScriptValues,
5492
5498
  12: ecma12ScriptValues,
5493
5499
  13: ecma13ScriptValues,
5494
- 14: ecma14ScriptValues
5500
+ 14: ecma13ScriptValues + " " + scriptValuesAddedInUnicode
5495
5501
  };
5496
5502
  var data = {};
5497
5503
  function buildUnicodeData(ecmaVersion) {
@@ -7760,6 +7766,7 @@ function makeNodeErrorWithCode(Base, key) {
7760
7766
  configurable: true
7761
7767
  },
7762
7768
  toString: {
7769
+ /** @this {Error} */
7763
7770
  value() {
7764
7771
  return `${this.name} [${key}]: ${this.message}`;
7765
7772
  },
@@ -8688,114 +8695,7 @@ function resolvePathSync(id, options) {
8688
8695
  return fileURLToPath$1(resolveSync(id, options));
8689
8696
  }
8690
8697
  //#endregion
8691
- //#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
8692
- function isPlainObject(value) {
8693
- if (value === null || typeof value !== "object") return false;
8694
- const prototype = Object.getPrototypeOf(value);
8695
- if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) return false;
8696
- if (Symbol.iterator in value) return false;
8697
- if (Symbol.toStringTag in value) return Object.prototype.toString.call(value) === "[object Module]";
8698
- return true;
8699
- }
8700
- function _defu(baseObject, defaults, namespace = ".", merger) {
8701
- if (!isPlainObject(defaults)) return _defu(baseObject, {}, namespace, merger);
8702
- const object = { ...defaults };
8703
- for (const key of Object.keys(baseObject)) {
8704
- if (key === "__proto__" || key === "constructor") continue;
8705
- const value = baseObject[key];
8706
- if (value === null || value === void 0) continue;
8707
- if (merger && merger(object, key, value, namespace)) continue;
8708
- if (Array.isArray(value) && Array.isArray(object[key])) object[key] = [...value, ...object[key]];
8709
- else if (isPlainObject(value) && isPlainObject(object[key])) object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
8710
- else object[key] = value;
8711
- }
8712
- return object;
8713
- }
8714
- function createDefu(merger) {
8715
- return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
8716
- }
8717
- const defu = createDefu();
8718
- createDefu((object, key, currentValue) => {
8719
- if (object[key] !== void 0 && typeof currentValue === "function") {
8720
- object[key] = currentValue(object[key]);
8721
- return true;
8722
- }
8723
- });
8724
- createDefu((object, key, currentValue) => {
8725
- if (Array.isArray(object[key]) && typeof currentValue === "function") {
8726
- object[key] = currentValue(object[key]);
8727
- return true;
8728
- }
8729
- });
8730
- var preset_vue_default = defineVixtModule({
8731
- meta: { name: "vixt:preset-vue" },
8732
- setup(_, vixt) {
8733
- const { components = [], composables = [], constants = [], utils = [], stores = [], pages = [], layouts = [] } = resolveLayersDirs([...vixt._layers].reverse());
8734
- const { buildTypesDir } = vixt.options;
8735
- const defaultOptions = {
8736
- vue: {},
8737
- vueJsx: {},
8738
- router: {
8739
- dts: `${buildTypesDir}/typed-router.d.ts`,
8740
- routesFolder: pages,
8741
- extendRoute(route) {
8742
- const node = route.node.value;
8743
- const overrides = node._overrides;
8744
- if (overrides.size <= 1) return;
8745
- for (const pageDir of [...pages].reverse()) {
8746
- const matched = [...overrides.keys()].find((e) => e.match(pageDir));
8747
- if (matched) {
8748
- node.components.set("default", matched);
8749
- return;
8750
- }
8751
- }
8752
- }
8753
- },
8754
- layouts: {
8755
- layoutsDirs: layouts,
8756
- pagesDirs: pages
8757
- },
8758
- components: {
8759
- dts: `${buildTypesDir}/components.d.ts`,
8760
- dirs: [...components].reverse(),
8761
- directoryAsNamespace: true,
8762
- collapseSamePrefixes: true
8763
- },
8764
- imports: {
8765
- imports: [
8766
- "vue",
8767
- "@vueuse/core",
8768
- "pinia",
8769
- VueRouterAutoImports,
8770
- VixtClientAutoImports
8771
- ],
8772
- dts: `${buildTypesDir}/auto-imports.d.ts`,
8773
- dirs: [
8774
- composables,
8775
- constants,
8776
- stores,
8777
- utils
8778
- ].flat(),
8779
- vueTemplate: true
8780
- },
8781
- unocss: {},
8782
- devtools: { enabled: false }
8783
- };
8784
- const options = vixt.options = defu(vixt.options, defaultOptions);
8785
- return [
8786
- VueRouter(options.router),
8787
- Vue(options.vue),
8788
- VueJsx(options.vueJsx),
8789
- Layouts(options.layouts),
8790
- Components(options.components),
8791
- AutoImport(options.imports),
8792
- UnoCSS(options.unocss),
8793
- options.devtools?.enabled && VueDevTools(options.devtools)
8794
- ];
8795
- }
8796
- });
8797
- //#endregion
8798
- //#region src/modules/virtual-root-component.ts
8698
+ //#region src/node/modules/virtual-root-component.ts
8799
8699
  function resolveRootComponent(vixt) {
8800
8700
  for (const layer of vixt._layers) {
8801
8701
  const layerRootComponentPath = posix.resolve(layer.config.srcDir, "App.vue");
@@ -8840,28 +8740,4 @@ var virtual_root_component_default = defineVixtModule({
8840
8740
  }
8841
8741
  });
8842
8742
  //#endregion
8843
- //#region src/index.ts
8844
- const plugins = ["@vixt/vue/client/plugins/pinia", "@vixt/vue/client/plugins/router"];
8845
- var src_default = createVixtPlugin({ defaults: {
8846
- modules: [preset_vue_default, virtual_root_component_default],
8847
- plugins,
8848
- app: {
8849
- entryFile: "main.ts",
8850
- entryCode: import_lib.default.readFileSync(resolvePathSync("@vixt/vue/client/entry"), "utf-8"),
8851
- head: { meta: [{ charset: "utf-8" }, {
8852
- name: "viewport",
8853
- content: "width=device-width, initial-scale=1.0"
8854
- }] }
8855
- },
8856
- typescript: { tsConfig: {
8857
- compilerOptions: { types: [
8858
- "@vixt/vue/types",
8859
- "vue-router/auto",
8860
- "vite-plugin-vue-layouts/client"
8861
- ] },
8862
- vueCompilerOptions: { plugins: ["vue-router/volar/sfc-typed-router", "vue-router/volar/sfc-route-blocks"] }
8863
- } },
8864
- vite: { optimizeDeps: { exclude: plugins } }
8865
- } });
8866
- //#endregion
8867
- export { src_default as default };
8743
+ export { __toESM as a, require_lib as i, virtual_root_component_default as n, resolvePathSync as r, isEmptyCode as t };
@@ -1,2 +1,2 @@
1
- import './client.d'
2
- import './node.d'
1
+ import '../client/client.d'
2
+ import '../node/node.d'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/vue",
3
3
  "type": "module",
4
- "version": "0.10.1",
4
+ "version": "0.11.1",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://soullyoko.github.io/vixt/",
@@ -12,31 +12,26 @@
12
12
  "vue"
13
13
  ],
14
14
  "exports": {
15
- ".": "./dist/index.mjs",
15
+ ".": "./dist/node/index.mjs",
16
16
  "./client/App": "./dist/client/App.vue",
17
17
  "./client/*": "./dist/client/*.js",
18
18
  "./types": "./dist/types/index.d.ts",
19
19
  "./package.json": "./package.json"
20
20
  },
21
- "main": "./dist/index.mjs",
21
+ "main": "./dist/node/index.mjs",
22
22
  "types": "./dist/types/index.d.ts",
23
23
  "files": [
24
24
  "dist"
25
25
  ],
26
26
  "dependencies": {
27
- "@vitejs/plugin-vue": "^6.0.5",
27
+ "@vitejs/plugin-vue": "^6.0.7",
28
28
  "@vitejs/plugin-vue-jsx": "^5.1.5",
29
- "@vueuse/core": "^13.9.0",
30
- "pinia": "^3.0.4",
31
- "pinia-plugin-persistedstate": "^4.7.1",
32
- "unocss": "^66.6.7",
33
- "unplugin-auto-import": "^21.0.0",
34
29
  "unplugin-vue-components": "28.0.0",
35
- "vite-plugin-vue-devtools": "^8.1.1",
30
+ "vite-plugin-vue-devtools": "^8.1.2",
36
31
  "vite-plugin-vue-layouts": "^0.11.0",
37
- "vue": "^3.5.32",
38
- "vue-router": "^5.0.4",
39
- "vue-tsc": "^3.2.6",
40
- "@vixt/core": "0.10.1"
32
+ "vue": "^3.5.34",
33
+ "vue-router": "^5.0.7",
34
+ "vue-tsc": "^3.3.1",
35
+ "@vixt/core": "0.11.1"
41
36
  }
42
37
  }
@@ -1,6 +0,0 @@
1
- import * as _$_vixt_core_client0 from "@vixt/core/client";
2
-
3
- //#region src/client/plugins/pinia.d.ts
4
- declare const _default: _$_vixt_core_client0.VixtPlugin;
5
- //#endregion
6
- export { _default as default };
@@ -1,16 +0,0 @@
1
- import { defineVixtPlugin } from "@vixt/core/client";
2
- import { createPinia } from "pinia";
3
- import { createPersistedState } from "pinia-plugin-persistedstate";
4
- //#region src/client/plugins/pinia.ts
5
- var pinia_default = defineVixtPlugin({
6
- name: "vixt:pinia",
7
- setup(vixt) {
8
- const { app, appConfig } = vixt;
9
- const pinia = createPinia();
10
- pinia.use(createPersistedState(appConfig.piniaPersistedState));
11
- app.use(pinia);
12
- vixt.pinia = pinia;
13
- }
14
- });
15
- //#endregion
16
- export { pinia_default as default };
@@ -1,20 +0,0 @@
1
- import type { Pinia } from 'pinia'
2
- import type { PluginOptions as PersistedStateOptions } from 'pinia-plugin-persistedstate'
3
- import type { App } from 'vue'
4
- import type { Router, RouteRecord, RouterOptions } from 'vue-router'
5
-
6
- declare module '@vixt/core/client' {
7
- interface VixtAppConfig {
8
- router?: Partial<RouterOptions>
9
- /** https://github.com/prazdevs/pinia-plugin-persistedstate */
10
- piniaPersistedState?: PersistedStateOptions
11
- }
12
-
13
- interface VixtApp {
14
- app: App
15
- router: Router
16
- routes: RouteRecord[]
17
- pinia: Pinia
18
- appConfig: VixtAppConfig
19
- }
20
- }
@@ -1,28 +0,0 @@
1
- import type Vue from '@vitejs/plugin-vue'
2
- import type VueJsx from '@vitejs/plugin-vue-jsx'
3
- import type { ExtractPluginOptions } from '@vixt/core'
4
- import type UnoCSS from 'unocss/vite'
5
- import type AutoImport from 'unplugin-auto-import/vite'
6
- import type Components from 'unplugin-vue-components/vite'
7
- import type VueDevTools from 'vite-plugin-vue-devtools'
8
- import type Layouts from 'vite-plugin-vue-layouts'
9
- import type VueRouter from 'vue-router/vite'
10
-
11
- declare module '@vixt/core' {
12
- interface VixtOptions {
13
- vue?: ExtractPluginOptions<typeof Vue>
14
- vueJsx?: ExtractPluginOptions<typeof VueJsx>
15
- /** https://router.vuejs.org/file-based-routing/ */
16
- router?: ExtractPluginOptions<typeof VueRouter>
17
- /** https://github.com/JohnCampionJr/vite-plugin-vue-layouts */
18
- layouts?: ExtractPluginOptions<typeof Layouts>
19
- /** https://github.com/unplugin/unplugin-vue-components */
20
- components?: ExtractPluginOptions<typeof Components>
21
- /** https://github.com/unplugin/unplugin-auto-import */
22
- imports?: ExtractPluginOptions<typeof AutoImport>
23
- /** https://github.com/unocss/unocss */
24
- unocss?: ExtractPluginOptions<typeof UnoCSS>
25
- /** https://github.com/webfansplz/vite-plugin-vue-devtools */
26
- devtools?: ExtractPluginOptions<typeof VueDevTools> & { enabled?: boolean }
27
- }
28
- }