Skip to content

Commit c387560

Browse files
committed
Fix source map URL
1 parent 6205d4f commit c387560

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.sbt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ val commonSettings: Seq[Setting[_]] = Seq(
1414
organization := "org.scala-js",
1515
scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings"),
1616

17+
scalacOptions ++= {
18+
if (isSnapshot.value)
19+
Seq.empty
20+
else {
21+
val a = baseDirectory.value.toURI
22+
val g = "https://raw.githubusercontent.com/scala-js/scala-js-java-time"
23+
Seq(s"-P:scalajs:mapSourceURI:$a->$g/v${version.value}/")
24+
}
25+
},
26+
1727
homepage := Some(url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttp://scala-js.org/%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E)),
1828
licenses += ("BSD New",
1929
url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttps://github.com/scala-js/scala-js-java-time/blob/master/LICENSE%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E)),

0 commit comments

Comments
 (0)