fix(cli): 🐛 Fix incorrect path after build

This commit is contained in:
Jesse Wierzbinski 2024-08-27 01:52:29 +02:00
parent 0da6d508f3
commit 60ca66395c
No known key found for this signature in database

View file

@ -35,12 +35,9 @@ export default class Start extends BaseCommand<typeof Start> {
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");
}
}