Skip to content

Commit

Permalink
Update scalajs-js-envs to 1.4.0
Browse files Browse the repository at this point in the history
This is needed to fix this issue scala-js/scala-js-js-envs#12
that is fixed in the latest version of `scalajs-env-nodejs`
To share the version between build and meta-build I created a Scala
file which I then syslinked to project/project/ by doing:
```
cd project/project
ln -s ../MetaBuildShared.scala
```
  • Loading branch information
lolgab committed Apr 1, 2023
1 parent f25484b commit 134273d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ lazy val `scalajs-env-jsdom-nodejs`: Project = project.in(file("jsdom-nodejs-env
commonSettings,

libraryDependencies ++= Seq(
"org.scala-js" %% "scalajs-js-envs" % scalaJSVersion,
"org.scala-js" %% "scalajs-env-nodejs" % scalaJSVersion,
"org.scala-js" %% "scalajs-js-envs" % MetaBuildShared.scalajsJsEnvsVersion,
"org.scala-js" %% "scalajs-env-nodejs" % MetaBuildShared.scalajsJsEnvsVersion,

"com.novocode" % "junit-interface" % "0.11" % "test",
"org.scala-js" %% "scalajs-js-envs-test-kit" % scalaJSVersion % "test"
"org.scala-js" %% "scalajs-js-envs-test-kit" % MetaBuildShared.scalajsJsEnvsVersion % "test"
)
)

Expand Down
6 changes: 6 additions & 0 deletions project/MetaBuildShared.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// this file is shared between the build and the meta-build
// the file is located in project/ and there is a system link
// to it in project/project/
object MetaBuildShared {
val scalajsJsEnvsVersion = "1.4.0"
}
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.7")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.0.15")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")

libraryDependencies += "org.scala-js" %% "scalajs-env-nodejs" % "1.0.1"
libraryDependencies += "org.scala-js" %% "scalajs-env-nodejs" % MetaBuildShared.scalajsJsEnvsVersion

unmanagedSourceDirectories in Compile +=
baseDirectory.value.getParentFile / "jsdom-nodejs-env/src/main/scala"
1 change: 1 addition & 0 deletions project/project/MetaBuildShared.scala

0 comments on commit 134273d

Please sign in to comment.