josecfreittas / npm_deps

Manage NPM dependencies in your Elixir projects, without Node or NPM.
MIT License
11 stars 3 forks source link

Add version check before download #5

Open akirion opened 1 year ago

akirion commented 1 year ago

The current mix task always downloads the packages unlike mix deps.get, which only downloads new or updated packages.

Could we add a version check, which compares the given version with the package.json version, if this file exists?

This will save bandwidth and speed up the process.

Maybe we can add an argument --force to the npm_deps mix task, for cases where the current behavior is still required?