vercel / serve

Static file serving and directory listing
https://npmjs.com/package/serve
MIT License
9.24k stars 684 forks source link

Add `main` and `exports` entries to `package.json` #791

Open messaooudi opened 6 months ago

messaooudi commented 6 months ago

require.resolve("serve") throws Cannot find module 'serve'.

Fix

Add both main and exports entries to package.json to make this package discoverable by node module resolution algorithm.