ericcornelissen / depreman

Manage npm deprecations
https://www.npmjs.com/package/depreman
GNU Affero General Public License v3.0
0 stars 0 forks source link

Support environment configuration #50

Open ericcornelissen opened 2 weeks ago

ericcornelissen commented 2 weeks ago

Add support to depreman to ingest a configuration object from the environment.

The main use case I envision for this is that a user runs depreman in their CI on a regular schedule for their latest release (with the goal of knowing when a new release is necessary due to a deprecated dependency). But sometimes a deprecated dependency does not warrant a new release, hence you'd want to instruct depreman to ignore it. But in this scenario you can't push a commit with an updated depreman config because then it wouldn't be the release commit anymore. Hence you'd need some alternative way to do this.

For example, with GitHub Actions one could specify the config as a vars variable and provide it to Depreman as an env variable.