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 <vibe@mistral.ai>
This commit is contained in:
+6
-4
@@ -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/",
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user