Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi authored Nov 12, 2024
1 parent 3e39786 commit 903cf73
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/react-native/local-cli/generator-macos/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,21 +122,13 @@ function installDependencies(options) {
childProcess.execSync(isYarn ? 'yarn' : 'npm i', execOptions);
}

/**
* @param {{ verbose?: boolean }=} options
*/
function installPods(options) {
const cwd = path.join(process.cwd(), macOSDir);
const quietFlag = options && options.verbose ? '' : '--quiet';
childProcess.execSync(`npx ${quietFlag} pod-install --non-interactive ${quietFlag}`, { stdio: 'inherit', cwd });
}

/**
* @param {string} newProjectName
*/
function printFinishMessage(newProjectName) {
console.log(`
${chalk.blue(`Run instructions for ${chalk.bold('macOS')}`)}:
• pod install --project-directory=macos
• npx react-native run-macos
${chalk.dim('- or -')}
• Open ${xcworkspacePath(newProjectName)} in Xcode or run "xed -b ${macOSDir}"
Expand All @@ -148,6 +140,5 @@ function printFinishMessage(newProjectName) {
module.exports = {
copyProjectTemplateAndReplace,
installDependencies,
installPods,
printFinishMessage,
};

0 comments on commit 903cf73

Please sign in to comment.