Skip to content

Commit

Permalink
fix: don't default patch_args when using pnpm.patchedDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kormide committed Feb 2, 2023
1 parent ec50e13 commit 8606baf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions npm/npm_import.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,12 @@ WARNING: `package_json` attribute in `npm_translate_lock(name = "{name}")` is de
if "no-sandbox" not in lifecycle_hooks_execution_requirements["*"]:
lifecycle_hooks_execution_requirements["*"].append("no-sandbox")

# TODO (2.0): Stop defaulting patch_args with {"*": ["-p0"]} when no patches are supplied
# as this conflicts with the default pnpm.patchedDependencies format of "-p1" and
# needs to be explicitly overridden by the user.
if len(patches) == 0:
patch_args = {}

_npm_translate_lock(
name = name,
pnpm_lock = pnpm_lock,
Expand Down

0 comments on commit 8606baf

Please sign in to comment.