Skip to content

Commit

Permalink
Fix #1087 by publishing source map references that point on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
plokhotnyuk committed Oct 6, 2023
1 parent 03340ce commit c33a4df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ lazy val commonSettings = Seq(
)

lazy val jsSettings = Seq(
scalacOptions += {
val localSourcesPath = baseDirectory.value.toURI
val remoteSourcesPath = s"https://raw.githubusercontent.com/plokhotnyuk/jsoniter-scala/${git.gitHeadCommit.value.get}/"
val sourcesOptionName = CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) => "-P:scalajs:mapSourceURI"
case _ => "-scalajs-mapSourceURI"
}
s"$sourcesOptionName:$localSourcesPath->$remoteSourcesPath"
},
libraryDependencies ++= Seq(
"io.github.cquiroz" %%% "scala-java-time-tzdb" % "2.5.0" % Test
),
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.9")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.11")
addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.0.2")
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")

libraryDependencies ++= Seq(
"org.openjdk.jmh" % "jmh-core" % "1.37",
Expand Down

0 comments on commit c33a4df

Please sign in to comment.