This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
# given an aws-cdk bundle archive (the one published to github releases), extract | |
# all .jsii manifests and places them under "jsii/*.jsii" | |
# now they can be used with jsii-reflect | |
zip=${1:-} | |
if [ -z "${zip}" ]; then | |
echo "Usage: $(basename $0) <cdk-bundle-zip>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var fs = require("fs"), | |
https = require("https"), | |
url = require("url"), | |
zlib = require("zlib"); | |
/** | |
* Process HTTP responses. Handle compressed streams and convert to objects as | |
* appropriate. |