Skip to content

Commit

Permalink
Fix init for out-of-tree platforms by passing name to CLI (#41723)
Browse files Browse the repository at this point in the history
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: #41530

Depends on #41722

## Changelog:

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

Pull Request resolved: #41723

Test Plan: CI green

Reviewed By: christophpurrer

Differential Revision: D51979329

Pulled By: dmytrorykun

fbshipit-source-id: 451f70dc42ae0667bc65cba2e77898c9eec8d9ec
  • Loading branch information
thymikee authored and facebook-github-bot committed Dec 11, 2023
1 parent 6a52025 commit 547643e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-native/cli.js
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 547643e

Please sign in to comment.