dev-resources.site
for different kinds of informations.
How to link a local npm dependency with pnpm
Published at
8/13/2023
Categories
pnpm
javascript
dependencies
Author
Krzysztof Ε»uraw
I have learned how to correctly link a local npm dependency when using pnpm. Here is the process:
- Execute
pnpm install ./your-library.tgz
. - Include the following code in your
package.json
file:
{
"pnpm": {
"overrides": {
"your-library": "file:./your-library.version.tgz"
}
}
}
Your dependency should now be properly linked!
Articles
12 articles in total
How to link a local npm dependency with pnpm
currently reading
How you properly test your React hook methods
read article
Composition vs props in React
read article
Polymorphic components in React
read article
Sharing configs between Storybook and Vite
read article
Auto update readme on GitHub with Deno
read article
Site search in Raycast
read article
Polymorphic react component with vanilla-extract
read article
Eslint rule to restrict imports
read article
Executing scripts when docker starts
read article
How to type Next.js env variables in TypeScript
read article
Custom font on GitHub
read article
Featured ones: