Skip to content

Instantly share code, notes, and snippets.

@axtgr
Created July 24, 2015 15:52
Show Gist options
  • Save axtgr/4d7f3845b7a0d65afbd2 to your computer and use it in GitHub Desktop.
Save axtgr/4d7f3845b7a0d65afbd2 to your computer and use it in GitHub Desktop.
Post install script for creating a symlink in node_modules
"scripts": {
"postinstall" : "node -e \" try { require('fs').symlinkSync('../app', 'node_modules/~', 'dir') } catch(e) { if (e.code !== 'EEXIST') { console.log('Couldn\\'t create a symlink in node_modules:'); console.log(e.message); } } \""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment