Skip to content

Commit

Permalink
Merge pull request #11 from armanbilge/patch-1
Browse files Browse the repository at this point in the history
Use `.jsEnablePlugins(NpmPackagePlugin)`
  • Loading branch information
valencik committed Nov 20, 2021
2 parents 26d2786 + ace69f5 commit 265372d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ lazy val `curly` = project.in(file("."))
// import .util.JSON._
lazy val core = crossProject(JVMPlatform, JSPlatform)
.crossType(CrossType.Pure)
.enablePlugins(NpmPackagePlugin)
.in(file("core"))
.jsEnablePlugins(NpmPackagePlugin)
.settings(
name := "curly4s",

Expand All @@ -75,6 +75,10 @@ lazy val core = crossProject(JVMPlatform, JSPlatform)
"org.typelevel" %%% "munit-cats-effect-3" % munitCatsEffectV % Test,
),

).jsSettings(
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule)},
scalaJSUseMainModuleInitializer := true,
scalaJSStage in Global := FullOptStage,
npmPackageAuthor := "Christopher Davenport",
npmPackageDescription := "Curl Command Line Parser which outputs http4s code",
npmPackageKeywords := Seq(
Expand All @@ -84,10 +88,6 @@ lazy val core = crossProject(JVMPlatform, JSPlatform)
),
npmPackageStage := Stage.FullOpt,
npmPackageBinaryEnable := true,
).jsSettings(
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule)},
scalaJSUseMainModuleInitializer := true,
scalaJSStage in Global := FullOptStage,
)

lazy val site = project.in(file("site"))
Expand Down

0 comments on commit 265372d

Please sign in to comment.