Closed Offirmo closed 2 years ago
Will it be a better way to add printing the package name in script
?
"scripts": {
"size": "echo '@foo/bar' && size-limit"
}
@ai yes it could work. It doesn't scale very well, though. Need dozens of package.json altered.
Another solution would be for the monorepo tooling to prefix the lines with the repo name.
I understand that the responsibility is unclear.
It doesn't scale very well, though.
You can write a small wrapper on top of Size Limit CLI.
I think that it is rare case when we have to change output for all Size Limit users and increase CLI code complixity :(.
Thanks a lot for this tool!
I'm using a monorepo. When launching a size-limit check on my whole monorepo, I get something like that:
and then the command stop.
The problem is... I have no idea which package of my monorepo caused this error 😅 it's not named anywhere in the output. Could we add an extra line such as:
Checking size limit for package "@foo/bar"...
Thanks a lot!