/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v16.12.0
packages/react-devtools/bin.js
25 строк
636 B
Brian Vaughn
Added FB copyright header
27 авг 2019, 20:54
27 авг 2019, 20:54
8e1434e
Код
Авторство
О чём код?
#!/usr/bin/env node /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ const electron = require('electron'); const spawn = require('cross-spawn'); const argv = process.argv.slice(2); const pkg = require('./package.json'); const updateNotifier = require('update-notifier'); // notify if there's an update updateNotifier({pkg}).notify({defer: false}); const result = spawn.sync(electron, [require.resolve('./app')].concat(argv), { stdio: 'ignore', }); process.exit(result.status);