-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
I was creating a new package in a monorepo by copying an existing one. I forgot to change the name and ended up with two workspaces having identical names. pnpm install did not complain, manypkg did not either. It’d be great to see an error (DUPLICATE_PACKAGE_NAME?) in this case.
Here is an MWE for @manypkg/cli@0.22.0:
https://github.com/kachkaev/manypkg-issue-235
packages/a/package.json → "name": "a"
packages/b/package.json → "name": "b"
packages/c/package.json → "name": "a" ❗ should be "c"
pnpm manypkg check
## Recieved
☔️ success workspaces valid!
## Expected
☔️ error Workspaces at "packages/a" and "package/c" have the same name "a"Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels