Skip to content

Unlinking workspace package after linking #8874

Answered by zkochan
alexandercerutti asked this question in Q&A
Discussion options

You must be logged in to vote

Just add the package as a dependency of itself to devDependencies and don't use link/unlink:

{
  "name": "my-pkg",
  "devDependencies": {
    "my-pkg": "workspace:*"
  }
}

We use this technic in the pnpm monorepo.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexandercerutti
Comment options

Answer selected by alexandercerutti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants