update with doc on new hooks added

Signed-off-by: Cory Steers <cory.steers.gmu9@statefarm.com>
This commit is contained in:
Cory Steers
2025-05-30 10:47:15 -05:00
parent 797688a944
commit 95955c21f2
+9
View File
@@ -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.