@vixt/core 0.13.4 → 0.13.5
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/client/index.d.ts +2356 -14
- package/dist/client/index.js +264 -72
- package/dist/node/index.d.mts +40 -41
- package/dist/node/index.mjs +10 -39
- package/package.json +7 -7
package/dist/node/index.mjs
CHANGED
|
@@ -12,7 +12,6 @@ import Legacy from "@vitejs/plugin-legacy";
|
|
|
12
12
|
import Analyzer from "vite-bundle-analyzer";
|
|
13
13
|
import Ssl from "@vitejs/plugin-basic-ssl";
|
|
14
14
|
import AutoImport from "unplugin-auto-import/vite";
|
|
15
|
-
import { writeTypes } from "nitro/builder";
|
|
16
15
|
import { nitro } from "nitro/vite";
|
|
17
16
|
import Checker from "vite-plugin-checker";
|
|
18
17
|
import { builders, parseExpression, parseModule } from "magicast";
|
|
@@ -482,13 +481,6 @@ var imports_default = defineVixtModule({
|
|
|
482
481
|
});
|
|
483
482
|
//#endregion
|
|
484
483
|
//#region src/node/modules/nitro.ts
|
|
485
|
-
let nitroCtx;
|
|
486
|
-
function setNitroCtx(ctx) {
|
|
487
|
-
nitroCtx = ctx;
|
|
488
|
-
}
|
|
489
|
-
function writeTypes$1() {
|
|
490
|
-
return nitroCtx && writeTypes(nitroCtx);
|
|
491
|
-
}
|
|
492
484
|
var nitro_default = defineVixtModule({
|
|
493
485
|
meta: {
|
|
494
486
|
name: "vixt:nitro",
|
|
@@ -501,41 +493,20 @@ var nitro_default = defineVixtModule({
|
|
|
501
493
|
const { serverDir = "./server" } = layer.config?.nitro ?? {};
|
|
502
494
|
return path.join(layer.cwd, serverDir);
|
|
503
495
|
}),
|
|
504
|
-
serverDir: "./server"
|
|
505
|
-
typescript: { generatedTypesDir: vixt.options.buildTypesDir },
|
|
506
|
-
modules: [(nitro) => {
|
|
507
|
-
nitro.hooks.hook("build:before", (ctx) => {
|
|
508
|
-
setNitroCtx(ctx);
|
|
509
|
-
writeTypes$1();
|
|
510
|
-
});
|
|
511
|
-
}]
|
|
496
|
+
serverDir: "./server"
|
|
512
497
|
};
|
|
513
498
|
},
|
|
514
|
-
setup(options
|
|
499
|
+
setup(options) {
|
|
515
500
|
if (!options.enabled) return;
|
|
516
|
-
return [
|
|
517
|
-
|
|
518
|
-
{
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
watcher.add(routesDirs);
|
|
524
|
-
watcher.on("all", (_, p) => {
|
|
525
|
-
if (routesDirs.some((r) => path.normalize(p).includes(path.normalize(r)))) writeTypes$1();
|
|
526
|
-
});
|
|
527
|
-
}
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
name: "vixt:config-outdir-for-unocss",
|
|
531
|
-
config() {
|
|
532
|
-
let publicDir = ".output/public";
|
|
533
|
-
if (options.output?.publicDir) publicDir = options.output.publicDir;
|
|
534
|
-
else if (options.output?.dir) publicDir = path.join(options.output.dir, "public");
|
|
535
|
-
return { build: { outDir: publicDir } };
|
|
536
|
-
}
|
|
501
|
+
return [nitro(options), {
|
|
502
|
+
name: "vixt:config-outdir-for-unocss",
|
|
503
|
+
config() {
|
|
504
|
+
let publicDir = ".output/public";
|
|
505
|
+
if (options.output?.publicDir) publicDir = options.output.publicDir;
|
|
506
|
+
else if (options.output?.dir) publicDir = path.join(options.output.dir, "public");
|
|
507
|
+
return { build: { outDir: publicDir } };
|
|
537
508
|
}
|
|
538
|
-
];
|
|
509
|
+
}];
|
|
539
510
|
}
|
|
540
511
|
});
|
|
541
512
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/core",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.5",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"nuxt",
|
|
6
6
|
"react",
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
"@types/fs-extra": "^11.0.4",
|
|
34
34
|
"@vitejs/plugin-basic-ssl": "^2.3.0",
|
|
35
35
|
"@vitejs/plugin-legacy": "^8.2.3",
|
|
36
|
-
"@vixt/cli": "0.13.
|
|
36
|
+
"@vixt/cli": "0.13.5",
|
|
37
37
|
"@vue/tsconfig": "^0.9.1",
|
|
38
38
|
"c12": "^3.3.4",
|
|
39
39
|
"defu": "^6.1.7",
|
|
40
40
|
"find-up": "^8.0.0",
|
|
41
|
-
"fs-extra": "^11.4.
|
|
41
|
+
"fs-extra": "^11.4.1",
|
|
42
42
|
"jiti": "^2.7.0",
|
|
43
|
-
"magicast": "^0.5.
|
|
43
|
+
"magicast": "^0.5.5",
|
|
44
44
|
"mlly": "^1.8.2",
|
|
45
|
-
"nitro": "^3.0.
|
|
45
|
+
"nitro": "^3.0.260903-beta",
|
|
46
46
|
"pathe": "^2.0.3",
|
|
47
|
-
"pkg-types": "^2.3.
|
|
47
|
+
"pkg-types": "^2.3.3",
|
|
48
48
|
"unplugin-auto-import": "^21.1.0",
|
|
49
|
-
"vite": "^8.
|
|
49
|
+
"vite": "^8.3.4",
|
|
50
50
|
"vite-bundle-analyzer": "^1.3.9",
|
|
51
51
|
"vite-plugin-checker": "^0.14.5"
|
|
52
52
|
}
|