2015-03-04 12:16:35 -04:00
|
|
|
#!/usr/bin/env node
|
2018-08-20 17:00:19 +02:00
|
|
|
|
2020-10-02 23:56:32 +01:00
|
|
|
// tslint:disable:no-var-requires
|
|
|
|
|
2018-08-20 17:00:19 +02: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 15:08:24 +01:00
|
|
|
// Disable oclif registering ts-node
|
|
|
|
process.env.OCLIF_TS_NODE = 0;
|
|
|
|
|
2019-01-11 16:34:29 +01:00
|
|
|
// Use fast-boot to cache require lookups, speeding up startup
|
|
|
|
require('fast-boot2').start({
|
2020-06-24 15:20:20 +01:00
|
|
|
cacheScope: __dirname + '/..',
|
2020-10-02 23:56:32 +01:00
|
|
|
cacheFile: __dirname + '/.fast-boot.json',
|
2020-06-01 13:29:28 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
// Set the desired es version for downstream modules that support it
|
|
|
|
require('@balena/es-version').set('es2018');
|
|
|
|
|
2019-04-02 12:26:21 +01:00
|
|
|
// Run the CLI
|
|
|
|
require('../build/app').run();
|