Dcard/yarn-plugins

[docker-build] Unnecessary package.json included

alamothe opened this issue · 2 comments

package.json of workspaces that are not dependencies are included in docker image. Wondering if this is avoidable?

I think this is necessary, otherwise yarn will fail to run?

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.