2022-12-25 17:34:35 -03:00

24 lines
411 B
Bash

#!/usr/bin/env bash
# This script is used to check the umd's ecmascript compatibility.
# It is intended to be run from the project's root directory.
yarn es-check es2017 dist/index.cjs dev/index.cjs
if [ $? -eq 1 ]; then
exit 1
fi
yarn es-check es2017 dist/index.mjs dev/index.mjs --module
if [ $? -eq 1 ]; then
exit 1
fi
yarn es-check es5 dist/index.bundle.js
if [ $? -eq 1 ]; then
exit 1
fi
# :)