@nuxt/kit 3.19.1 → 3.19.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/README.md CHANGED
@@ -60,7 +60,7 @@ Example of an `app.vue`:
60
60
  <script setup lang="ts">
61
61
  useSeoMeta({
62
62
  title: 'Meet Nuxt',
63
- description: 'The Intuitive Vue Framework.'
63
+ description: 'The Intuitive Vue Framework.',
64
64
  })
65
65
  </script>
66
66
 
package/dist/index.d.mts CHANGED
@@ -407,6 +407,9 @@ type PathType = 'file' | 'dir';
407
407
  * @param path path to the directory to resolve files in
408
408
  * @param pattern glob pattern or an array of glob patterns to match files
409
409
  * @param opts options for globbing
410
+ * @param opts.followSymbolicLinks whether to follow symbolic links, default is `true`
411
+ * @param opts.ignore additional glob patterns to ignore
412
+ * @returns sorted array of absolute file paths
410
413
  */
411
414
  declare function resolveFiles(path: string, pattern: string | string[], opts?: {
412
415
  followSymbolicLinks?: boolean;
package/dist/index.d.ts CHANGED
@@ -407,6 +407,9 @@ type PathType = 'file' | 'dir';
407
407
  * @param path path to the directory to resolve files in
408
408
  * @param pattern glob pattern or an array of glob patterns to match files
409
409
  * @param opts options for globbing
410
+ * @param opts.followSymbolicLinks whether to follow symbolic links, default is `true`
411
+ * @param opts.ignore additional glob patterns to ignore
412
+ * @returns sorted array of absolute file paths
410
413
  */
411
414
  declare function resolveFiles(path: string, pattern: string | string[], opts?: {
412
415
  followSymbolicLinks?: boolean;
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"].map((pkg2) => resolveModulePath(pkg2, { try: true, from: [directoryToURL(opts.cwd)] })).filter((p) => !!p).sort((a, b) => b.length - a.length)[0];
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.1",
3
+ "version": "3.19.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -23,14 +23,14 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "c12": "^3.2.0",
26
+ "c12": "^3.3.0",
27
27
  "consola": "^3.4.2",
28
28
  "defu": "^6.1.4",
29
29
  "destr": "^2.0.5",
30
30
  "errx": "^0.1.0",
31
31
  "exsolve": "^1.0.7",
32
32
  "ignore": "^7.0.5",
33
- "jiti": "^2.5.1",
33
+ "jiti": "^2.6.1",
34
34
  "klona": "^2.0.6",
35
35
  "knitwork": "^1.2.0",
36
36
  "mlly": "^1.8.0",
@@ -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.14",
44
+ "tinyglobby": "^0.2.15",
45
45
  "ufo": "^1.6.1",
46
46
  "unctx": "^2.4.1",
47
- "unimport": "^5.2.0",
47
+ "unimport": "^5.4.1",
48
48
  "untyped": "^2.0.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@rspack/core": "1.5.2",
51
+ "@rspack/core": "1.5.8",
52
52
  "@types/lodash-es": "4.17.12",
53
- "@types/semver": "7.7.0",
53
+ "@types/semver": "7.7.1",
54
54
  "hookable": "5.5.3",
55
55
  "lodash-es": "4.17.21",
56
- "nitropack": "2.12.4",
56
+ "nitropack": "2.12.6",
57
57
  "unbuild": "3.6.1",
58
- "vite": "7.1.4",
58
+ "vite": "7.1.9",
59
59
  "vitest": "3.2.4",
60
- "webpack": "5.101.3",
61
- "@nuxt/schema": "3.19.1"
60
+ "webpack": "5.102.0",
61
+ "@nuxt/schema": "3.19.3"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=18.12.0"