Skip to content

Commit c4e462f

Browse files
committed
chore: pin scala3-library flies for scalajs too
1 parent 7f27eaf commit c4e462f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
# by one of the officers responsible of maintaining it
33
/library/ @scala/stdlib-officers
44
/library-aux/ @scala/stdlib-officers
5+
/library-js/ @scala/stdlib-officers

project/Build.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,13 @@ object Build {
14291429
settings(
14301430
libraryDependencies +=
14311431
("org.scala-js" %% "scalajs-library" % scalaJSVersion).cross(CrossVersion.for3Use2_13),
1432+
// NOTE: Until 3.8.0, we pin the source files to be used by the scala3 library
1433+
Compile / sources := (`scala3-library-bootstrapped` / Compile / sources).value,
1434+
Compile / sources ++= Seq(
1435+
file(s"${baseDirectory.value}/src/scala/scalajs/js/internal/UnitOps.scala"),
1436+
file(s"${baseDirectory.value}/src/scala/scalajs/runtime/AnonFunctionXXL.scala"),
1437+
),
1438+
// NOTE: We keep this so that the mappings are correct when packaging
14321439
Compile / unmanagedSourceDirectories ++=
14331440
(`scala3-library-bootstrapped` / Compile / unmanagedSourceDirectories).value,
14341441

0 commit comments

Comments
 (0)