@nuxt/vite-builder-nightly 5.0.0-29754172.7cdbbb7a → 5.0.0-29754187.c12e0090

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 +4 -4
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import fs, { existsSync, readFileSync } from "node:fs";
3
3
  import { performance } from "node:perf_hooks";
4
4
  import { createBuilder, createLogger, createServer, isCSSRequest, mergeConfig, transformWithOxc } from "vite";
5
5
  import { basename, dirname, isAbsolute, join, normalize, relative, resolve } from "pathe";
6
- import { bundlerDiagnostics, createIsIgnored, directoryToURL, ensureDependencyInstalled, getLayerDirectories, logger, resolveAlias, resolvePath, setBuildOutput, tryUseNuxt, useNitro, useNuxt } from "@nuxt/kit";
6
+ import { bundlerDiagnostics, createIsIgnored, directoryToURL, ensureDependencyInstalled, getAddDependencyCommand, getLayerDirectories, logger, resolveAlias, resolvePath, setBuildOutput, tryUseNuxt, useNitro, useNuxt } from "@nuxt/kit";
7
7
  import { findStaticImports, parseNodeModulePath, sanitizeFilePath } from "mlly";
8
8
  import vuePlugin from "@vitejs/plugin-vue";
9
9
  import { getQuery, joinURL, withLeadingSlash, withTrailingSlash, withoutBase, withoutLeadingSlash } from "ufo";
@@ -253,7 +253,10 @@ async function resolvePostcssPlugin(jiti, pluginName, nuxt) {
253
253
  });
254
254
  if (typeof pluginFn === "function") return pluginFn;
255
255
  }
256
- bundlerDiagnostics.NUXT_B7007({ pluginName });
256
+ bundlerDiagnostics.NUXT_B7007({
257
+ pluginName,
258
+ installCommand: await getAddDependencyCommand(pluginName, nuxt.options.rootDir, { dev: true })
259
+ });
257
260
  }
258
261
  //#endregion
259
262
  //#region src/plugins/public-dirs.ts
@@ -587,7 +590,7 @@ function VueJsxPlugin(nuxt, options) {
587
590
  from: import.meta.url
588
591
  })) {
589
592
  installFailed = true;
590
- bundlerDiagnostics.NUXT_B7008();
593
+ bundlerDiagnostics.NUXT_B7008({ installCommand: await getAddDependencyCommand("@vitejs/plugin-vue-jsx", nuxt.options.rootDir, { dev: true }) });
591
594
  return;
592
595
  }
593
596
  const { default: viteJsxPlugin } = await import("@vitejs/plugin-vue-jsx");
@@ -1199,7 +1202,7 @@ function DecoratorsPlugin(nuxt) {
1199
1202
  if (result !== true) {
1200
1203
  bundlerDiagnostics.NUXT_B7009({
1201
1204
  deps: result.map((d) => `\`${d}\``).join(" and "),
1202
- install: result.join(" ")
1205
+ installCommand: await getAddDependencyCommand(result, nuxt.options.rootDir, { dev: true })
1203
1206
  });
1204
1207
  return false;
1205
1208
  }
@@ -1385,7 +1388,7 @@ async function AnalyzePlugin(nuxt) {
1385
1388
  searchPaths: nuxt.options.modulesDir,
1386
1389
  from: import.meta.url
1387
1390
  })) {
1388
- bundlerDiagnostics.NUXT_B7001();
1391
+ bundlerDiagnostics.NUXT_B7001({ installCommand: await getAddDependencyCommand("rollup-plugin-visualizer", nuxt.options.rootDir, { dev: true }) });
1389
1392
  return;
1390
1393
  }
1391
1394
  let config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/vite-builder-nightly",
3
- "version": "5.0.0-29754172.7cdbbb7a",
3
+ "version": "5.0.0-29754187.c12e0090",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -24,7 +24,7 @@
24
24
  "dist"
25
25
  ],
26
26
  "dependencies": {
27
- "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29754172.7cdbbb7a",
27
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29754187.c12e0090",
28
28
  "@vitejs/plugin-vue": "^6.0.8",
29
29
  "consola": "^3.4.2",
30
30
  "defu": "^6.1.7",
@@ -52,7 +52,7 @@
52
52
  "devDependencies": {
53
53
  "@babel/plugin-proposal-decorators": "8.0.2",
54
54
  "@babel/plugin-syntax-jsx": "8.0.1",
55
- "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29754172.7cdbbb7a",
55
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29754187.c12e0090",
56
56
  "@vitejs/plugin-vue-jsx": "5.1.6",
57
57
  "autoprefixer": "^10.5.4",
58
58
  "cssnano": "^8.0.2",
@@ -72,7 +72,7 @@
72
72
  "@vitejs/plugin-vue-jsx": "^5.1.5",
73
73
  "autoprefixer": "^10.4.27",
74
74
  "cssnano": "^7.1.3 || ^8.0.0",
75
- "nuxt": "npm:nuxt-nightly@5.0.0-29754172.7cdbbb7a",
75
+ "nuxt": "npm:nuxt-nightly@5.0.0-29754187.c12e0090",
76
76
  "rollup-plugin-visualizer": "^6.0.0 || ^7.0.1",
77
77
  "vue": "^3.3.4"
78
78
  },