Skip to content

Commit 5302c89

Browse files
committed
fix expo cli on windows
1 parent 5740a33 commit 5302c89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bundle.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ async function runReactNativeBundleCommand(
5454
let cliPath = require.resolve('react-native/local-cli/cli.js', {
5555
paths: [process.cwd()],
5656
});
57+
let usingExpo = false;
5758
try {
5859
require.resolve('expo-router', {
5960
paths: [process.cwd()],
@@ -64,10 +65,9 @@ async function runReactNativeBundleCommand(
6465
cliPath = require.resolve('@expo/cli', {
6566
paths: [process.cwd()],
6667
});
68+
usingExpo = true;
6769
} catch (e) {}
68-
const bundleCommand = cliPath.includes('@expo/cli')
69-
? 'export:embed'
70-
: 'bundle';
70+
const bundleCommand = usingExpo ? 'export:embed' : 'bundle';
7171

7272
Array.prototype.push.apply(reactNativeBundleArgs, [
7373
cliPath,
@@ -204,7 +204,7 @@ async function compileHermesByteCode(
204204
}
205205

206206
const hermesCommand = `${hermesPath}/hermesc`;
207-
207+
208208
const args = [
209209
'-emit-binary',
210210
'-out',

0 commit comments

Comments
 (0)