From 1a6f7a1e0d9dd6e1b04fca0ce45acbe0d53fa0ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Thu, 29 Dec 2022 12:23:33 +0100 Subject: [PATCH] perf: Prevent oclif from loading ts-node and typescript (#5047) (no-changelog) Prevent oclif from loading ts-node and typescript --- packages/cli/bin/n8n | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/cli/bin/n8n b/packages/cli/bin/n8n index db16c9fb3c..fc2cd4019f 100755 --- a/packages/cli/bin/n8n +++ b/packages/cli/bin/n8n @@ -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')