Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,13 @@ object ujson extends Module{
def mvnDeps = Seq(mvn"io.circe::circe-parser:$circeVersion")
}

object js extends Cross[CirceJsModule](scalaVersions)
trait CirceJsModule extends CommonJsModule{
def moduleDeps = Seq(ujson.js())
val circeVersion = "0.14.14"
def mvnDeps = Seq(mvn"io.circe::circe-parser:$circeVersion")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you extract these in a trait as we do in CommonCoreModule and then extend it in jvm, js and native?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing, done

}

object native extends Cross[CirceNativeModule](scalaVersions)
trait CirceNativeModule extends CommonNativeModule{
def moduleDeps = Seq(ujson.native())
Expand Down