privatenumber / link

🔗 A better `npm link`
193 stars 8 forks source link

How to link a local package which published as a scoped package in npm #14

Closed talatkuyuk closed 1 year ago

talatkuyuk commented 1 year ago

I need to use npx link but got problem. This is my use case:

package.json

"dependencies": {
    "@ipikuka/next-mdx-remote": "^0.0.7",
    "next-mdx-remote": "^4.3.0",
  },

link.config.json

{
  "packages": ["../../my_packages/next-mdx-remote"]
}

When I run npx link, I would like @ipikuka/next-mdx-remote to be symlinked not next-mdx-remote.

How to do that?

talatkuyuk commented 1 year ago

Ahh, got it. It looks at the name of the package.json which is {"name": "@ipikuka/next-mdx-remote"} in my case.

No problem. Closed it.