fix: generate JS in Aqua API properly (#755)

fix aqua API for JS
This commit is contained in:
Dima 2023-06-15 17:01:26 +03:00 committed by GitHub
parent 017eca7056
commit 889c50734b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View File

@ -188,7 +188,7 @@ object AquaAPI extends App with Logging {
.find(_.suffix == JavaScriptBackend.dtsExt)
.map(_.content)
jsContent <- c.compiled
.find(_.suffix == JavaScriptBackend.dtsExt)
.find(_.suffix == JavaScriptBackend.ext)
.map(_.content)
} yield GeneratedSource.jsSource(c.sourceId.toString, jsContent, dtsContent)
}.toSourcesResult

View File

@ -1,9 +1,6 @@
val dottyVersion = "3.3.0"
scalaVersion := dottyVersion
val aquaVersion = "0.11.5"
val scalaV = "3.3.0"
val catsV = "2.8.0"
val catsParseV = "0.3.8"
val monocleV = "3.1.0"
@ -21,7 +18,7 @@ val commons = Seq(
val aquaSnapshot = sys.env.getOrElse("SNAPSHOT", "")
if (aquaSnapshot.isEmpty()) aquaVersion else aquaVersion + "-" + aquaSnapshot,
},
scalaVersion := dottyVersion,
scalaVersion := scalaV,
libraryDependencies ++= Seq(
"com.outr" %%% "scribe" % scribeV,
"org.scalatest" %%% "scalatest" % scalaTestV % Test