2015-03-04 16:16:35 +00:00
|
|
|
#!/usr/bin/env node
|
2018-08-20 15:00:19 +00:00
|
|
|
|
|
|
|
// We boost the threadpool size as ext2fs can deadlock with some
|
|
|
|
// operations otherwise, if the pool runs out.
|
|
|
|
process.env.UV_THREADPOOL_SIZE = '64';
|
|
|
|
|
2020-05-04 14:08:24 +00:00
|
|
|
// Disable oclif registering ts-node
|
|
|
|
process.env.OCLIF_TS_NODE = 0;
|
|
|
|
|
2021-05-22 00:44:45 +00:00
|
|
|
async function run() {
|
|
|
|
// Use fast-boot to cache require lookups, speeding up startup
|
|
|
|
await require('../build/fast-boot').start();
|
2020-06-01 12:29:28 +00:00
|
|
|
|
2021-05-22 00:44:45 +00:00
|
|
|
// Set the desired es version for downstream modules that support it
|
|
|
|
require('@balena/es-version').set('es2018');
|
2020-06-01 12:29:28 +00:00
|
|
|
|
2021-05-22 00:44:45 +00:00
|
|
|
// Run the CLI
|
2023-10-05 10:52:10 +00:00
|
|
|
await require('../build/app').run(undefined, { dir: __dirname });
|
2021-05-22 00:44:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
run();
|