Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed Dec 20, 2024
1 parent 8a0b973 commit 9fce8a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gen-npm-pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 9fce8a8

Please sign in to comment.