Skip to content

Commit 027a198

Browse files
authored
Merge pull request #33 from xuwei-k/mapSourceURI
add -P:scalajs:mapSourceURI option
2 parents 4ebbc31 + 4077da7 commit 027a198

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.sbt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ lazy val `scala-collection-compat` = crossProject(JSPlatform, JVMPlatform)
2626
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test"
2727
)
2828
.jsSettings(
29+
scalacOptions += {
30+
val x = (baseDirectory in LocalRootProject).value.toURI.toString
31+
val y = "https://raw.githubusercontent.com/scala/scala-collection-compat/" + sys.process.Process("git rev-parse HEAD").lines_!.head
32+
s"-P:scalajs:mapSourceURI:$x->$y/"
33+
},
2934
fork in Test := false // Scala.js cannot run forked tests
3035
)
3136
.jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin))

0 commit comments

Comments
 (0)