Skip to content

Commit

Permalink
Adding updates to handle injecting some missing fields in package.json (
Browse files Browse the repository at this point in the history
#1371)

Hard coding the name the file should use to ensure it matches expectations
  • Loading branch information
travjenkins authored Feb 9, 2024
1 parent 88f45ef commit decc488
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/flow-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ jobs:
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Build flow-web
run: wasm-pack build --scope estuary crates/flow-web
run: wasm-pack build --scope estuary crates/flow-web --out-name flow_web

# Fix from: https://github.com/rustwasm/wasm-pack/issues/1039#issuecomment-1712491804
# We need to manually insert the main ref until this fix is published
# https://github.com/rustwasm/wasm-pack/pull/1061
- name: Manually update package.json
run: |
npm pkg set type='module' --prefix crates/flow-web/pkg
npm pkg set main='flow_web.js' --prefix crates/flow-web/pkg
- name: Publish flow-web
if: ${{ github.ref == 'refs/heads/master' }}
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/flow-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "flow-web"

# wasm-pack isn't yet fully compatible with workspace inheritance, so we can't use that for these fields
version = "0.3.0"
version = "0.4.0"
authors = ["Estuary developers <[email protected]>"]
edition = "2021"
license = "BSL"
Expand Down

0 comments on commit decc488

Please sign in to comment.