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");
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/",
];