From ac0ad635aac16dd3af5fd96625ce7e93513d9a3f Mon Sep 17 00:00:00 2001 From: Daniel Vu Date: Sun, 1 Oct 2023 15:57:22 -0400 Subject: [PATCH] Sets a better default --- contrib/sheet-pixie/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/sheet-pixie/index.ts b/contrib/sheet-pixie/index.ts index ba9239d1c500..e86f050b3558 100644 --- a/contrib/sheet-pixie/index.ts +++ b/contrib/sheet-pixie/index.ts @@ -41,7 +41,7 @@ async function onSheetChange(sheetDir: string) { const cssRes = await tryCss(Bun.file(`${sheetDir}/${cssPath}`), advanced); const { css, rawCss } = cssRes; - const distDir = `${process.env.DEST_DIR}/${sheetDir}/dist`; + const distDir = `${process.env.DEST_DIR || ''}/${sheetDir}/dist`; rmSync(distDir, { recursive: true, force: true }); mkdirSync(distDir, { recursive: true }); await Promise.all([