/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/scripts/hermes/bump-hermes-version.js
50 строк
1 KB
Tim Yung
RN: Flowify `packages/react-native-scripts` (#51671)
29 май 2025, 17:52
29 май 2025, 17:52
e7a9322
Код
Авторство
О чём код?
#!/usr/bin/env node /** * 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 strict-local * @format */ 'use strict'; const {setHermesTag} = require('./hermes-utils'); // $FlowFixMe[untyped-import] const inquirer = require('inquirer'); /** * This script walks a releaser through bumping the Hermes version for a release. * It needs be executed on a release branch. */ const {exit} = require('shelljs'); const yargs = require('yargs'); let argv = yargs.option('t', { alias: 'tag', describe: 'Hermes release tag to use for this React Native release, ex. hermes-2022-02-21-RNv0.68.0', required: true, }).argv; async function main() { // $FlowFixMe[prop-missing] const hermesTag = argv.tag; const {confirmHermesTag} = await inquirer.prompt({ type: 'confirm', name: 'confirmHermesTag', message: `Do you want to use the Hermes release tagged "${hermesTag}"?`, }); if (!confirmHermesTag) { console.log('Aborting.'); return; } setHermesTag(hermesTag); } void main().then(() => { exit(0); });