/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v0.77.3
packages/react-native/scripts/prepack.js
27 строк
628 B
Riccardo Cipolleschi
Generate RN specific Files in RN (#47458)
07 ноя 2024, 15:08
07 ноя 2024, 15:08
ace690a
Код
Авторство
О чём код?
/** * 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 * @oncall react_native */ const { generateFBReactNativeSpecIOS, generateRNCoreComponentsIOS, } = require('./codegen/generate-artifacts-executor'); const fs = require('fs'); function main() { console.info('[Prepack] Copying README.md'); fs.copyFileSync('../../README.md', './README.md'); generateRNCoreComponentsIOS('.'); generateFBReactNativeSpecIOS('.'); } if (require.main === module) { main(); }