Skip to content

Commit

Permalink
fix(npm): support patches, lifecycle hooks for non-directory file: pa…
Browse files Browse the repository at this point in the history
…ckages
  • Loading branch information
jbedard committed Oct 16, 2024
1 parent ddc12ea commit 9a8f6a3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions npm/private/npm_translate_lock_helpers.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,6 @@ def _get_npm_imports(importers, packages, patched_dependencies, only_built_depen
transitive_closure = package_info.get("transitive_closure")
resolution = package_info.get("resolution")

if version.startswith("file:"):
# this package is treated as a first-party dep
continue

resolution_type = resolution.get("type", None)
if resolution_type == "directory":
# this package is treated as a first-party dep
Expand Down

0 comments on commit 9a8f6a3

Please sign in to comment.