update with doc on new hooks added
Signed-off-by: Cory Steers <cory.steers.gmu9@statefarm.com>
This commit is contained in:
@@ -82,3 +82,12 @@ specific Backstage repository. As such, when publishing packages, all
|
||||
`backstage:^` versions should be removed from the package.json and replaced with
|
||||
the appropriate npm version ranges. This is handled by the
|
||||
`beforeWorkspacePacking` hook.
|
||||
|
||||
### `afterWorkspaceDependencyAddition` hook
|
||||
|
||||
\_Replaces npm version ranges with `backstage:^` ranges for `@backstage/*` dependencies added after
|
||||
the plugin has converted existing dependencies to `backstage:^` range
|
||||
|
||||
### `afterWorkspaceDependencyReplacement` hook
|
||||
|
||||
\_warns user with console message when running `yarn add` for a `@backstage/*` scoped dependency that is already a dependency in the target package. Doing so will remove the `backstage:^` scope and replace it with the actual npm version range, which may not be desired.
|
||||
|
||||
Reference in New Issue
Block a user