Skip to content

fix(runtime): resync image-metadata.mjs after #68 - #347

Merged
Fei-Away merged 1 commit into
mainfrom
fix/resync-image-metadata-after-68
Aug 8, 2026
Merged

fix(runtime): resync image-metadata.mjs after #68#347
Fei-Away merged 1 commit into
mainfrom
fix/resync-image-metadata-after-68

Conversation

@Fei-Away

@Fei-Away Fei-Away commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

#68 (merged) added readRawDimensions() directly to the generated macos/scripts/image-metadata.mjs without updating the canonical runtime/image-metadata.mjs source that tools/sync-runtime-assets.mjs generates it from. Result:

  • node tools/sync-runtime-assets.mjs --check fails on current main (out-of-date=macos/scripts/image-metadata.mjs), and macos/tests/run-tests.sh exits 1.
  • windows/scripts/image-metadata.mjs never picked up readRawDimensions at all — cross-platform drift.

Fix

Port the same readRawDimensions split into runtime/image-metadata.mjs (the actual source of truth) and regenerate both platform outputs via node tools/sync-runtime-assets.mjs.

Verification

  • node tools/sync-runtime-assets.mjs --check → exit 0 (clean)
  • NODE=$(which node) bash macos/tests/run-tests.sh → full suite passes (previously failed at the image-metadata drift check)

#68 added readRawDimensions() directly to the generated
macos/scripts/image-metadata.mjs without updating the canonical
runtime/image-metadata.mjs source, so tools/sync-runtime-assets.mjs
--check fails on main and windows/scripts/image-metadata.mjs never
picked up the new export at all. Port the same split to the source
and regenerate both platform outputs.
@Fei-Away
Fei-Away merged commit 7b896f9 into main Aug 8, 2026
3 of 4 checks passed
@Fei-Away Fei-Away mentioned this pull request Aug 8, 2026
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.

1 participant