We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe684c commit dec3e5cCopy full SHA for dec3e5c
src/main/scala/com/thoughtworks/sbtScalaJsMap/ScalaJsMap.scala
@@ -86,7 +86,13 @@ object ScalaJsMap extends AutoPlugin {
86
} else {
87
path
88
}
89
- raw"""-P:scalajs:mapSourceURI:${repositoryBuilder.getWorkTree.toURI}->https://github.com/$slug/raw/${head.name}/"""
+ val key = CrossVersion.partialVersion(scalaVersion.value) match {
90
+ case Some((3, _)) =>
91
+ "-scalajs-mapSourceURI"
92
+ case _ =>
93
+ "-P:scalajs:mapSourceURI"
94
+ }
95
+ raw"""$key:${repositoryBuilder.getWorkTree.toURI}->https://github.com/$slug/raw/${head.name}/"""
96
97
98
},
0 commit comments