1 | #!/usr/bin/env bash
|
2 | #
|
3 | # Links an npm module
|
4 | #
|
5 | set -euf -o pipefail
|
6 |
|
7 | # `npm link` does not work on CircleCI, so we're doing manual symlinking instead
|
8 | rm -rf "node_modules/$1"
|
9 | # Some modules have no dependencies in package.json, so we'll create it just in case
|
10 | mkdir -p "node_modules"
|
11 | ln -s "$(pwd)/../../$1/javascript" node_modules/$1
|