mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 22:44:28 +00:00
fix(cli): resolve platform binary path resolution under nested node_modules
This commit is contained in:
@@ -223,7 +223,7 @@ if (platform === 'darwin' && arch === 'arm64') {
|
|||||||
|
|
||||||
const pathsToTry = [
|
const pathsToTry = [
|
||||||
join(__dirname, '..', '..', '..', pkgName, 'bin', binaryName), // Flat node_modules
|
join(__dirname, '..', '..', '..', pkgName, 'bin', binaryName), // Flat node_modules
|
||||||
join(__dirname, '..', '..', 'node_modules', pkgName, 'bin', binaryName), // Nested node_modules
|
join(__dirname, '..', 'node_modules', pkgName, 'bin', binaryName), // Nested node_modules
|
||||||
]
|
]
|
||||||
|
|
||||||
let binaryPath = ''
|
let binaryPath = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user