@nuxt/kit 3.19.0 → 3.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +6 -2
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -2595,6 +2595,7 @@ async function installModules(modulesToInstall, resolvedModulePaths, nuxt = useN
|
|
|
2595
2595
|
if (value.optional === true) {
|
|
2596
2596
|
continue;
|
|
2597
2597
|
}
|
|
2598
|
+
nuxt.options.typescript.hoist.push(name);
|
|
2598
2599
|
if (resolvedModule && !modulesToInstall.has(resolvedModule.module) && (!resolvedModule.resolvedPath || !resolvedModulePaths.has(resolvedModule.resolvedPath))) {
|
|
2599
2600
|
if (typeof resolvedModule.module === "string" && inlineConfigKeys.has(resolvedModule.module)) {
|
|
2600
2601
|
continue;
|
|
@@ -2927,7 +2928,10 @@ async function loadNuxt(opts) {
|
|
|
2927
2928
|
opts.cwd ||= opts.rootDir;
|
|
2928
2929
|
opts.overrides ||= opts.config || {};
|
|
2929
2930
|
opts.overrides.dev = !!opts.dev;
|
|
2930
|
-
const resolvedPath = ["nuxt-nightly", "nuxt3", "nuxt", "nuxt-edge"].
|
|
2931
|
+
const resolvedPath = ["nuxt-nightly", "nuxt3", "nuxt", "nuxt-edge"].reduce((resolvedPath2, pkg2) => {
|
|
2932
|
+
const path = resolveModulePath(pkg2, { try: true, from: [directoryToURL(opts.cwd)] });
|
|
2933
|
+
return path && path.length > resolvedPath2.length ? path : resolvedPath2;
|
|
2934
|
+
}, "");
|
|
2931
2935
|
if (!resolvedPath) {
|
|
2932
2936
|
throw new Error(`Cannot find any nuxt version from ${opts.cwd}`);
|
|
2933
2937
|
}
|
|
@@ -3275,7 +3279,7 @@ function normalizeComponent(opts) {
|
|
|
3275
3279
|
function addTemplate(_template) {
|
|
3276
3280
|
const nuxt = useNuxt();
|
|
3277
3281
|
const template = normalizeTemplate(_template);
|
|
3278
|
-
filterInPlace(nuxt.options.build.templates, (p) => normalizeTemplate(p).dst !== template.dst);
|
|
3282
|
+
filterInPlace(nuxt.options.build.templates, (p) => (p.dst || normalizeTemplate(p).dst) !== template.dst);
|
|
3279
3283
|
try {
|
|
3280
3284
|
const distDir = distDirURL.toString();
|
|
3281
3285
|
const { source } = captureStackTrace().find((e) => e.source && !e.source.startsWith(distDir)) ?? {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/kit",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -41,24 +41,24 @@
|
|
|
41
41
|
"scule": "^1.3.0",
|
|
42
42
|
"semver": "^7.7.2",
|
|
43
43
|
"std-env": "^3.9.0",
|
|
44
|
-
"tinyglobby": "^0.2.
|
|
44
|
+
"tinyglobby": "^0.2.15",
|
|
45
45
|
"ufo": "^1.6.1",
|
|
46
46
|
"unctx": "^2.4.1",
|
|
47
47
|
"unimport": "^5.2.0",
|
|
48
48
|
"untyped": "^2.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@rspack/core": "1.5.
|
|
51
|
+
"@rspack/core": "1.5.3",
|
|
52
52
|
"@types/lodash-es": "4.17.12",
|
|
53
|
-
"@types/semver": "7.7.
|
|
53
|
+
"@types/semver": "7.7.1",
|
|
54
54
|
"hookable": "5.5.3",
|
|
55
55
|
"lodash-es": "4.17.21",
|
|
56
|
-
"nitropack": "2.12.
|
|
56
|
+
"nitropack": "2.12.5",
|
|
57
57
|
"unbuild": "3.6.1",
|
|
58
|
-
"vite": "7.1.
|
|
58
|
+
"vite": "7.1.5",
|
|
59
59
|
"vitest": "3.2.4",
|
|
60
60
|
"webpack": "5.101.3",
|
|
61
|
-
"@nuxt/schema": "3.19.
|
|
61
|
+
"@nuxt/schema": "3.19.2"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=18.12.0"
|