Skip to content

Commit

Permalink
Use js-native folder by sbt-crossproject
Browse files Browse the repository at this point in the history
Avoid creating extra     `Compile / unmanagedSourceDirectories` for non-jvm
  • Loading branch information
lolgab authored and tgodzik committed Apr 17, 2023
1 parent 22a27a7 commit 29eeea4
Show file tree
Hide file tree
Showing 26 changed files with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ lazy val munit = crossProject(JSPlatform, JVMPlatform, NativePlatform)
sharedNativeSettings,
libraryDependencies ++= List(
"org.scala-native" %%% "test-interface" % nativeVersion
),
Compile / unmanagedSourceDirectories +=
(ThisBuild / baseDirectory).value / "munit" / "non-jvm" / "src" / "main"
)
)
.jsConfigure(sharedJSConfigure)
.jsSettings(
Expand All @@ -241,9 +239,7 @@ lazy val munit = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.cross(CrossVersion.for3Use2_13),
("org.scala-js" %% "scalajs-junit-test-runtime" % scalaJSVersion)
.cross(CrossVersion.for3Use2_13)
),
Compile / unmanagedSourceDirectories +=
(ThisBuild / baseDirectory).value / "munit" / "non-jvm" / "src" / "main"
)
)
.jvmSettings(
sharedJVMSettings,
Expand Down

0 comments on commit 29eeea4

Please sign in to comment.