Skip to content

Commit 0b5c70e

Browse files
committed
fix(conf): importers can have keys other then dependencies
commit_hash:67e03f3141acec0e9767fe74135d1afe760d84d2
1 parent 5c84ffa commit 0b5c70e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build/plugins/lib/nots/package_manager/pnpm/lockfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,15 @@ def get_importers(self):
269269
return {".": importer} if importer else {}
270270

271271
def validate_importers(self):
272+
validate_keys = ("dependencies", "devDependencies", "peerDependencies", "optionalDependencies")
272273
importers = self.get_importers()
273274
pkg = importers.get(".")
274275
peers = set(["."])
275276
problem_importers = []
276277

277-
for _, deps in pkg.items():
278+
for deps_key, deps in pkg.items():
279+
if deps_key not in validate_keys:
280+
continue
278281
for _, dep in deps.items():
279282
specifier = dep.get("specifier")
280283
if specifier and specifier.startswith(WS_PREFIX):

0 commit comments

Comments
 (0)