Skip to content

Help debugging tsc paths resolution #7593

Closed Answered by kwonoj
sbalay asked this question in Q&A
Discussion options

You must be logged in to vote

It's due to bindings are using pinned, published version from registry instead of path-referencing to the repo's workspace to avoid unexpected version conflict when we publish.

To make things work with local changes, you need to apply patch to those dependencies to the local path instead. CI have some workfing reference example

- name: Patch
shell: bash
run: |
echo '[patch.crates-io]' >> bindings/Cargo.toml
./scripts/cargo/patch-section.sh >> bindings/Cargo.toml
cd bindings && cargo update -p swc_core
could be resued for the most of cases.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kwonoj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants