@@ -3,6 +3,7 @@ import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
3
3
val dottyVersion = " 3.0.0-RC1"
4
4
val scala213Version = " 2.13.5"
5
5
val spireVersion = " 0.17.0"
6
+ val scalaTestVersion = " 3.2.5"
6
7
7
8
scalaVersion := dottyVersion
8
9
@@ -50,11 +51,11 @@ lazy val proto = (crossProject(JSPlatform, JVMPlatform)
50
51
PB .protoSources in Compile := Seq (file(" proto/src/main/protobuf" )),
51
52
)
52
53
53
- lazy val backends = (crossProject(JSPlatform , JVMPlatform )
54
+ lazy val backends = (crossProject(JVMPlatform , JSPlatform )
54
55
.crossType(CrossType .Pure ) in file(" backends" ))
55
56
.dependsOn(core)
56
57
// conditionally enabling/disable based on version, still not working
57
- .enablePlugins(ScalaJSBundlerPlugin )// , ScalablyTypedConverterPlugin)
58
+ // .enablePlugins(ScalaJSBundlerPlugin)//, ScalablyTypedConverterPlugin)
58
59
.settings(
59
60
commonSettings,
60
61
name := " onnx-scala-backends" ,
@@ -77,10 +78,12 @@ lazy val backends = (crossProject(JSPlatform, JVMPlatform)
77
78
),
78
79
crossScalaVersions := Seq (dottyVersion, scala213Version)
79
80
)
80
- .jvmSettings().jsSettings(
81
- scalaJSUseMainModuleInitializer := true , // , //Testing
81
+ .jvmSettings(
82
+ libraryDependencies += (" org.scalatest" %% " scalatest" % scalaTestVersion) % Test ,
83
+ ).jsSettings(
84
+ scalaJSUseMainModuleInitializer := true ) // , //Testing
82
85
// Seems to be a bundling issue, copying things manually seems to work
83
- npmDependencies in Compile += " onnxjs" -> " 0.1.8" )
86
+ // npmDependencies in Compile += "onnxjs" -> "0.1.8")
84
87
85
88
lazy val core = (crossProject(JSPlatform , JVMPlatform )
86
89
.crossType(CrossType .Pure ) in file(" core" ))
0 commit comments