Made with create-react-library
Small example on how to use pnpm linking to use a local library. Create with create-react-library.
The pnpm linking command is similar to the npm link command the only thing that has to be added is the -g
flag. To use the pnpm-link-example
package in the example package, you must first run the pnpm link -g
command from the workspace folder. Then cd into the example
directory and run the pnpm link -g pnpm-link-example
.
If you get a pnpm peer dependency error you have to run the npm cache clean -f
command.
MIT © rickstaa