Skip to content

Commit a248386

Browse files
Backport "[build] Add missing mapSourceURI for scala-library-sjs project" to 3.8.0 (#24526)
Backports #24450 to the 3.8.0-RC2. PR submitted by the release tooling. [skip ci]
2 parents 1ece1f9 + 68550a0 commit a248386

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

project/Build.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,6 +2192,16 @@ object Build {
21922192
Compile / scalacOptions += "-Yno-stdlib-patches",
21932193
Compile / scalacOptions += "-Yexplicit-nulls",
21942194
Compile / scalacOptions += "-scalajs",
2195+
// Configure the source maps to point to GitHub for releases
2196+
Compile / scalacOptions ++= {
2197+
if (isRelease) {
2198+
val baseURI = (LocalRootProject / baseDirectory).value.toURI
2199+
val dottyVersion = version.value
2200+
Seq(s"-scalajs-mapSourceURI:$baseURI->$dottyGithubRawUserContentUrl/$dottyVersion/")
2201+
} else {
2202+
Nil
2203+
}
2204+
},
21952205
// Packaging configuration of the stdlib
21962206
Compile / packageBin / publishArtifact := true,
21972207
Compile / packageDoc / publishArtifact := true,

0 commit comments

Comments
 (0)