Fix package script to check for styles/ instead of dist/
CI / ci (push) Successful in 56s
Release Creation / build (release) Failing after 1m26s

- 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 <vibe@mistral.ai>
This commit is contained in:
2026-05-25 15:16:42 +02:00
parent f977590675
commit 882b6ec9cc
+6 -4
View File
@@ -41,9 +41,11 @@ moduleJson.version = version;
writeFileSync(moduleJsonPath, JSON.stringify(moduleJson, null, 2) + "\n", "utf8"); writeFileSync(moduleJsonPath, JSON.stringify(moduleJson, null, 2) + "\n", "utf8");
console.log(`[ScryingPool] module.json version set to ${version}`); console.log(`[ScryingPool] module.json version set to ${version}`);
// Ensure dist/ exists (build should have run first) // Ensure build output exists (styles/scrying-pool.css is created by npm run build)
if (!existsSync(resolve(ROOT, "dist"))) { const buildOutputPath = resolve(ROOT, "styles/scrying-pool.css");
console.error("[ScryingPool] dist/ not found — run npm run build first"); if (!existsSync(buildOutputPath)) {
console.error("[ScryingPool] Build output not found — run npm run build first");
console.error(`Expected file: ${buildOutputPath}`);
process.exit(1); process.exit(1);
} }
@@ -52,8 +54,8 @@ const INCLUDE = [
"module.json", "module.json",
"module.js", "module.js",
"lang/", "lang/",
"styles/",
"templates/", "templates/",
"dist/",
"src/", "src/",
]; ];