Fix dotslash issue in OD (#53842)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/53842

Changelog: [Internal]
There is a conflict between dotslash in node_modules and in OD it does not invoke buck2

Reviewed By: javache

Differential Revision: D82724326

fbshipit-source-id: c90cab58818e0245f8763b729c7e5432735eb05e
This commit is contained in:
Andrew Datsenko
2025-09-18 07:39:22 -07:00
committed by Facebook GitHub Bot
parent e6390703e7
commit e97ef8f1fb
+2 -2
View File
@@ -146,7 +146,7 @@ export function runCommand(
encoding: 'utf8',
env: {
...process.env,
PATH: `/usr/local/bin:${process.env.PATH ?? ''}`,
PATH: `/usr/local/bin:/usr/bin:${process.env.PATH ?? ''}`,
},
},
);
@@ -186,7 +186,7 @@ export function runCommandSync(
encoding: 'utf8',
env: {
...process.env,
PATH: `/usr/local/bin:${process.env.PATH ?? ''}`,
PATH: `/usr/local/bin:/usr/bin:${process.env.PATH ?? ''}`,
},
});