automaton-build.project.impl.npm-deps
npm-dep->dependency
(npm-dep->dependency dir [lib-name values])
Turns npm outdated result string line to a dependency conforming to dependency-schema
Example line node_modules/sentry:@sentry/browser@7.119.0:@sentry/browser@8.26.0:@sentry/browser@8.26.0:clojure Which follows pattern path:current-package:wanted-version:latest-version:depended-by
outdated-npm-deps
(outdated-npm-deps dir)
Returns map with :deps
and list of dependencies. In case of an error returns map with :err
update-dep!
(update-dep! {:keys [name version path], :as _dep})
Update dep
update-npm-deps!
(update-npm-deps! dir deps)
(update-npm-deps! dir target-dir deps)
Update all deps
in dir
. Returns nil when successful otherwise a map with :error