Skip to content

fix(release): package Sharp native runtime - #2213

Merged
chubes4 merged 1 commit into
mainfrom
fix-2209-packaged-sharp-runtime
Aug 4, 2026
Merged

fix(release): package Sharp native runtime#2213
chubes4 merged 1 commit into
mainfrom
fix-2209-packaged-sharp-runtime

Conversation

@chubes4

@chubes4 chubes4 commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • materialize only the target platform's locked Sharp native packages into release artifacts
  • verify package URLs, versions, and SHA-512 integrity before extraction and reject unsupported targets early
  • preserve both the runtime-playground dependency and aggregate npm package ownership so packed CLI consumers remain runnable

Supported targets

  • Linux glibc: x64, arm64
  • macOS: x64, arm64
  • Windows: x64, arm64

Linux musl and other architectures remain outside the existing release target contract and fail explicitly.

Testing

  • npm ci
  • npm run build
  • npm run test:sharp-release-runtime (7 passed)
  • TMPDIR=/tmp npm run test:release-package-coverage
  • actual npm pack tarball installed globally; wp-codebox --version and commands passed
  • official WordPress ZIP and standalone CLI tarball execute with only Linux x64 Sharp packages
  • git diff --check

Closes #2209

@chubes4
chubes4 merged commit db8c35e into main Aug 4, 2026
4 checks passed
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.

fix(release): include Sharp native runtime in packaged CLI

1 participant