main
js 23 lines 528 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 'use strict';
9
10 require('@babel/register')({
11 babelrc: false,
12 configFile: false,
13 extensions: ['.js'],
14 only: [__dirname],
15 plugins: ['@babel/plugin-transform-flow-strip-types'],
16 });
17
18 require('./run.flow')
19 .main()
20 .catch(error => {
21 process.stderr.write(`${error.stack || error.message}\n`);
22 process.exitCode = 1;
23 });