Create links in the node_modules directory, to core aspects and to components in the workspace
$bit link [component-names...]
Arguments
Argument | Description | Required |
---|---|---|
component-names... | names or IDs of the components to link |
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--json | -j | return the output as JSON | boolean |
--verbose | - | verbose output | boolean |
--rewire | -r | Replace relative paths with module paths in code (e.g. "../foo" => "@bit/foo") | boolean |
--target | - | link to an external directory (similar to npm-link) so other projects could use these components | string |
--skip-fetching-objects | - | skip fetch missing objects from remotes before linking | boolean |
--peers | - | link peer dependencies of the components too | boolean |