🐛 Fix(custom): fix shell-path usage for macos

This commit is contained in:
Kuingsmile
2025-08-14 10:10:48 +08:00
parent 68cf0bc91c
commit 8102246e16
4 changed files with 15 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
import { shellPath } from 'shell-path'
import { shellPathSync } from 'shell-path'
export default function fixPath () {
if (process.platform === 'win32') {
@@ -6,5 +6,5 @@ export default function fixPath () {
}
process.env.PATH =
shellPath.sync() || ['./node_modules/.bin', '/.nodebrew/current/bin', '/usr/local/bin', process.env.PATH].join(':')
shellPathSync() || ['./node_modules/.bin', '/.nodebrew/current/bin', '/usr/local/bin', process.env.PATH].join(':')
}