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