@diia-inhouse/oxc-config 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -450,6 +450,7 @@ export const manifestRules = {
|
|
|
450
450
|
isPrivate(data)
|
|
451
451
|
? []
|
|
452
452
|
: Object.keys(data.peerDependencies ?? {})
|
|
453
|
+
.filter((name) => data.peerDependenciesMeta?.[name]?.optional !== true)
|
|
453
454
|
.filter((name) => !(name in (data.devDependencies ?? {})) && !(name in (data.dependencies ?? {})))
|
|
454
455
|
.map((name) => ({ messageId: 'missing', data: { name } })),
|
|
455
456
|
},
|
|
@@ -450,6 +450,7 @@ export const manifestRules = {
|
|
|
450
450
|
isPrivate(data)
|
|
451
451
|
? []
|
|
452
452
|
: Object.keys(data.peerDependencies ?? {})
|
|
453
|
+
.filter((name) => data.peerDependenciesMeta?.[name]?.optional !== true)
|
|
453
454
|
.filter((name) => !(name in (data.devDependencies ?? {})) && !(name in (data.dependencies ?? {})))
|
|
454
455
|
.map((name) => ({ messageId: 'missing', data: { name } })),
|
|
455
456
|
},
|
package/package.json
CHANGED