diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5a3508279e59..40ec37515a2e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -2,3 +2,4 @@ # by one of the officers responsible of maintaining it /library/ @scala/stdlib-officers /library-aux/ @scala/stdlib-officers +/library-js/ @scala/stdlib-officers diff --git a/project/Build.scala b/project/Build.scala index f19b21a533f5..e04f334c32b7 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -1429,6 +1429,13 @@ object Build { settings( libraryDependencies += ("org.scala-js" %% "scalajs-library" % scalaJSVersion).cross(CrossVersion.for3Use2_13), + // NOTE: Until 3.8.0, we pin the source files to be used by the scala3 library + Compile / sources := (`scala3-library-bootstrapped` / Compile / sources).value, + Compile / sources ++= Seq( + file(s"${baseDirectory.value}/src/scala/scalajs/js/internal/UnitOps.scala"), + file(s"${baseDirectory.value}/src/scala/scalajs/runtime/AnonFunctionXXL.scala"), + ), + // NOTE: We keep this so that the mappings are correct when packaging Compile / unmanagedSourceDirectories ++= (`scala3-library-bootstrapped` / Compile / unmanagedSourceDirectories).value,