Skip to content

Instantly share code, notes, and snippets.

@cpsubrian
Created March 15, 2016 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpsubrian/31485ab9ab02945a9016 to your computer and use it in GitHub Desktop.
Save cpsubrian/31485ab9ab02945a9016 to your computer and use it in GitHub Desktop.
Symlink app root alias in package.json
{
"name": "example",
"scripts": {
"postinstall" : "node -e \"var s='../src/js',d='node_modules/@app',fs=require('fs');fs.exists(d,function(exists){exists||fs.symlinkSync(s,d,'dir')});\""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment