Skip to content

Commit 3e1d9d6

Browse files
author
Ritika Mishra
committed
chore(pwa): add logging to manifest generator for CI diagnostics
1 parent 00ac3ba commit 3e1d9d6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/generateManifest.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ const manifest = {
3333

3434
// Generate `manifest.json` in the `public/` directory
3535
const outputPath = path.join(__dirname, "../public/manifest.json");
36-
fs.writeFileSync(outputPath, JSON.stringify(manifest, null, 2));
36+
try {
37+
console.log('[generateManifest] basePath=', basePath);
38+
fs.writeFileSync(outputPath, JSON.stringify(manifest, null, 2));
39+
console.log('[generateManifest] wrote manifest to', outputPath);
40+
} catch (err) {
41+
console.error('[generateManifest] ERROR writing manifest:', err && err.message ? err.message : err);
42+
process.exitCode = 1;
43+
}
3744

3845

0 commit comments

Comments
 (0)