From 9fce8a8c2b2ed8b76a65c7bbad02e5d9a0c52790 Mon Sep 17 00:00:00 2001 From: lukachi Date: Fri, 20 Dec 2024 12:43:03 +0200 Subject: [PATCH] hotfix --- gen-npm-pkg.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gen-npm-pkg.sh b/gen-npm-pkg.sh index b1f4ab1..6bbe446 100644 --- a/gen-npm-pkg.sh +++ b/gen-npm-pkg.sh @@ -6,6 +6,12 @@ OUTPUT_DIR="./aptos-wasm-bindings" OUTPUT_FILE="$OUTPUT_DIR/index.d.ts" PACKAGE_JSON="$OUTPUT_DIR/package.json" +# Check and Install Rollup +if ! command -v rollup &> /dev/null; then + echo "Rollup is not installed. Installing Rollup..." + npm install --global rollup +fi + # Ensure the base directory exists if [ ! -d "$BASE_DIR" ]; then echo "Error: Directory $BASE_DIR does not exist."