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/50317 `rncore`, `FBReactNativeSpec` and `FBReactNativeComponentSpec` contain the same symbols, which leads to conflicts when we try to merge them into a single shared library. Cleanup the duplication and standardize on `FBReactNativeSpec` everywhere. I've left the Android OSS targets names as is, to avoid breaking deps. This aligns react-native's package.json with the codegen tooling supported across iOS and Android, which is a single target for all all type-derived codegen. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D55037569 fbshipit-source-id: dbf3c0a427c9d0df96e439b04e5b123cd1069c51
25 lines
566 B
JavaScript
25 lines
566 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.
|
|
*
|
|
* @flow
|
|
* @format
|
|
*/
|
|
|
|
const {
|
|
generateFBReactNativeSpecIOS,
|
|
} = require('./codegen/generate-artifacts-executor/generateFBReactNativeSpecIOS');
|
|
const fs = require('fs');
|
|
|
|
function main() {
|
|
console.info('[Prepack] Copying README.md');
|
|
fs.copyFileSync('../../README.md', './README.md');
|
|
generateFBReactNativeSpecIOS('.');
|
|
}
|
|
|
|
if (require.main === module) {
|
|
main();
|
|
}
|