How can I tell my local linked package is in use rather than from remote? Is it suppose to show up in the dev server of my local package?
If you are linking packageA into your project and wanting to confirm it is working, go to the base dir for the project and type:
ls -l node_modules/ | egrep "^l"
This will list any linked modules, each will show as:
lrwxr-xr-x 1 vagrant vagrant 66 Feb 3 14:39 packageA -> ../../../home/vagrant/.config/yarn/link/packageA
Also, if you are using VS Code, links are shown visually, if you scroll down your node_modules dir you will see:
If you check the yarn link documentation, the yarn link uses a local copy of the package.
This will create a symlink named react-relay/node_modules/react that links to your local copy of the react project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With