Commit b474cfb9 authored by Panagiotis Skarvelis's avatar Panagiotis Skarvelis
Browse files

detect first modules root

parent 40bb8b27
#!/bin/bash
#Used at post-installation to create fake modules if optionalDepenetdencies are not installed
[[ ! -f `npm root`/pg-native/index.js ]] && bash -c "mkdir -p ./node_modules/pg-native && touch ./node_modules/pg-native/index.js" || exit 0
NPMROOT=`npm root`
[[ ! -f ${NPMROOT%%node_modules*}/pg-native/index.js ]] && bash -c "mkdir -p ${NPMROOT}/pg-native && touch ${NPMROOT}/pg-native/index.js" || exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment