Skip to content

Commit

Permalink
fix(react-native): runMacOS.js depends on `@react-native-community/…
Browse files Browse the repository at this point in the history
…cli-tools` (#1993)
  • Loading branch information
tido64 authored Dec 6, 2023
1 parent e76c02f commit 164469a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/react-native/local-cli/runMacOS/runMacOS.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const findXcodeProject = require('./findXcodeProject');
const {
logger,
CLIError,
getDefaultUserTerminal,
} = require('@react-native-community/cli-tools');
const {logger, CLIError, getDefaultUserTerminal} = (() => {
const cli = require.resolve('@react-native-community/cli/package.json');
const options = {paths: [path.dirname(cli)]};
const tools = require.resolve('@react-native-community/cli-tools', options);
return require(tools);
})();

/**
* @param {string[]} _
Expand Down

0 comments on commit 164469a

Please sign in to comment.