Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Fix example #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion example/build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
enablePlugins(ScalaJSBundlerPlugin)
useYarn := true

name := "react-apollo-scalajs-example"

Expand Down Expand Up @@ -38,7 +39,7 @@ val namespace = "com.apollographql.scalajs"
val graphQLScala = out / "graphql.scala"

Seq(
"apollo", "client:codegen", s"--queries=${((sourceDirectory in Compile).value / "graphql").getAbsolutePath}/*.graphql",
"npx", "apollo", "client:codegen", s"--queries=${((sourceDirectory in Compile).value / "graphql").getAbsolutePath}/*.graphql",
s"--localSchemaFile=${(baseDirectory.value / "schema.json").getAbsolutePath}",
"--target=scala",
s"--namespace=$namespace",
Expand Down
Loading