-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
bugSomething isn't workingSomething isn't workingbun installSomething that relates to the npm-compatible clientSomething that relates to the npm-compatible client
Description
What version of Bun is running?
v0.6.15 (1790357)
What platform is your computer?
Darwin 21.6.0 arm64 arm
What steps can reproduce the bug?
Create a file package.json with:
{
"name": "bun-workspaces",
"module": "index.ts",
"type": "module",
"workspaces": [
"packages/a"
],
"dependencies": {
"a": "workspace:^"
}
}
Create a second file packages/a/package.json with:
{
"name": "a",
"version": "1.0.0"
}
Then run bun install in the root.
What is the expected behavior?
It creates a node_moudules with a symlinked to packages/a.
What do you see instead?
Error
error: Workspace name "a" already exists
{
^
Additional information
As a workaround, replacing workspace:^ with workspace:* works.
For reference, these are the semantics of the workspace: protocol in yarn and pnpm.

Hebilicious, dn-l, VictorGlindasPaf, bradenbiz, kobibasson and 4 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingbun installSomething that relates to the npm-compatible clientSomething that relates to the npm-compatible client