#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
cd ..
# create the config file
read version < ./version
 [ -z "$version" ] && version=0
# everytime after creating require.json, version bumps.
version=$((version + 1))
echo $version > ./version
../node_modules/leaf-require-cli/bin/leaf-require ./typescript.built -r "./typescript.built" --set-version "$version" -o ./require.json
echo require.json created
