scala-steward
scala-steward copied to clipboard
Ability to update npmDependencies for Scala.js projects
It would be super-helpful for Scala.js users if Scala Steward update npmDependencies
on scalajs-bundler plugin.
npmDependencies
is a setting key to define Node.js modules and its version, in a form of String -> String
, like
npmDependencies ++= Seq(
"aws-sdk" -> "2.743.0",
"archiver" -> "5.0.0",
)
Suggestion for implementation (and comment for consideration)
- Extract npm module names and versions
- Maybe run
show npmDependencies
then parse the result ?
- Maybe run
- Fetch latest version of each npm modules
-
jsdelivr's
/package/npm/:name
API] could be used. -
name -> latestVersion
pairs should be cached, since external API invokations are costly.
-
jsdelivr's
- Rewrite all occurence of
name -> version
toname -> latestVersion
in*.sbt
andproject/*.(sbt|scala)
- Creates a PR