Skip to content

Instantly share code, notes, and snippets.

@gkatsev
Created May 6, 2014 22:55
Show Gist options
  • Save gkatsev/1b524fd09e6a988d1b08 to your computer and use it in GitHub Desktop.
Save gkatsev/1b524fd09e6a988d1b08 to your computer and use it in GitHub Desktop.
Using [zelda](https://www.npmjs.org/package/zelda), cross npm link all projects with all other projects. Just clone all your node modules into the same folder, cd into that folder and run the script below.
for i in *; do
if [ -d "$i" ]; then
cd $i;
if [ -f "package.json" ]; then
zelda ../;
fi;
cd ..;
fi;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment