Remove component from the workspace and install it instead as a regular npm package.
$bit eject <component-pattern>
$bit E <component-pattern>
Additional Notes
By default the component files will be removed from the workspace
Arguments
Argument | Description | Required |
---|---|---|
component-pattern | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/**, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. | ✅ |
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--force | -f | ignore local changes/versions. eject component/s even when they are staged or modified. Note: unexported tags/snaps will be lost | boolean |
--skip-dependency-installation | -x | do not auto-install dependencies | boolean |
--json | -j | print the results in JSON format | boolean |
--keep-files | - | keep the component files in the workspace intact | boolean |