@nuxt/kit 4.0.2 → 4.0.3
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 +8 -5
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { resolveModulePath, resolveModuleURL } from 'exsolve';
|
|
|
15
15
|
import { isRelative, withTrailingSlash } from 'ufo';
|
|
16
16
|
import { captureStackTrace } from 'errx';
|
|
17
17
|
import { glob } from 'tinyglobby';
|
|
18
|
-
import { resolveAlias as resolveAlias$1 } from 'pathe/utils';
|
|
18
|
+
import { resolveAlias as resolveAlias$1, reverseResolveAlias } from 'pathe/utils';
|
|
19
19
|
import ignore from 'ignore';
|
|
20
20
|
import { loadConfig } from 'c12';
|
|
21
21
|
import process$1 from 'node:process';
|
|
@@ -478,8 +478,7 @@ function existsInVFS(path, nuxt = tryUseNuxt()) {
|
|
|
478
478
|
}
|
|
479
479
|
async function resolveFiles(path, pattern, opts = {}) {
|
|
480
480
|
const files = [];
|
|
481
|
-
for (const
|
|
482
|
-
const p = resolve(path, file);
|
|
481
|
+
for (const p of await glob(pattern, { cwd: path, followSymbolicLinks: opts.followSymbolicLinks ?? true, absolute: true })) {
|
|
483
482
|
if (!isIgnored(p)) {
|
|
484
483
|
files.push(p);
|
|
485
484
|
}
|
|
@@ -1552,9 +1551,9 @@ function addLayout(template, name) {
|
|
|
1552
1551
|
const layoutName = kebabCase(name || parse(filename).name).replace(LAYOUT_RE, "");
|
|
1553
1552
|
nuxt.hook("app:templates", (app) => {
|
|
1554
1553
|
if (layoutName in app.layouts) {
|
|
1555
|
-
const relativePath =
|
|
1554
|
+
const relativePath = reverseResolveAlias(app.layouts[layoutName].file, { ...nuxt?.options.alias || {}, ...strippedAtAliases }).pop() || app.layouts[layoutName].file;
|
|
1556
1555
|
return logger.warn(
|
|
1557
|
-
`Not overriding \`${layoutName}\` (provided by
|
|
1556
|
+
`Not overriding \`${layoutName}\` (provided by \`${relativePath}\`) with \`${src || filename}\`.`
|
|
1558
1557
|
);
|
|
1559
1558
|
}
|
|
1560
1559
|
app.layouts[layoutName] = {
|
|
@@ -1563,6 +1562,10 @@ function addLayout(template, name) {
|
|
|
1563
1562
|
};
|
|
1564
1563
|
});
|
|
1565
1564
|
}
|
|
1565
|
+
const strippedAtAliases = {
|
|
1566
|
+
"@": "",
|
|
1567
|
+
"@@": ""
|
|
1568
|
+
};
|
|
1566
1569
|
|
|
1567
1570
|
function extendPages(cb) {
|
|
1568
1571
|
useNuxt().hook("pages:extend", cb);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/kit",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"c12": "^3.
|
|
26
|
+
"c12": "^3.2.0",
|
|
27
27
|
"consola": "^3.4.2",
|
|
28
28
|
"defu": "^6.1.4",
|
|
29
29
|
"destr": "^2.0.5",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"untyped": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@rspack/core": "1.4.
|
|
49
|
+
"@rspack/core": "1.4.11",
|
|
50
50
|
"@types/semver": "7.7.0",
|
|
51
51
|
"hookable": "5.5.3",
|
|
52
52
|
"nitropack": "2.12.4",
|
|
53
53
|
"unbuild": "3.6.0",
|
|
54
54
|
"vite": "7.0.6",
|
|
55
55
|
"vitest": "3.2.4",
|
|
56
|
-
"webpack": "5.
|
|
57
|
-
"@nuxt/schema": "4.0.
|
|
56
|
+
"webpack": "5.101.0",
|
|
57
|
+
"@nuxt/schema": "4.0.3"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=18.12.0"
|