From bbf5d5ced77f79f472787e9a775969dc29d3da3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Costa?= Date: Sun, 25 Feb 2024 15:08:39 +0000 Subject: [PATCH] Don't use CrossVersion.for3Use2_13 in Scala.js --- api/src/main/scala/com.olegych.scastie.api/ScalaTarget.scala | 3 +-- project/SbtShared.scala | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/api/src/main/scala/com.olegych.scastie.api/ScalaTarget.scala b/api/src/main/scala/com.olegych.scastie.api/ScalaTarget.scala index 57ecd8f31..4fb0903a2 100644 --- a/api/src/main/scala/com.olegych.scastie.api/ScalaTarget.scala +++ b/api/src/main/scala/com.olegych.scastie.api/ScalaTarget.scala @@ -208,8 +208,7 @@ object ScalaTarget { else scalaJsVersion.split('.').head) ) - def renderSbt(lib: ScalaDependency): String = - s"${renderSbtCross(lib)} cross CrossVersion.for3Use2_13" + def renderSbt(lib: ScalaDependency): String = renderSbtCross(lib) def sbtConfig: String = { s"""|$sbtConfigScalaVersion diff --git a/project/SbtShared.scala b/project/SbtShared.scala index 1beffe754..059086075 100644 --- a/project/SbtShared.scala +++ b/project/SbtShared.scala @@ -31,7 +31,7 @@ object SbtShared { val sbt = latest212 val jvm = latest213 val cross = List(latest210, latest211, latest212, latest213, old3, js, sbt, jvm).distinct - val crossJS = List(latest212, latest213, js).distinct + val crossJS = List(latest212, latest213, stableLTS, js).distinct } object ScalaJSVersions {