Skip to content

Commit 134273d

Browse files
committed
Update scalajs-js-envs to 1.4.0
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 ```
1 parent f25484b commit 134273d

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ lazy val `scalajs-env-jsdom-nodejs`: Project = project.in(file("jsdom-nodejs-env
6969
commonSettings,
7070

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

7575
"com.novocode" % "junit-interface" % "0.11" % "test",
76-
"org.scala-js" %% "scalajs-js-envs-test-kit" % scalaJSVersion % "test"
76+
"org.scala-js" %% "scalajs-js-envs-test-kit" % MetaBuildShared.scalajsJsEnvsVersion % "test"
7777
)
7878
)
7979

project/MetaBuildShared.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// this file is shared between the build and the meta-build
2+
// the file is located in project/ and there is a system link
3+
// to it in project/project/
4+
object MetaBuildShared {
5+
val scalajsJsEnvsVersion = "1.4.0"
6+
}

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.7")
33
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.0.15")
44
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
55

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

88
unmanagedSourceDirectories in Compile +=
99
baseDirectory.value.getParentFile / "jsdom-nodejs-env/src/main/scala"

project/project/MetaBuildShared.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../MetaBuildShared.scala

0 commit comments

Comments
 (0)