Skip to content

Commit

Permalink
Add callout for dependency on generate_bzl_library_targets (#1911)
Browse files Browse the repository at this point in the history
When this attribute is not set in the call to `npm_translate_lock`, the queries return no results, the `package_json.bzl` file is not directly findable, and users may be very confused.
  • Loading branch information
plobsing authored Aug 29, 2024
1 parent 91ac232 commit ccc4210
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ $ bazel query @npm//... --output=location | grep bzl_library

This shows locations on disk where the npm packages can be loaded.

> [!NOTE]
> These queries only work when `generate_bzl_library_targets = True` is passed to `npm_translate_lock`.
> If you get no results, check the settings in your `MODULE.bazel` or `WORKSPACE` file and try again.
To see the definition of one of these targets, you can run another `bazel query`:

```shell
Expand Down

0 comments on commit ccc4210

Please sign in to comment.