Skip to content

feat: add artifacts directory for compiled binaries#274

Merged
jaypatrick merged 1 commit intomainfrom
build-artifacts-directory
Feb 9, 2026
Merged

feat: add artifacts directory for compiled binaries#274
jaypatrick merged 1 commit intomainfrom
build-artifacts-directory

Conversation

@jaypatrick
Copy link
Owner

Changes

  • Create artifacts/ directory for deno compile output
  • Update build task to output to artifacts/adblock-compiler
  • Add artifacts/ to .gitignore
  • Bump version to 0.11.7

This improves the build process by organizing compiled binaries in a dedicated directory that is properly ignored by git.

Co-Authored-By: Warp agent@warp.dev

- Create artifacts/ directory for deno compile output
- Update build task to output to artifacts/adblock-compiler
- Add artifacts/ to .gitignore
- Bump version to 0.11.7

Co-Authored-By: Warp <agent@warp.dev>
Copilot AI review requested due to automatic review settings February 9, 2026 02:16
@cloudflare-workers-and-pages
Copy link

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

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
adblock-compiler a1f6119 Feb 09 2026, 02:21 AM

@jaypatrick jaypatrick self-assigned this Feb 9, 2026
@jaypatrick jaypatrick added bug Something isn't working enhancement New feature or request labels Feb 9, 2026
@jaypatrick jaypatrick merged commit 1dffe01 into main Feb 9, 2026
16 checks passed
@jaypatrick jaypatrick deleted the build-artifacts-directory branch February 9, 2026 02:17
Copy link
Contributor

Copilot AI left a 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 reorganizes local deno compile build output by moving the compiled CLI binary into a dedicated artifacts/ directory and bumps the project version.

Changes:

  • Bump deno.json version to 0.11.7.
  • Update deno task build to output the compiled binary to artifacts/adblock-compiler.
  • Ignore artifacts/ (and a couple of legacy binary names) in .gitignore.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
deno.json Version bump and change build output path to artifacts/
.gitignore Ignore the new artifacts/ output directory (and additional binary names)

{
"name": "@jk-com/adblock-compiler",
"version": "0.11.6",
"version": "0.11.7",
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version bump here leaves the repo in an inconsistent state: package.json/package-lock.json are still at 0.11.6, and src/version.ts exports VERSION = 0.11.4 (used by PluginSystem as compilerVersion). Please update all version sources together (or adjust the versioning approach) so the reported library/compiler version is consistent across CLI, plugin API, and published metadata.

Suggested change
"version": "0.11.7",
"version": "0.11.4",

Copilot uses AI. Check for mistakes.
"dev": "deno run -A --watch --allow-read --allow-write --allow-net src/cli.ts",
"compile": "deno run --allow-read --allow-write --allow-net src/cli.ts",
"build": "deno compile --allow-read --allow-write --allow-net --output=adblock-compiler src/cli.ts",
"build": "deno compile --allow-read --allow-write --allow-net --output=artifacts/adblock-compiler src/cli.ts",
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deno task build now outputs to artifacts/adblock-compiler, but the task doesn’t ensure the artifacts/ directory exists. On a clean checkout this can cause deno compile to fail when the parent directory is missing. Consider creating the directory as part of the task (in a cross-platform way) before invoking deno compile.

Suggested change
"build": "deno compile --allow-read --allow-write --allow-net --output=artifacts/adblock-compiler src/cli.ts",
"build": "deno run --allow-write -e \"await Deno.mkdir('artifacts', { recursive: true });\" && deno compile --allow-read --allow-write --allow-net --output=artifacts/adblock-compiler src/cli.ts",

Copilot uses AI. Check for mistakes.
@jaypatrick jaypatrick restored the build-artifacts-directory branch February 9, 2026 02:21
@jaypatrick jaypatrick deleted the build-artifacts-directory branch February 9, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants