Files
socket.io/postcompile.sh
Luigi Pinca 27936285ea chore: make postcompile.sh script work on macOS (#681)
On macOS the script was interpreted as the value of the `-i` option. It
will now use an empty extension for the `-i` option and the `-e` option
to specify the script.
2021-11-13 06:33:06 +01:00

13 lines
342 B
Bash
Executable File

#!/usr/bin/env bash
cp ./support/package.cjs.json ./build/cjs/package.json
cp ./support/package.esm.json ./build/esm/package.json
cp -r ./build/esm/ ./build/esm-debug/
if [ "${OSTYPE:0:6}" = darwin ]; then
sed -i '' -e '/debug(/d' ./build/esm/*.js ./build/esm/**/*.js
else
sed -i -e '/debug(/d' ./build/esm/*.js ./build/esm/**/*.js
fi