chore: symlink manifests in dependencies scripts (#935)

See: https://github.com/resin-io/etcher/pull/934#issuecomment-264862767
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
Juan Cruz Viotti 2016-12-05 15:42:42 -04:00 committed by GitHub
parent 92bc79df15
commit bf2ff121f3
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ if [ "$ARGV_PRODUCTION" == "true" ]; then
fi
if [ -n "$ARGV_PREFIX" ]; then
cp "$PWD/bower.json" "$ARGV_PREFIX"
ln -s "$PWD/bower.json" "$ARGV_PREFIX/bower.json"
pushd "$ARGV_PREFIX"
bower install $INSTALL_OPTS
popd

View File

@ -99,10 +99,10 @@ fi
if [ -n "$ARGV_PREFIX" ]; then
mkdir -p "$ARGV_PREFIX"
INSTALL_OPTS="$INSTALL_OPTS --prefix=$ARGV_PREFIX"
cp "$PWD/package.json" "$ARGV_PREFIX"
ln -s "$PWD/package.json" "$ARGV_PREFIX/package.json"
if [ -f "$PWD/npm-shrinkwrap.json" ]; then
cp "$PWD/npm-shrinkwrap.json" "$ARGV_PREFIX"
ln -s "$PWD/npm-shrinkwrap.json" "$ARGV_PREFIX/npm-shrinkwrap.json"
fi
fi