From 0f916756de4ec7fb7736a88b0ec3ca540825eaab Mon Sep 17 00:00:00 2001 From: meteorlxy Date: Thu, 10 Oct 2024 08:59:19 +0800 Subject: [PATCH] refactor: import process explicitly --- e2e/utils/env.ts | 2 ++ packages/cli/src/config/loadUserConfig.ts | 1 + packages/utils/tests/console/withSpinner.spec.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/e2e/utils/env.ts b/e2e/utils/env.ts index 17781ce31e..2161607ea3 100644 --- a/e2e/utils/env.ts +++ b/e2e/utils/env.ts @@ -1,3 +1,5 @@ +import process from 'node:process' + export const BASE = process.env.E2E_BASE ?? '/' export const BUNDLER = process.env.E2E_BUNDLER ?? 'vite' export const COMMAND = process.env.E2E_COMMAND ?? 'dev' diff --git a/packages/cli/src/config/loadUserConfig.ts b/packages/cli/src/config/loadUserConfig.ts index 058f1d5c44..43bff6e0d0 100644 --- a/packages/cli/src/config/loadUserConfig.ts +++ b/packages/cli/src/config/loadUserConfig.ts @@ -1,3 +1,4 @@ +import process from 'node:process' import { pathToFileURL } from 'node:url' import { fs, hash, importFileDefault, path } from '@vuepress/utils' import { build } from 'esbuild' diff --git a/packages/utils/tests/console/withSpinner.spec.ts b/packages/utils/tests/console/withSpinner.spec.ts index cdae161ad8..588860e753 100644 --- a/packages/utils/tests/console/withSpinner.spec.ts +++ b/packages/utils/tests/console/withSpinner.spec.ts @@ -1,3 +1,4 @@ +import process from 'node:process' import { beforeEach, expect, it, vi } from 'vitest' import { withSpinner } from '../../src/index.js'