Skip to content

Commit 4f3cf87

Browse files
committed
Specify package mgmt with bazel in frontend
Change-Id: I5050606fb3c3c9cb3b008eed29053b41a85c4615
1 parent a4d90cc commit 4f3cf87

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

packages/cmk-frontend-vue/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ If you need to change the dependencies you can do so by running pnpm
5252
inside bazel, for example:
5353

5454
```sh
55-
bazel run -- @pnpm//:pnpm --dir $PWD install vue
55+
# Install package "foo"
56+
bazel run -- @pnpm//:pnpm --dir $PWD install foo
57+
# Update package "foo"
58+
bazel run -- @pnpm//:pnpm --dir $PWD update foo
59+
# Update lock file if package.json was edited manually
5660
bazel run -- @pnpm//:pnpm --dir $PWD install --lockfile-only
5761
```
5862

59-
Take care that you might add new dependencies to the SRCS variable in
60-
`BUILD`.
61-
63+
If you add a new package, append a `":node_modules/<new-package>"` item
64+
to the SRCS list in the `BUILD` file.

0 commit comments

Comments
 (0)