Skip to content

Commit

Permalink
chore: activate 'rosetta infuse' feature (#17191) (#17305)
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).

Depends-On: #17190

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
rix0rrr authored Nov 3, 2021
1 parent e461601 commit e2f2a97
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 e2f2a97

Please sign in to comment.