yarn-plugins icon indicating copy to clipboard operation
yarn-plugins copied to clipboard

[docker-build] Unnecessary package.json included

Open alamothe opened this issue 3 years ago • 2 comments

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

alamothe avatar Jun 18 '22 04:06 alamothe

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

Fonger avatar Jun 27 '22 01:06 Fonger

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.

alamothe avatar Aug 04 '22 00:08 alamothe