From 882b6ec9cc8512f0edc920629cea8b98f04ac3e3 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Mon, 25 May 2026 15:16:42 +0200 Subject: [PATCH] Fix package script to check for styles/ instead of dist/ - Update build output check to look for styles/scrying-pool.css - Change INCLUDE list from dist/ to styles/ - Provide better error message with expected file path Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- scripts/package.mjs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/package.mjs b/scripts/package.mjs index e579061..43121b2 100644 --- a/scripts/package.mjs +++ b/scripts/package.mjs @@ -41,9 +41,11 @@ moduleJson.version = version; writeFileSync(moduleJsonPath, JSON.stringify(moduleJson, null, 2) + "\n", "utf8"); console.log(`[ScryingPool] module.json version set to ${version}`); -// Ensure dist/ exists (build should have run first) -if (!existsSync(resolve(ROOT, "dist"))) { - console.error("[ScryingPool] dist/ not found — run npm run build first"); +// Ensure build output exists (styles/scrying-pool.css is created by npm run build) +const buildOutputPath = resolve(ROOT, "styles/scrying-pool.css"); +if (!existsSync(buildOutputPath)) { + console.error("[ScryingPool] Build output not found — run npm run build first"); + console.error(`Expected file: ${buildOutputPath}`); process.exit(1); } @@ -52,8 +54,8 @@ const INCLUDE = [ "module.json", "module.js", "lang/", + "styles/", "templates/", - "dist/", "src/", ];