@nuxt/kit 3.18.0 → 3.18.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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -5
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ import { interopDefault, parseNodeModulePath, resolveModuleExportNames } from 'm
15
15
  import { resolveModulePath, resolveModuleURL } from 'exsolve';
16
16
  import { isRelative, withTrailingSlash } from 'ufo';
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';
@@ -2478,8 +2478,7 @@ function existsInVFS(path, nuxt = tryUseNuxt()) {
2478
2478
  }
2479
2479
  async function resolveFiles(path, pattern, opts = {}) {
2480
2480
  const files = [];
2481
- for (const file of await glob(pattern, { cwd: path, followSymbolicLinks: opts.followSymbolicLinks ?? true })) {
2482
- const p = resolve(path, file);
2481
+ for (const p of await glob(pattern, { cwd: path, followSymbolicLinks: opts.followSymbolicLinks ?? true, absolute: true })) {
2483
2482
  if (!isIgnored(p)) {
2484
2483
  files.push(p);
2485
2484
  }
@@ -3392,9 +3391,9 @@ function addLayout(template, name) {
3392
3391
  }
3393
3392
  nuxt.hook("app:templates", (app) => {
3394
3393
  if (layoutName in app.layouts) {
3395
- const relativePath = relative(nuxt.options.srcDir, app.layouts[layoutName].file);
3394
+ const relativePath = reverseResolveAlias(app.layouts[layoutName].file, { ...nuxt?.options.alias || {}, ...strippedAtAliases }).pop() || app.layouts[layoutName].file;
3396
3395
  return logger.warn(
3397
- `Not overriding \`${layoutName}\` (provided by \`~/${relativePath}\`) with \`${src || filename}\`.`
3396
+ `Not overriding \`${layoutName}\` (provided by \`${relativePath}\`) with \`${src || filename}\`.`
3398
3397
  );
3399
3398
  }
3400
3399
  app.layouts[layoutName] = {
@@ -3403,6 +3402,10 @@ function addLayout(template, name) {
3403
3402
  };
3404
3403
  });
3405
3404
  }
3405
+ const strippedAtAliases = {
3406
+ "@": "",
3407
+ "@@": ""
3408
+ };
3406
3409
 
3407
3410
  function extendPages(cb) {
3408
3411
  const nuxt = useNuxt();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit",
3
- "version": "3.18.0",
3
+ "version": "3.18.1",
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.1.0",
26
+ "c12": "^3.2.0",
27
27
  "consola": "^3.4.2",
28
28
  "defu": "^6.1.4",
29
29
  "destr": "^2.0.5",
@@ -47,7 +47,7 @@
47
47
  "untyped": "^2.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@rspack/core": "1.4.10",
50
+ "@rspack/core": "1.4.11",
51
51
  "@types/lodash-es": "4.17.12",
52
52
  "@types/semver": "7.7.0",
53
53
  "hookable": "5.5.3",
@@ -56,8 +56,8 @@
56
56
  "unbuild": "3.6.0",
57
57
  "vite": "7.0.6",
58
58
  "vitest": "3.2.4",
59
- "webpack": "5.99.9",
60
- "@nuxt/schema": "3.18.0"
59
+ "webpack": "5.101.0",
60
+ "@nuxt/schema": "3.18.1"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">=18.12.0"