Commit fa903c5
fix: Prefix the publishable package path with
When trying to call the `.publish` rule on a publishable `npm_package` in a non-root BUILD file, currently the call to `npm` does not find the given package and interprets the argument as a git repository `github.com/path/to.git` . Specifically if you have a package rule in a first-level drectory, e.g. `ts/BUILD.bazel` contains a `npm_package(name = 'foo'...` then calling `npm publish ts/foo` will attempt to `git ls-remote https://github.com/ts/foo.git`.
npm/cli#2796 implies that this is a behaviour change and we need to prefix a `./` to force it to find this argument as a filesystem path. This does indeed work in my local testing../
1 parent 6bba239 commit fa903c5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
| 455 | + | |
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| |||
0 commit comments