#!/bin/sh

set -e

OUTPUT_DIR='recorder-out'

cd ./deadlock-plugins/deadlock-extension/

npm install
npm run build-recorder
npm run build-preStop

cd -
mkdir -p $OUTPUT_DIR
cp -r ./deadlock-plugins/deadlock-extension/out/recorder.js $OUTPUT_DIR
cp -r ./deadlock-plugins/deadlock-extension/out/preStop.js $OUTPUT_DIR


