Skip to content

Commit 9f1467b

Browse files
authored
Merge pull request #525 from scala-js/issue/524
Restore scalafix task to prePR
2 parents 32bf717 + d94c3fc commit 9f1467b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.sbt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ val prePR_nonCross = taskKey[Unit]("Performs all necessary work required before
144144
ThisBuild / prePR_nonCross := Def.sequential(
145145
root / clean,
146146
root / Compile / scalafmt,
147-
root / Compile / compile,
147+
Def.taskDyn {
148+
if (scalaVersion.value.startsWith("2."))
149+
(root / Compile / scalafix).toTask("")
150+
else
151+
Def.task[Unit]((root / Compile / compile).value)
152+
},
148153
example / Compile / compile,
149154
).value

0 commit comments

Comments
 (0)