/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
private/helloworld/scripts/metro.js
36 строк
917 B
Riccardo Cipolleschi
Fix path to react-native for Metro (#52877)
28 июл 2025, 20:32
28 июл 2025, 20:32
9d4f6cd
Код
Авторство
О чём код?
/** * 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 * @noflow */ const {startCommand} = require('@react-native/community-cli-plugin'); const {program} = require('commander'); const path = require('path'); program .description('Starts the React Native Metro bundler for internal testing app') .action(async options => { await startCommand.func( [], { platforms: { ios: {}, android: {}, }, root: path.join(__dirname, '../'), reactNativePath: path.join(__dirname, '../../../packages/react-native'), }, { experimentalDebugger: false, interactive: false, projectRoot: options.projectRoot, platforms: ['ios', 'android'], }, ); }) .parse();