mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
2974c203b5
Change-type: patch
23 lines
612 B
JavaScript
Executable File
23 lines
612 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
// tslint:disable:no-var-requires
|
|
|
|
// We boost the threadpool size as ext2fs can deadlock with some
|
|
// operations otherwise, if the pool runs out.
|
|
process.env.UV_THREADPOOL_SIZE = '64';
|
|
|
|
// Disable oclif registering ts-node
|
|
process.env.OCLIF_TS_NODE = 0;
|
|
|
|
// Use fast-boot to cache require lookups, speeding up startup
|
|
require('fast-boot2').start({
|
|
cacheScope: __dirname + '/..',
|
|
cacheFile: __dirname + '/.fast-boot.json',
|
|
});
|
|
|
|
// Set the desired es version for downstream modules that support it
|
|
require('@balena/es-version').set('es2018');
|
|
|
|
// Run the CLI
|
|
require('../build/app').run();
|