perf: Prevent oclif from loading ts-node and typescript (#5047) (no-changelog)

Prevent oclif from loading ts-node and typescript
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-12-29 12:23:33 +01:00 committed by GitHub
parent 2f40a7f98a
commit 1a6f7a1e0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,9 @@ if (![14, 16, 18].includes(nodeVersionMajor)) {
process.exit(1);
}
// Prevent oclif from loading ts-node and typescript
process.env.OCLIF_TS_NODE = '0';
require('source-map-support').install();
require('@oclif/command')