mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Capturing the correct attribution in the licenses as well as adding some documentation. I think the code will have changed significantly enough across the files that once we change to flow, we can drop the attribution in the files but leave the mention in the README. Changelog: [Internal] bypass-github-export-checks Reviewed By: huntie Differential Revision: D55752899 fbshipit-source-id: b436d745d5ad439661d2af840b2cc8df4bff0038
33 lines
786 B
TypeScript
33 lines
786 B
TypeScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @oncall react_native
|
|
*/
|
|
|
|
import loadConfig from '@react-native-community/cli-config';
|
|
|
|
import {program} from 'commander';
|
|
import info from './info';
|
|
import {CliOptions} from './types';
|
|
|
|
const {version} = require('../package.json');
|
|
|
|
program
|
|
.name('react-native-info')
|
|
.description('Get relevant version info about OS, toolchain and libraries')
|
|
.version(version)
|
|
.option('--json', 'Output in JSON format')
|
|
.parse(process.argv);
|
|
|
|
async function main() {
|
|
const config = loadConfig();
|
|
const options: CliOptions = program.opts();
|
|
await info(options, config);
|
|
}
|
|
|
|
main();
|