Skip to content

Commit 0b21e0b

Browse files
fix: watch pnpm-lock from the module extension (#2148)
1 parent df99ca1 commit 0b21e0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

npm/extensions.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def _npm_extension_impl(module_ctx):
3131
# We cannot read the pnpm_lock file before it has been bootstrapped.
3232
# See comment in e2e/update_pnpm_lock_with_import/test.sh.
3333
if attr.pnpm_lock:
34+
if hasattr(module_ctx, "watch"):
35+
module_ctx.watch(attr.pnpm_lock)
3436
_npm_lock_imports_bzlmod(module_ctx, attr)
3537

3638
for i in mod.tags.npm_import:

0 commit comments

Comments
 (0)