Skip to content

fix: Automate worker + wasm resource detection#55

Merged
GordonSmith merged 1 commit intobytecodealliance:mainfrom
GordonSmith:TECH_DEBT_CLEANUP
Jun 15, 2025
Merged

fix: Automate worker + wasm resource detection#55
GordonSmith merged 1 commit intobytecodealliance:mainfrom
GordonSmith:TECH_DEBT_CLEANUP

Conversation

@GordonSmith
Copy link
Copy Markdown
Collaborator

Signed-off-by Gordon SmithGordonJSmith@gmail.com

@GordonSmith GordonSmith requested a review from Copilot June 15, 2025 14:10
Copy link
Copy Markdown
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 removes the legacy manual resource copy test and streamlines dependency declarations in package.json to support automated detection of worker and WASM resources.

  • Delete old build-resources.test.ts that manually checked WASM files.
  • Remove explicit @bytecodealliance/componentize-js dependency from package.json.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/build-resources.test.ts Remove deprecated manual WASM/worker copy tests
package.json Drop hardcoded componentize-js dependency entry
Comments suppressed due to low confidence (2)

tests/build-resources.test.ts:1

  • Removing this entire test file eliminates verification for resource copying. Consider adding new tests to validate the automated detection logic for both worker and WASM resources.
/**

package.json:47

  • Dropping the componentize-js dependency may break builds or runtime imports if any code still relies on it. Ensure all references to this package in the codebase are removed or handled by the new detection mechanism.
"@bytecodealliance/componentize-js": "0.18.2",

Signed-off-by Gordon Smith<GordonJSmith@gmail.com>
@GordonSmith GordonSmith enabled auto-merge (rebase) June 15, 2025 14:45
@GordonSmith GordonSmith disabled auto-merge June 15, 2025 14:45
@GordonSmith GordonSmith merged commit 20dda9c into bytecodealliance:main Jun 15, 2025
2 checks passed
@GordonSmith GordonSmith deleted the TECH_DEBT_CLEANUP branch June 15, 2025 14:45
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This change has been included in wit-idl-v0.3.6 🎉

The release is available on:

Your release-please bot 🚀🙏

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