#!/usr/bin/env bash
# Ignore this file, this is only needed for internal purposes.

dir="$(dirname "$BASH_SOURCE")"
projectRoot="$(realpath "$dir/..")"
binaryName="$(basename "$projectRoot")"
pathToBinary="build/src/bin/main.js"

cd "$dir"

shopt -s expand_aliases

# We create an alias so that examples look the same as if the library was
# directly installed.
alias "$binaryName"="$projectRoot/$pathToBinary"

# This mocks node's `-r` flag so that examples look the same as if the library
# directly installed.
alias node='node -r "./utils.js"'
