mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-08-10 07:53:41 +08:00
🐛 Fix(custom): fix shell-path usage for macos
This commit is contained in:
@@ -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(':')
|
||||
}
|
||||
|
||||
4
src/universal/types/globals.d.ts
vendored
4
src/universal/types/globals.d.ts
vendored
@@ -4,7 +4,5 @@ declare module 'ssh2-no-cpu-features' {
|
||||
}
|
||||
|
||||
declare module 'shell-path' {
|
||||
export const shellPath: {
|
||||
sync: () => string
|
||||
}
|
||||
export const shellPathSync: () => string | null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user