Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ object Build {
val homepageUrl = "https://scala-lang.org/"
val dottyOrganization = "org.scala-lang"
val dottyGithubUrl = "https://github.com/scala/scala3"
val dottyGithubRawUserContentUrl = "https://raw.githubusercontent.com/scala/scala3"

// Run tests with filter through vulpix test suite
val testCompilation = inputKey[Unit]("runs integration test with the supplied filter")
Expand Down Expand Up @@ -1457,6 +1458,16 @@ object Build {
Compile / scalacOptions += "-Yno-stdlib-patches",
Compile / scalacOptions += "-Yexplicit-nulls",
Compile / scalacOptions += "-scalajs",
// Configure the source maps to point to GitHub for releases
Compile / scalacOptions ++= {
if (isRelease) {
val baseURI = (LocalRootProject / baseDirectory).value.toURI
val dottyVersion = version.value
Seq(s"-scalajs-mapSourceURI:$baseURI->$dottyGithubRawUserContentUrl/$dottyVersion/")
} else {
Nil
}
},
// Packaging configuration of the stdlib
Compile / packageBin / publishArtifact := true,
Compile / packageDoc / publishArtifact := false,
Expand Down
Loading