Skip to content

Commit 5e60c1e

Browse files
author
exoego
committed
Use Scala.js specicifed in environment variable.
1 parent 87a0b8c commit 5e60c1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

project/plugins.sbt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings")
22

3+
val scalajsVersion = Option(System.getenv("SCALAJS_VERSION")).filter(_.nonEmpty).getOrElse("0.6.28")
4+
35
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.0.0")
4-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.28")
6+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalajsVersion)
57
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.6.1")

0 commit comments

Comments
 (0)