Skip to content

Commit

Permalink
chore: activate 'rosetta infuse' feature (#17191)
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*
  • Loading branch information
rix0rrr committed Nov 3, 2021
1 parent b240201 commit 26658a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pack.sh
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 26658a6

Please sign in to comment.