mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41557 The `configFileDir` CLI argument is used to help to find paths to the 3rd party dependencies of the app. Since we only care about dependencies listed in the root `package.json`, we can use `node` resolution instead of having to construct paths manually. In that case `configFileDir` becomes redundant. Changelog: [iOS][Breaking] - Delete configFileDir CLI argument. Reviewed By: cipolleschi Differential Revision: D51303793 fbshipit-source-id: 46cb61197ddf51515af634c8fc6b85a8d218c51e
28 lines
668 B
JavaScript
28 lines
668 B
JavaScript
/**
|
|
* 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
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const executor = require('./codegen/generate-artifacts-executor.js');
|
|
const yargs = require('yargs');
|
|
|
|
const argv = yargs
|
|
.option('p', {
|
|
alias: 'path',
|
|
description: 'Path to React Native application',
|
|
})
|
|
.option('o', {
|
|
alias: 'outputPath',
|
|
description: 'Path where generated artifacts will be output to',
|
|
})
|
|
.usage('Usage: $0 -p [path to app]')
|
|
.demandOption(['p']).argv;
|
|
|
|
executor.execute(argv.path, argv.outputPath);
|