diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index e4c48ab08b..6dba46850a 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -58,9 +58,9 @@ "@nuxt/telemetry": "^2.4.1", "@nuxt/ui-templates": "^1.3.1", "@nuxt/vite-builder": "workspace:../vite", + "@unhead/dom": "^1.3.2", "@unhead/ssr": "^1.3.2", "@unhead/vue": "^1.3.2", - "@unhead/dom": "^1.3.2", "@vue/shared": "^3.3.4", "acorn": "8.10.0", "c12": "^1.4.2", @@ -91,6 +91,7 @@ "pkg-types": "^1.0.3", "prompts": "^2.4.2", "scule": "^1.0.0", + "std-env": "^3.3.3", "strip-literal": "^1.3.0", "ufo": "^1.2.0", "ultrahtml": "^1.3.0", diff --git a/packages/nuxt/src/core/features.ts b/packages/nuxt/src/core/features.ts index 6c88aaebdd..882700601c 100644 --- a/packages/nuxt/src/core/features.ts +++ b/packages/nuxt/src/core/features.ts @@ -1,6 +1,7 @@ import { addDependency } from 'nypm' import { resolvePackageJSON } from 'pkg-types' import { logger } from '@nuxt/kit' +import { isCI } from 'std-env' import prompts from 'prompts' export async function ensurePackageInstalled (rootDir: string, name: string, searchPaths?: string[]) { @@ -9,6 +10,9 @@ export async function ensurePackageInstalled (rootDir: string, name: string, sea } logger.info(`Package ${name} is missing`) + if (isCI) { + return false + } const { confirm } = await prompts({ type: 'confirm', diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c82df9f924..1411ba6e46 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -463,6 +463,9 @@ importers: scule: specifier: ^1.0.0 version: 1.0.0 + std-env: + specifier: ^3.3.3 + version: 3.3.3 strip-literal: specifier: ^1.3.0 version: 1.3.0 @@ -7183,7 +7186,7 @@ packages: graceful-fs: 4.2.11 /jstransformer@1.0.0: - resolution: {integrity: sha1-7Yvwkh4vPx7U1cGkT2hwntJHIsM=} + resolution: {integrity: sha512-C9YK3Rf8q6VAPDCCU9fnqo3mAfOH6vUGnMcP4AQAYIEpWtfGLpwOTmZ+igtdK5y+VvI2n3CyYSzy4Qh34eq24A==} dependencies: is-promise: 2.2.2 promise: 7.3.1 @@ -10316,7 +10319,7 @@ packages: engines: {node: '>=0.6'} /token-stream@1.0.0: - resolution: {integrity: sha1-zCAOqyYT9BZtJ/+a/HylbUnfbrQ=} + resolution: {integrity: sha512-VSsyNPPW74RpHwR8Fc21uubwHY7wMDeJLys2IX5zJNih+OnAnaifKHo+1LHT7DAdloQ7apeaaWg8l7qnf/TnEg==} dev: false /totalist@1.1.0: