-
Notifications
You must be signed in to change notification settings - Fork 4
rework dev scripts #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
rework dev scripts #196
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR replaces package.json shell-based scripts with Bun-powered JavaScript scripts for build, check, release, and version management, and introduces browser-specific version files to support self-hosted updates.
- Adds scripts to centralize build, linting, manifest mutation, version bumping, and tagging
- Introduces Chromium and Firefox update manifests and documentation for self-hosted updates
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| versions/firefox_versions.json | Adds Firefox update manifest listing historical versions and update links for self-hosted updates. |
| versions/chromium_version.xml | Adds Chromium Omaha update XML pointing to the latest CRX for self-hosted updates. |
| versions/README.md | Documents how to set update_url for Chromium and Firefox and notes automation via scripts. |
| scripts/tag-and-commit.js | New tagging helper that commits and tags the current version. |
| scripts/provider.js | Centralizes common paths, IDs, and JSON reading with preserved indentation. |
| scripts/edit-manifest.js | Adds helpers to toggle manifest for Firefox/Chromium and copy/remove background script. |
| scripts/check.js | Adds check pipeline (Biome + web-ext lint) with cleanup on failure. |
| scripts/bumper.js | Interactive version bumper; syncs package.json and manifest.json and updates version manifests. |
| scripts/build.js | New build pipeline that compiles assets, runs checks, and builds Firefox/Chromium packages. |
| package.json | Simplifies scripts to call the new JS helpers and updates dev dependencies accordingly. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Added the @types/semver package to devDependencies in package.json to provide TypeScript type definitions for semver.
Refactored GitHub Actions workflows for consistency, using 'bun ci' instead of 'bun install', and added workflow_call to check.yml for reuse. The publish workflow now runs checks before publishing. The check.js script now skips Biome checks outside CI environments for efficiency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 14 out of 15 changed files in this pull request and generated 16 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d18eda3 to
18d45f9
Compare
|



versions/chromium_version.xmlandversions/firefox_versions.json