rules_js
rules_js copied to clipboard
Add .publish run target to npm_package
Should be able to build a package and publish it to some registry
Should be fairly easy to add a .publish
run target to npm_package
(same as pkg_npm has in rules_nodejs).
To make it more useful it should come with stamping support. The shape of stamping
in npm_package
needs a little thought
yeah I keep wanting to do something with stamping - but really the minimum necessary thing is just a jq
filter to replace the version
in package.json, so maybe we want to add stamping support to the jq
rule in aspect_bazel_lib and then at most we'd need to make npm_package
macro expand to include one of those
https://github.com/aspect-build/bazel-lib/issues/223 for that jq prereq
Stamping of package.json is done so this is unblocked for someone
FYI, https://github.com/aspect-build/rules_js/pull/498 will add the option to have npm on the PATH which will make implementing this feature much easier than in rules_nodejs.