tsndr / cloudflare-worker-jwt

A lightweight JWT implementation with ZERO dependencies for Cloudflare Workers.
MIT License
649 stars 51 forks source link

fix: include `esbuild` as `devDependency` #81

Open abiriadev opened 1 month ago

abiriadev commented 1 month ago

First of all, thanks for the awesome project!

Problem

The build script calles esbuild:

https://github.com/tsndr/cloudflare-worker-jwt/blob/2d7eed49daef0e41db3c50671d82073c98a175f1/package.json#L12

(ref: c6b3a83b4d746ddaa6a950afe6062233c9a2bd38)

However, ESBuild is missing from the devDependencies in the package.json file:

https://github.com/tsndr/cloudflare-worker-jwt/blob/2d7eed49daef0e41db3c50671d82073c98a175f1/package.json#L32-L37

Thus, the npm run build script fails:

Changes

This PR just adds missing esbuild to the devDependencies in the package.json file, to build the project successfully. (in CI server in my case)