Manage the scope-name for components
$bit scope <sub-command>
set
Sets the scope for specified component/s. If no component is specified, sets the default scope of the workspace
$bit scope set <scope-name> [component-pattern]
rename
rename the scope name for all components with the specified 'current scope name'. if exported, create new components and delete the original ones
$bit scope rename <current-scope-name> <new-scope-name>
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--preserve | - | avoid renaming files and variables/classes according to the new scope name | boolean |
--refactor | -r | update the import statements in all dependent components to the new package name (i.e. with the new scope name) | boolean |
--deprecate | - | for exported components, instead of deleting the original components, deprecating them | boolean |
rename-owner
Renames the owner part of the scope-name for all components with the specified 'current owner name'
$bit scope rename-owner <current-owner-name> <new-owner-name>
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--refactor | -r | update the import statements in all dependent components to the new package name (that contains the new owner name) | boolean |
--ast | - | EXPERIMENTAL. use ast to transform files instead of regex | boolean |
fork
fork all components of the original-scope and refactor the source-code to use the new scope name
$bit scope fork <original-scope> [new-scope] [pattern]
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--ast | - | EXPERIMENTAL. use ast to transform files instead of regex | boolean |
--skip-dependency-installation | -x | do not install packages of the imported components | boolean |