Skip to content

Commit

Permalink
Build: More robust source maps config with LocalRootProject
Browse files Browse the repository at this point in the history
  • Loading branch information
raquo committed Mar 13, 2024
1 parent a28a400 commit d717403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ scalacOptions ~= { options: Seq[String] =>
}

scalacOptions ++= sys.env.get("CI").map { _ =>
val localSourcesPath = baseDirectory.value.toURI
val localSourcesPath = (LocalRootProject / baseDirectory).value.toURI
val remoteSourcesPath = s"https://raw.githubusercontent.com/raquo/Airstream/${git.gitHeadCommit.value.get}/"
val sourcesOptionName = if (scalaVersion.value.startsWith("2.")) "-P:scalajs:mapSourceURI" else "-scalajs-mapSourceURI"

Expand Down

0 comments on commit d717403

Please sign in to comment.