Skip to content

Commit

Permalink
Add more precise jsdom detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Feb 11, 2018
1 parent e089cf4 commit 0cf7452
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 0cf7452

Please sign in to comment.