Skip to content

Commit

Permalink
Merge pull request #218 from exoego/precise-jsdom-detection
Browse files Browse the repository at this point in the history
Fix #136: Add more precise jsdom detection.
  • Loading branch information
julienrf committed Feb 11, 2018
2 parents e089cf4 + 0cf7452 commit fae359a
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -485,9 +485,10 @@ object ScalaJSBundlerPlugin extends AutoPlugin {

installJsdom := {
val installDir = target.value / "scalajs-bundler-jsdom"
val jsdomDir = installDir / "node_modules" / "jsdom"
val log = streams.value.log
val jsdomVersion = (version in installJsdom).value
if (!installDir.exists()) {
if (!jsdomDir.exists()) {
log.info(s"Installing jsdom in ${installDir.absolutePath}")
IO.createDirectory(installDir)
install(installDir, useYarn.value, log)(s"jsdom@$jsdomVersion")
Expand Down

0 comments on commit fae359a

Please sign in to comment.