Skip to content

See component changes in another local project without export #6105

Answered by benjgil
benjgil asked this question in FAQ
Discussion options

You must be logged in to vote

Bit has just the feature - though it is still in beta as there can be scenarios with peerDependencies that need linking that we're still working on ironing out. But for most use cases the following works well.

In the authoring workspace (i.e. where your component changes are happening), run
bit link --target <full_path_to_consuming_project_root_dir>.

This will create symlinks between the node_modules in the authoring workspace, which will be updated when you compile changes, and the node_modules folder in the consuming project.

Now your consuming app should contain the compiled component changes without needing to export.

NOTE: it's recommended to also run bit watch in the authoring works…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benjgil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
1 participant