yarn-plugin: extra values from dependency object after switch from lodash#some to native some
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
@@ -76,7 +76,10 @@ export const beforeWorkspacePacking = async (
|
||||
|
||||
if (
|
||||
['dependencies', 'devDependencies', 'optionalDependencies'].some(
|
||||
dependencyType => rawManifest[dependencyType]?.some(hasBackstageVersion),
|
||||
dependencyType =>
|
||||
Object.values<string>(rawManifest[dependencyType] ?? {}).some(
|
||||
hasBackstageVersion,
|
||||
),
|
||||
)
|
||||
) {
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user