Skip to content

Commit

Permalink
chore: fix compilation on macOS (#1616)
Browse files Browse the repository at this point in the history
  • Loading branch information
Szaroslav committed Jun 11, 2024
1 parent 4f6030f commit 579d344
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion postcompile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 579d344

Please sign in to comment.