Skip to content

Commit

Permalink
chore: allow specifying rosetta location in pack (aws#6213)
Browse files Browse the repository at this point in the history
Allow specifying custom location for jsii-rosetta in pack.sh.
  • Loading branch information
MrArnoldPalmer authored Feb 11, 2020
1 parent 1fbaafe commit 6dbc0b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export NODE_OPTIONS="--max-old-space-size=4096 ${NODE_OPTIONS:-}"
root=$PWD

PACMAK=${PACMAK:-jsii-pacmak}
ROSETTA=${ROSETTA:-jsii-rosetta}
TMPDIR=${TMPDIR:-$(dirname $(mktemp -u))}
distdir="$PWD/dist"
rm -fr ${distdir}
Expand All @@ -29,7 +30,7 @@ function lerna_scopes() {
# Compile examples with respect to "decdk" directory, as all packages will
# be symlinked there so they can all be included.
echo "Extracting code samples" >&2
node --experimental-worker $(which jsii-rosetta) \
node --experimental-worker $(which $ROSETTA) \
--compile \
--output samples.tabl.json \
--directory packages/decdk \
Expand Down

0 comments on commit 6dbc0b1

Please sign in to comment.