Skip to content

Commit

Permalink
chore: activate 'rosetta infuse' feature
Browse files Browse the repository at this point in the history
`jsii-rosetta infuse` will modify all the assemblies in-place to
add examples to types that don't have examples yet.

This feature depends on jsii 1.41, and should not be merged before
jsii has been upgraded to that version (either by #17187 or by #17190).
  • Loading branch information
rix0rrr committed Oct 27, 2021
1 parent 312c2b6 commit 9d5bf2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,17 @@ 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 $ROSETTA) \
$ROSETTA extract \
--compile \
--output samples.tabl.json \
--directory packages/decdk \
$(cat $TMPDIR/jsii.txt)

echo "Infusing examples back into assemblies" >&2
$ROSETTA infuse \
samples.tabl.json \
$(cat $TMPDIR/jsii.txt)

# Jsii packaging (all at once using jsii-pacmak)
echo "Packaging jsii modules" >&2
$PACMAK \
Expand Down

0 comments on commit 9d5bf2c

Please sign in to comment.