Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker-build] Unnecessary package.json included #31

Open
alamothe opened this issue Jun 18, 2022 · 2 comments
Open

[docker-build] Unnecessary package.json included #31

alamothe opened this issue Jun 18, 2022 · 2 comments

Comments

@alamothe
Copy link

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

@Fonger
Copy link
Member

Fonger commented Jun 27, 2022

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

@alamothe
Copy link
Author

alamothe commented Aug 4, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants