diff --git a/docs/npm_package.md b/docs/npm_package.md index ac02bfd5a..a0823eb80 100644 --- a/docs/npm_package.md +++ b/docs/npm_package.md @@ -24,7 +24,7 @@ A macro that packages sources into a directory (a tree artifact) and provides an This target can be used as the `src` attribute to `npm_link_package`. -The macro also produces a target `[name].publish`, that can be run to publish to an npm registry. +With `publishable = True` the macro also produces a target `[name].publish`, that can be run to publish to an npm registry. Under the hood, this target runs `npm publish`. You can pass arguments to npm by escaping them from Bazel using a double-hyphen, for example: `bazel run //path/to:my_package.publish -- --tag=next` diff --git a/npm/private/npm_package.bzl b/npm/private/npm_package.bzl index 2674da275..28447e4c5 100644 --- a/npm/private/npm_package.bzl +++ b/npm/private/npm_package.bzl @@ -155,7 +155,7 @@ def npm_package( This target can be used as the `src` attribute to `npm_link_package`. - The macro also produces a target `[name].publish`, that can be run to publish to an npm registry. + With `publishable = True` the macro also produces a target `[name].publish`, that can be run to publish to an npm registry. Under the hood, this target runs `npm publish`. You can pass arguments to npm by escaping them from Bazel using a double-hyphen, for example: `bazel run //path/to:my_package.publish -- --tag=next`