Skip to content

Conversation

@Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Oct 1, 2024

Description

1. Remove preinstall

This PR removes the preinstall script from package.json in wasm package to prevent the unnecessary execution of the Rust build process (yarn rust:build) during package installation. Since the package is already built and published to npm, running the build step during installation is redundant and causes issues for users installing the package as a dependency.

Screenshot 2024-10-01 at 19 07 20

2. Fix postbuild script

Additionally, this PR also fixed & enhanced the copyWasmBinary.mjs postbuild script, where it removes the module import from the generated code since we encoded the entire binary. If no replacements were made, it will throw an error so that we know we probably need to fix this script.

image

@Ansonhkg Ansonhkg added the 🐞 Bug Fix Something isn't working label Oct 1, 2024
@Ansonhkg Ansonhkg self-assigned this Oct 1, 2024
@Ansonhkg Ansonhkg requested a review from joshLong145 as a code owner October 1, 2024 18:11
@Ansonhkg Ansonhkg marked this pull request as draft October 1, 2024 18:36
@Ansonhkg Ansonhkg added the 🚧 In Progress - Don’t Merge pull request is still under active development and should not be merged into the main branch. It sig label Oct 1, 2024
@Ansonhkg Ansonhkg marked this pull request as ready for review October 2, 2024 15:19
@Ansonhkg Ansonhkg added v7 | Datil and removed 🚧 In Progress - Don’t Merge pull request is still under active development and should not be merged into the main branch. It sig labels Oct 2, 2024
Copy link

@joshLong145 joshLong145 left a comment

Choose a reason for hiding this comment

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

Nice :)

@Ansonhkg Ansonhkg merged commit 0d5fa42 into staging/v7 Oct 2, 2024
3 checks passed
@Ansonhkg Ansonhkg deleted the feature/lit-3913-js-sdk-investigate-why-v7-alpha-isnt-installing branch October 2, 2024 19:11
@Ansonhkg Ansonhkg mentioned this pull request Oct 3, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 Bug Fix Something isn't working v7 | Datil

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants