I would like lerna run log prefixes to reflect the webpack module federation name instead of package name #3565
nickrobillard
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. When using
lerna run
to run a workspace that uses Webpack Module Federation, it would be really nice to use the ModuleFederationPluginname
as the log prefix, instead of the package name.Let's say I have a workspace, with
package.json
:And I have this Webpack Module Federation config in webpack js:
Instead of seeing this prefix in the log:
I would like to see this instead:
After looking at the
spawnStreaming
implementation in@lerna/child-process/index.js
and@lerna/cli.js
, this could be quite straightforward to implement. But there are a couple directions one can go. One direction would be to simply allow custom arbitrary prefixes (sort of like how concurrently allows). Another direction would be to focus on the Webpack Module Federation use case and parse the webpack configuration so thatname
could be automatically used. What would be most in line with lerna philosophy? Are there any other approaches that would achieve something like this that are more suitable? I would love to work on a PR for this. Thanks!Beta Was this translation helpful? Give feedback.
All reactions