nilzona / path2d-polyfill

Polyfills Path2D api for canvas rendering
29 stars 10 forks source link

package.json 'engines' field is causes errors during install in legacy build systems #74

Closed pcvera closed 4 months ago

pcvera commented 5 months ago

Hi! The specified engines field in this package's package.json causes errors during install on lower versions of node. It's telling package managers that this package is expected to be executed in node, at a version above 18, so if we install but happen to be running against node 14, our install fails.

However it looks like this package executes in the browser rather than node, and it's source doesn't appear to rely on any node APIs, so I have a hunch that you might be using that field to enforce a development-time constraint. Would you be willing to drop the engines requirement so those of us stuck with node 14 can still use this package? 🙏

Thank you!