Skip to content

Commit

Permalink
Pass package name to CLI's run method
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee committed Nov 30, 2023
1 parent 424ac63 commit afa0e62
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 afa0e62

Please sign in to comment.