Skip to content

Commit

Permalink
Fix init for out-of-tree platforms by passing name to CLI (facebook#4…
Browse files Browse the repository at this point in the history
…1723)

Summary:
To unlock ~~certain OOT platform capabilities~~ seamless `init` integration for out-of-tree platforms with CLI, we need to pass the package name to it. This change landed on 0.73 branch already: facebook#41530

Depends on facebook#41722

## Changelog:

[INTERNAL] [ADDED] - Fix init for out-of-tree platforms by passing name to CLI

Pull Request resolved: facebook#41723

Test Plan: CI green

Reviewed By: christophpurrer

Differential Revision: D51979329

Pulled By: dmytrorykun

fbshipit-source-id: 451f70dc42ae0667bc65cba2e77898c9eec8d9ec
  • Loading branch information
thymikee authored and Othinn committed Jan 9, 2024
1 parent c1d2617 commit c1d3297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-native/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

'use strict';

const {version: currentVersion} = require('./package.json');
const {name, version: currentVersion} = require('./package.json');
const cli = require('@react-native-community/cli');
const chalk = require('chalk');
const {get} = require('https');
Expand Down Expand Up @@ -66,7 +66,7 @@ async function main() {
// Ignore errors, since it's a nice to have warning
}
}
return cli.run();
return cli.run(name);
}

if (require.main === module) {
Expand Down

0 comments on commit c1d3297

Please sign in to comment.