From ba312598b121d91ff0a22c51870108e10f7a892d Mon Sep 17 00:00:00 2001 From: Tobias Roeser Date: Sat, 18 Nov 2023 20:42:22 +0100 Subject: [PATCH] Made some targets non-private This not only makes them accessible from the CLI, it also fixes an issue with Mill 0.11.{2-5}. See https://github.com/com-lihaoyi/mill/issues/2844 --- build.sc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sc b/build.sc index 9df587f..23d5d90 100644 --- a/build.sc +++ b/build.sc @@ -224,7 +224,7 @@ trait ScalaJsCliPublishModule extends PublishModule { finalPublishVersion() } -private def computePublishVersion(state: VcsState, simple: Boolean): String = +def computePublishVersion(state: VcsState, simple: Boolean): String = if (state.commitsSinceLastTag > 0) if (simple) { val versionOrEmpty = state.lastTag @@ -268,7 +268,7 @@ private def computePublishVersion(state: VcsState, simple: Boolean): String = .getOrElse(state.format()) .stripPrefix("v") -private def finalPublishVersion = { +def finalPublishVersion = { val isCI = System.getenv("CI") != null if (isCI) T.persistent {