Skip to content

Remix libs dist directory picked up by Yarn workspaces

Open

Description

After the initial setup/install of Remix with a Remix lib imported into the app, re-running yarn install results in Yarn error:

error There are more than one workspace with name "@company/mylib"

This is due to the Remix lib being compiled into "./dist" (relative to lib dir) and Yarn Workspaces picking it up.

Each time I want to add/remove a package, I need to manually go through and delete all the ./dist outputs.

At this stage I haven't found an appropriate fix. I did attempt to fix by negative globbing in the Yarn workspaces config: e.g. "workspaces": ["libs/**/!(dist)/*"] however sadly this did not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions