@nuxt/schema-nightly 5.0.0-29610254.a9266e21 → 5.0.0-29611511.f7bd3213

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 -4
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import process from "node:process";
2
2
  import { defu } from "defu";
3
3
  import { join, relative, resolve } from "pathe";
4
- import { isDebug, isDevelopment, isTest } from "std-env";
5
4
  import { existsSync } from "node:fs";
6
5
  import { readdir } from "node:fs/promises";
7
6
  import { randomUUID } from "node:crypto";
7
+ import { isDebug, isDevelopment, isTest } from "std-env";
8
8
  import { findWorkspaceDir } from "pkg-types";
9
9
  import { escapeHtml } from "@vue/shared";
10
10
  //#region src/utils/definition.ts
@@ -169,13 +169,13 @@ var build_default = defineResolvers({
169
169
  ...typeof val === "object" ? val : {}
170
170
  };
171
171
  } },
172
- logLevel: { $resolve: (val) => {
172
+ logLevel: { $resolve: async (val, get) => {
173
173
  if (val && typeof val === "string" && ![
174
174
  "silent",
175
175
  "info",
176
176
  "verbose"
177
177
  ].includes(val)) console.warn(`Invalid \`logLevel\` option: \`${val}\`. Must be one of: \`silent\`, \`info\`, \`verbose\`.`);
178
- return val && typeof val === "string" ? val : isTest ? "silent" : "info";
178
+ return val && typeof val === "string" ? val : await get("test") ? "silent" : "info";
179
179
  } },
180
180
  build: {
181
181
  transpile: { $resolve: (val) => {
@@ -837,7 +837,11 @@ var vite_default = defineResolvers({ vite: {
837
837
  root: { $resolve: (val, get) => typeof val === "string" ? val : get("srcDir") },
838
838
  mode: { $resolve: async (val, get) => typeof val === "string" ? val : await get("dev") ? "development" : "production" },
839
839
  define: { $resolve: async (_val, get) => {
840
- const [isDev, isDebug] = await Promise.all([get("dev"), get("debug")]);
840
+ const [isDev, isTest, isDebug] = await Promise.all([
841
+ get("dev"),
842
+ get("test"),
843
+ get("debug")
844
+ ]);
841
845
  return {
842
846
  "__VUE_PROD_HYDRATION_MISMATCH_DETAILS__": Boolean(isDebug && (isDebug === true || isDebug.hydration)),
843
847
  "process.dev": isDev,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/schema-nightly",
3
- "version": "5.0.0-29610254.a9266e21",
3
+ "version": "5.0.0-29611511.f7bd3213",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -62,7 +62,7 @@
62
62
  "vue-bundle-renderer": "2.2.0",
63
63
  "vue-loader": "17.4.2",
64
64
  "vue-router": "5.0.3",
65
- "webpack": "5.106.1",
65
+ "webpack": "5.106.2",
66
66
  "webpack-dev-middleware": "8.0.3"
67
67
  },
68
68
  "dependencies": {