lukeed / sirv

An optimized middleware & CLI application for serving static files~!
MIT License
1.06k stars 56 forks source link

Apply publint recommendations #150

Open Rich-Harris opened 1 year ago

Rich-Harris commented 1 year ago

Adds a pkg.exports field. Today, if you import sirv in a "type": "module" app, it will import build.js rather than build.mjs. With this change, build.mjs is imported. Not that it actually makes a difference.

lukeed commented 1 year ago

Adding exports is a breaking change on its own. Cutting a new major solely for this does more harm than good, especially since sirv actually works fine in Node ESM (given native ESM interop).

Will include this once there's actually a change in functionality to constitute a sirv@3.x release.