Skip to content

Commit 25139f0

Browse files
authored
Merge pull request #153 from xuwei-k/build-file-warn
fix warning in build.sbt
2 parents 8b02d6f + 1f1d5c1 commit 25139f0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.sbt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ScalaModulePlugin._
2+
import sbtcrossproject.crossProject
23

34
scalaVersionsByJvm in ThisBuild := {
45
val v211 = "2.11.12"
@@ -17,7 +18,7 @@ lazy val root = project.in(file("."))
1718
.aggregate(`scala-parser-combinatorsJS`, `scala-parser-combinatorsJVM`)
1819
.settings(disablePublishing)
1920

20-
lazy val `scala-parser-combinators` = crossProject.in(file(".")).
21+
lazy val `scala-parser-combinators` = crossProject(JSPlatform, JVMPlatform).in(file(".")).
2122
settings(scalaModuleSettings: _*).
2223
jvmSettings(scalaModuleSettingsJVM).
2324
settings(

project/plugins.sbt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "1.0.14")
22

33
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.23")
4+
5+
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.4.0")

0 commit comments

Comments
 (0)