Merge pull request #1804 from balena-io/disable-oclif-ts-node

Disable oclif's ts-node registering when running against built code
This commit is contained in:
Page- 2020-05-04 15:47:24 +01:00 committed by GitHub
commit d9b044c1b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,9 @@
// 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({
cacheFile: __dirname + '/.fast-boot.json'