From 60ca66395c30c31015001ca600d0a5c887d33c5e Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Tue, 27 Aug 2024 01:52:29 +0200 Subject: [PATCH] fix(cli): :bug: Fix incorrect path after build --- cli/commands/start.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cli/commands/start.ts b/cli/commands/start.ts index f16830e5..07de501a 100644 --- a/cli/commands/start.ts +++ b/cli/commands/start.ts @@ -35,12 +35,9 @@ export default class Start extends BaseCommand { const numCpus = flags["all-threads"] ? os.cpus().length : flags.threads; - // Resolves the path to the main module - const resolved = import.meta.resolve("../../index"); - process.env.NUM_CPUS = String(numCpus); process.env.SILENT = flags.silent ? "true" : "false"; - await import(resolved); + await import("~/index"); } }