RobLoach / node-raylib

Node.js bindings for Raylib
https://robloach.github.io/node-raylib/
Other
237 stars 20 forks source link

actually check http status #129

Closed konsumer closed 2 years ago

konsumer commented 2 years ago

Noticed it was not checking for 404/500/etc. This small change fixes that.

RobLoach commented 2 years ago

I also think if it fails, it would be nice if it tried to compile it.

konsumer commented 2 years ago

Fail is good, that returns exit status 1, which triggers it to build:

"postinstall": "node tools/postinstall.js || npm run compile",