Skip to content

Commit

Permalink
chore(build): allow generating a subset of language packages (#1730)
Browse files Browse the repository at this point in the history
Update the build tools to take an argument to pack only a subset of language targets.
  • Loading branch information
Elad Ben-Israel authored and rix0rrr committed Mar 18, 2019
1 parent 06b59d9 commit 130e2d0
Show file tree
Hide file tree
Showing 34 changed files with 1,580 additions and 2,251 deletions.
5 changes: 3 additions & 2 deletions pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ mkdir -p ${distdir}
scopes=$(lerna ls 2>/dev/null | grep -v "(private)" | cut -d" " -f1 | xargs -n1 -I{} echo "--scope {}" | tr "\n" " ")

# Run the "cdk-package" script in all modules. For jsii modules, this invokes jsii-pacmak which generates and builds multi-language
# outputs. For non-jsii module, it will just run "npm pack" and place the output in dist/npm (which is similar to how pacmak outputs it).
lerna run ${scopes} --sort --stream package
# outputs. For non-jsii module, it will just run "npm pack" and place the output in dist/npm
# (which is similar to how pacmak outputs it).
lerna run ${scopes} --sort --stream package -- -- "$@"

# Collect dist/ from all modules into the root dist/
for dir in $(find packages -name dist | grep -v node_modules); do
Expand Down
Loading

0 comments on commit 130e2d0

Please sign in to comment.