build outside of dist (helps if your install is retarded)

This commit is contained in:
nin0 2025-04-22 04:37:50 -04:00
parent 911ffd9794
commit ec3db3b0f2
Signed by: nin0
SSH key fingerprint: SHA256:NOoDnFVvZNFvqfXCIhzr6oCTDImZAbTTuyAysZ8Ufk8

View file

@ -120,7 +120,7 @@ export async function initPluginInstall(_, link: string, source: string, owner:
async function build(): Promise<any> { async function build(): Promise<any> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const proc = exec("pnpm build", { const proc = exec("pnpm build", {
cwd: __dirname cwd: join(__dirname, "..")
}); });
proc.once("close", async () => { proc.once("close", async () => {
if (proc.exitCode !== 0) { if (proc.exitCode !== 0) {