Skip to content

Commit 9a2247f

Browse files
committed
Correctly configure the module name of bootstrapped JS artifacts.
In addition to remove the `-bootstrapped` suffix, we must also remove the `js` suffix.
1 parent 8ba1ea0 commit 9a2247f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

project/Build.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,11 @@ object Build {
289289
Some((packageBin in (`dotty-sbt-bridge`, Compile)).value)
290290
},
291291

292-
// Use the same name as the non-bootstrapped projects for the artifacts
293-
moduleName ~= { _.stripSuffix("-bootstrapped") },
292+
// Use the same name as the non-bootstrapped projects for the artifacts.
293+
// Remove the `js` suffix because JS artifacts are published using their special crossVersion.
294+
// The order of the two `stripSuffix`es is important, so that
295+
// dotty-library-bootstrappedjs becomes dotty-library.
296+
moduleName ~= { _.stripSuffix("js").stripSuffix("-bootstrapped") },
294297

295298
// Enforce that the only Scala 2 classfiles we unpickle come from scala-library
296299
/*

0 commit comments

Comments
 (0)