ahrefs / opam-check-npm-deps

An opam plugin that checks the opam switch to gather npm packages in depexts to check against installed packages in node_modules.
MIT License
3 stars 0 forks source link

Should the plugin leverage opam formulas for `npm-version` constraints? #4

Open jchavarri opened 1 year ago

jchavarri commented 1 year ago

The plugin could leverage opam formulas to constraint the versions of the packages. For example, rather than writing:

{npm-version = "^16.0.2"}

One could write:

{npm-version >= "16.0.2" & npm-version < "17.0.0"}

This would allow removing the vendored esy code, but on the other hand might be less convenient.

@davesnx @anmonteiro wdyt?