mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(cli): 🐛 Fix incorrect path after build
This commit is contained in:
parent
0da6d508f3
commit
60ca66395c
|
|
@ -35,12 +35,9 @@ export default class Start extends BaseCommand<typeof Start> {
|
||||||
|
|
||||||
const numCpus = flags["all-threads"] ? os.cpus().length : flags.threads;
|
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.NUM_CPUS = String(numCpus);
|
||||||
process.env.SILENT = flags.silent ? "true" : "false";
|
process.env.SILENT = flags.silent ? "true" : "false";
|
||||||
|
|
||||||
await import(resolved);
|
await import("~/index");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue