mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[LOCAL] fix e2e local testing script post metro-config
This commit is contained in:
@@ -97,11 +97,9 @@ function isPackagerRunning(
|
||||
}
|
||||
|
||||
// this is a very limited implementation of how this should work
|
||||
// literally, this is macos only
|
||||
// a more robust implementation can be found here:
|
||||
// https://github.com/react-native-community/cli/blob/7c003f2b1d9d80ec5c167614ba533a004272c685/packages/cli-platform-android/src/commands/runAndroid/index.ts#L195
|
||||
function launchPackagerInSeparateWindow() {
|
||||
exec("open -a 'Terminal' ./packages/react-native/scripts/packager.sh");
|
||||
function launchPackagerInSeparateWindow(folderPath) {
|
||||
const command = `tell application "Terminal" to do script "cd ${folderPath} && yarn start"`;
|
||||
exec(`osascript -e '${command}'`);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user