/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
scripts/tasks/flow-ci.js
32 строки
834 B
Lauren Tan
[ci] Cleanup
22 июн 2024, 19:37
22 июн 2024, 19:37
27e9476
Код
Авторство
О чём код?
/** * 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. */ 'use strict'; process.on('unhandledRejection', err => { throw err; }); const runFlow = require('../flow/runFlow'); const inlinedHostConfigs = require('../shared/inlinedHostConfigs'); async function check(shortName) { if (shortName == null) { throw new Error('Expected an inlinedHostConfig shortName'); } const rendererInfo = inlinedHostConfigs.find( config => config.shortName === shortName ); if (rendererInfo == null) { throw new Error(`Could not find inlinedHostConfig for ${shortName}`); } if (rendererInfo.isFlowTyped) { await runFlow(rendererInfo.shortName, ['check']); } } check(process.argv[2]);