Skip to content

chore(extension): auto-format generated JS during extension build#26

Merged
osolmaz merged 3 commits intomainfrom
fix/extension-build-autoformat-js
Feb 15, 2026
Merged

chore(extension): auto-format generated JS during extension build#26
osolmaz merged 3 commits intomainfrom
fix/extension-build-autoformat-js

Conversation

@janitrbob
Copy link
Copy Markdown
Contributor

@janitrbob janitrbob bot commented Feb 15, 2026

Summary

  • format generated extension JS files at the end of pnpm extension:build
  • keep generated outputs in the same style expected by repo checks
  • reduce local merge/pull conflicts on generated files after running build

What Changed

  • extension/scripts/build.mjs
    • added Prettier API pass over generated output files after esbuild completes
    • kept runtime asset staging behavior unchanged
    • updated missing-runtime hint to pnpm wording

Why

Running only build could leave generated files in a style that differs from the repository's formatting checks. This made pull/rebase more likely to hit avoidable generated-file conflicts.

With this change, pnpm extension:build produces pull-friendly generated outputs by default.

Validation

  • pnpm extension:build
  • pnpm run format:check

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 15, 2026

Deploying janitr with  Cloudflare Pages  Cloudflare Pages

Latest commit: 243812f
Status: ✅  Deploy successful!
Preview URL: https://8802438e.janitr.pages.dev
Branch Preview URL: https://fix-extension-build-autoform.janitr.pages.dev

View logs

@osolmaz osolmaz merged commit 4cf99a0 into main Feb 15, 2026
3 checks passed
@osolmaz osolmaz deleted the fix/extension-build-autoformat-js branch February 15, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants