Install the npm module that packages the binary locally.
npm install aws-crt
Update build script to mark aws-crt as an external:
aws-crt
esbuild src/server.ts --outdir=dist --bundle --platform=node --external:aws-crt
References: