Skip to content
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

Fixing WASM-NPM packaging and publishing #835

Merged
merged 10 commits into from
Sep 26, 2024

Conversation

arboleya
Copy link
Member

The generated WASM/JS code changed in v0.57.0, and the regexes used to patch it stopped working.

This prevented dependent NPM packages, including the TS SDK and all apps using it, from building.

Error: Can't resolve 'fuel_asm_bg.wasm' in '/.../fuels-ts/node_modules/.pnpm/@[email protected]/node_modules/@fuels/vm-asm/dist/web'

This PR fixes those regexes and updates the essential tools used for packaging.

Before requesting review

  • I have reviewed the code myself

@arboleya arboleya added the bug Something isn't working label Sep 26, 2024
@arboleya arboleya self-assigned this Sep 26, 2024
@arboleya arboleya marked this pull request as ready for review September 26, 2024 12:03
@arboleya arboleya marked this pull request as draft September 26, 2024 12:18
@arboleya arboleya marked this pull request as ready for review September 26, 2024 13:09
@xgreenx xgreenx added this pull request to the merge queue Sep 26, 2024
Merged via the queue into master with commit dffc2b4 Sep 26, 2024
38 checks passed
@xgreenx xgreenx deleted the aa/fix/wasm-npm-packaging-and-publishing branch September 26, 2024 13:29
xgreenx pushed a commit that referenced this pull request Sep 26, 2024
* Upgrading turbo and pnpm

* DRY

* Adjusting regex to match any variable name; not only `input`

* Updating changelog

* Fixing pnpm version for workflow

* Adding tests to check if all output files have been patched successfully

* Fixing turbo pipeline

* Adjusting pnpm version

* Trying relative static paths

* Adding temporary log call

(cherry picked from commit dffc2b4)
xgreenx added a commit that referenced this pull request Sep 26, 2024
* Upgrading turbo and pnpm

* DRY

* Adjusting regex to match any variable name; not only `input`

* Updating changelog

* Fixing pnpm version for workflow

* Adding tests to check if all output files have been patched successfully

* Fixing turbo pipeline

* Adjusting pnpm version

* Trying relative static paths

* Adding temporary log call

(cherry picked from commit dffc2b4)

Co-authored-by: Anderson Arboleya <[email protected]>
@xgreenx xgreenx mentioned this pull request Sep 26, 2024
@xgreenx xgreenx mentioned this pull request Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants