[Bug]: dev = True
support missing from pnpm version 9 lockfiles
#2013
Labels
bug
Something isn't working
dev = True
support missing from pnpm version 9 lockfiles
#2013
What happened?
I added the following to my
MODULE.bazel
:The intention here is to use this together with
ts_project
because right now it's including dev dependencies in its output (which might actually be related to this issue...).However, when I add
dev = True
, no dependencies actually get included in the resulting linked packages, and I get errors related to missing type declarations.Version
Development (host) and target OS/architectures: Host+target: Gentoo Linux
Output of
bazel --version
: 7.4.0Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file: 2.1.0Language(s) and/or frameworks involved: JavaScript
How to reproduce
pnpm init
pnpm i -D left-pad
(any package)echo 'require("left-pad"); require("fs").writeFileSync("dummy.txt", "");' > index.js
MODULE.bazel
:BUILD.bazel
:"pnpm": {"onlyBuiltDependencies": []}
topackage.json
bazel build repro
. Get the following error:You can remove
dev = True
from thetranslate_lock
call to have it working.Any other information?
The offending line seems to be:
rules_js/npm/private/pnpm.bzl
Line 495 in a829760
The text was updated successfully, but these errors were encountered: