Skip to content

[Bug]: pnpm workspace projects with no pkg cause rdeps query failures #1837

Open
@jbedard

Description

@jbedard

What happened?

Some pnpm workspace projects have no npm_package target (the name defined by npm_translate_lock(npm_package_target_name)) because they are never linked into the package store. Projects such as "apps" are part of the pnpm workspace, have dependencies etc, but will most likely never be depended on so do not have npm_package targets. However it seems that target may still be referenced by a target generated by rules_js.

Version

Language(s) and/or frameworks involved: ts+js

How to reproduce

Declare a pnpm workspace, 2 projects, 1 project without an `npm_package`, then run an `rdeps` query such as:

bazel query 'rdeps(//...)'

Any other information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneed: discussionWe have to do some design work in a meeting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions