chore: fix compilation on macOS (#1616)

This commit is contained in:
Jakub Szaredko
2024-06-11 12:30:57 +02:00
committed by GitHub
parent 4f6030f2c4
commit 579d34412a

View File

@@ -4,7 +4,11 @@ cp ./support/package.esm.json ./build/esm/package.json
cp -r ./build/esm/ ./build/esm-debug/
sed -i '/debug(/d' ./build/esm/*.js
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' -e '/debug(/d' ./build/esm/*.js
else
sed -i -e '/debug(/d' ./build/esm/*.js
fi
# for backward compatibility with `const socket = require("socket.io-client")(...)`
echo -e '\nmodule.exports = lookup;' >> ./build/cjs/index.js