Skip to content

Commit

Permalink
chore: Allow Specifying Packmak Location
Browse files Browse the repository at this point in the history
Allow specifying what jsii-pacmak binary to use when running `pack.sh`.
This makes testing with various JSII builds easier.
  • Loading branch information
MrArnoldPalmer committed Feb 4, 2020
1 parent 2240e97 commit 7fc343b
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 @@ -7,6 +7,7 @@ export PATH=$PWD/node_modules/.bin:$PATH
export NODE_OPTIONS="--max-old-space-size=4096 ${NODE_OPTIONS:-}"
root=$PWD

PACMAK=${PACMAK:-jsii-pacmak}
TMPDIR=${TMPDIR:-$(dirname $(mktemp -u))}
distdir="$PWD/dist"
rm -fr ${distdir}
Expand Down Expand Up @@ -36,7 +37,7 @@ node --experimental-worker $(which jsii-rosetta) \

# Jsii packaging (all at once using jsii-pacmak)
echo "Packaging jsii modules" >&2
jsii-pacmak \
$PACMAK \
--verbose \
--rosetta-tablet samples.tabl.json \
$(cat $TMPDIR/jsii.txt)
Expand Down

0 comments on commit 7fc343b

Please sign in to comment.