Skip to content

Commit b6ef182

Browse files
committed
refactor: add explicit process imports
1 parent 2d22dbf commit b6ef182

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+57
-0
lines changed

.config/vitest-plugins/require-transform.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import MagicString from 'magic-string'
1010
import type { Plugin } from 'vite'
1111

1212
import { getDistDir, srcToDistPath } from './transform-utils.mts'
13+
import process from 'node:process'
1314

1415
// Handle both ESM and CJS exports from @babel/traverse
1516
const traverse =

.config/vitest.config.isolated.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import path from 'node:path'
66
import { fileURLToPath } from 'node:url'
77

88
import { defineConfig } from 'vitest/config'
9+
import process from 'node:process'
910

1011
const __dirname = path.dirname(fileURLToPath(import.meta.url))
1112

.config/vitest.config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import path from 'node:path'
22
import { fileURLToPath } from 'node:url'
33

44
import { defineConfig } from 'vitest/config'
5+
import process from 'node:process'
56

67
const __dirname = path.dirname(fileURLToPath(import.meta.url))
78

.config/vitest.config.optimized.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { defineConfig } from 'vitest/config'
44

55
import { createImportTransformPlugin } from './vitest-plugins/import-transform.mts'
66
import { createRequireTransformPlugin } from './vitest-plugins/require-transform.mts'
7+
import process from 'node:process'
78

89
const __dirname = path.dirname(fileURLToPath(import.meta.url))
910
const projectRoot = path.resolve(__dirname, '..')

.config/vitest.setup.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'node:process'
12
/** @fileoverview Vitest setup file for coverage mode require() interception. */
23

34
// Check if coverage is enabled.

packages/npm/path-parse/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
const process = require('node:process')
34
const {
45
posix: { parse: PathPosixParse },
56
win32: { parse: PathWin32Parse },

registry/.config/esbuild.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { fileURLToPath } from 'node:url'
88
import fg from 'fast-glob'
99

1010
import { envAsBoolean } from '@socketsecurity/lib/env/helpers'
11+
import process from 'node:process'
1112

1213
const __dirname = path.dirname(fileURLToPath(import.meta.url))
1314
const rootPath = path.join(__dirname, '..')

registry/scripts/build-js.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55
import { existsSync, statSync } from 'node:fs'
66
import path from 'node:path'
7+
import process from 'node:process'
78
import { fileURLToPath } from 'node:url'
89

910
import { build, context } from 'esbuild'

registry/scripts/build.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
} from '../.config/esbuild.config.mjs'
2121
import { parseArgs } from '../../scripts/utils/parse-args.mjs'
2222
import { runSequence } from '../../scripts/utils/run-command.mjs'
23+
import process from 'node:process'
2324

2425
const logger = getDefaultLogger()
2526

registry/scripts/post-build-transform.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import path from 'node:path'
99
import { fileURLToPath } from 'node:url'
1010

1111
import { getDefaultLogger } from '@socketsecurity/lib/logger'
12+
import process from 'node:process'
1213

1314
const logger = getDefaultLogger()
1415

0 commit comments

Comments
 (0)