forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows symlinking the CDK repo into node_modules. TODO: symlink binaries * update README
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
# creates symlinks under node_modules for all packages in this repo | ||
# can be used to work against this code base. | ||
set -euo pipefail | ||
root="$(cd $(dirname $0) && pwd)" | ||
|
||
modules="$(find ${root}/packages -name package.json | grep -v node_modules | grep -v init-templates | xargs -n1 dirname)" | ||
for module in ${modules}; do | ||
echo "${module} => node_modules/$(basename ${module})" | ||
ln -s ${module} node_modules/ | ||
done |