How to link a local package which published as a scoped package in npm
I need to use `npx link` but got problem. This is my use case:
+ I use a npm package namely `next-mdx-remote` in a `nextjs` project
+ I created a npm package and published it as **scoped package** `@ipikuka/next-mdx-remote` which is located also in local directory you see in the `link.config.json`
+ Now, I use both in my project
**package.json**
```js
"dependencies": {
"@ipikuka/next-mdx-remote": "^0.0.7",
"next-mdx-remote": "^4.3.0",
},
```
**link.config.json**
```js
{
"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?
关闭于 2023-02-01 1 条评论