Skip to content

Commit

Permalink
Fix Initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherDavenport committed Sep 13, 2022
1 parent 2e93ff5 commit 5c4e560
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.sbt
Expand Up @@ -44,7 +44,7 @@ ThisBuild / githubWorkflowPublishPreamble ++= Seq(

ThisBuild / githubWorkflowPublish ++= Seq(
WorkflowStep.Sbt(
List("npmPackageNpmrc", "npmPackagePublish"),
List("coreJS/npmPackageNpmrc", "npmPackagePublish"),
name = Some("Publish artifacts to npm"),
env = Map(
"NPM_TOKEN" -> "${{ secrets.NPM_TOKEN }}" // https://docs.npmjs.com/using-private-packages-in-a-ci-cd-workflow#set-the-token-as-an-environment-variable-on-the-cicd-server
Expand All @@ -53,6 +53,11 @@ ThisBuild / githubWorkflowPublish ++= Seq(
)
)

ThisBuild / jsEnv := {
import org.scalajs.jsenv.nodejs.NodeJSEnv
new NodeJSEnv(NodeJSEnv.Config().withArgs("date" :: Nil))
}

val catsV = "2.7.0"
val catsEffectV = "3.3.12"
val fs2V = "3.2.7"
Expand Down Expand Up @@ -96,6 +101,7 @@ lazy val core = crossProject(JVMPlatform, JSPlatform)
"shell",
),
npmPackageBinaryEnable := true,
scalaJSUseMainModuleInitializer := true,

npmPackageStage := org.scalajs.sbtplugin.Stage.FullOpt,
npmPackageAdditionalNpmConfig := {
Expand Down

0 comments on commit 5c4e560

Please sign in to comment.