[docker-build] Unnecessary package.json included
alamothe opened this issue · 2 comments
alamothe commented
package.json
of workspaces that are not dependencies are included in docker image. Wondering if this is avoidable?
Fonger commented
I think this is necessary, otherwise yarn will fail to run?
alamothe commented
Not unless they're specified by name in the root package.json workspaces
field. Perhaps just check and clean up this field?
Another option is to clean up these unrelated package.json files, basically keep only name
, version
, and private
. The goal is to avoid a cache miss if I update a script in unrelated package.