Skip to content

Commit a7a0db2

Browse files
committed
refactor(bootstrap): use which from socket-lib instead of whichBin
Use the new which() wrapper from socket-lib 2.3.0 instead of whichBin for cleaner API.
1 parent 4ede345 commit a7a0db2

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

packages/bootstrap/dist/bootstrap-npm.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/bootstrap/dist/bootstrap-smol.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/bootstrap/src/shared/bootstrap-shared.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { existsSync, mkdirSync } from 'node:fs'
77
import { homedir } from 'node:os'
88
import path from 'node:path'
99

10-
import { whichBin } from '@socketsecurity/lib/bin'
10+
import { which } from '@socketsecurity/lib/bin'
1111
import { dlxPackage } from '@socketsecurity/lib/dlx-package'
1212
import { logger } from '@socketsecurity/lib/logger'
1313
import { spawn } from '@socketsecurity/lib/spawn'
@@ -66,7 +66,7 @@ export function hasModernNode() {
6666
*/
6767
export async function detectSystemNode() {
6868
try {
69-
const nodePath = await whichBin('node', { nothrow: true })
69+
const nodePath = await which('node', { nothrow: true })
7070
return nodePath || null
7171
} catch {
7272
return null

0 commit comments

Comments
 (0)