Skip to content

Commit

Permalink
fix(graphql): put graphql-yoga back into prod deps to reexport its ty…
Browse files Browse the repository at this point in the history
…pes (#109)
  • Loading branch information
cyco130 authored Dec 30, 2023
1 parent 7584a22 commit 4987be3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/middleware/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
"@hattip/compose": "workspace:*",
"@hattip/core": "workspace:*",
"dset": "^3.1.2",
"graphql-yoga": "^4.0.4",
"tslib": "^2.6.2",
"urlpattern-polyfill": "^9.0.0"
},
"devDependencies": {
"@graphql-yoga/subscription": "^4.0.0",
"graphql-yoga": "^4.0.4",
"@cyco130/eslint-config": "^3.3.2",
"@hattip/polyfills": "workspace:*",
"@types/node": "^20.5.7",
Expand Down
4 changes: 4 additions & 0 deletions packages/middleware/graphql/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export default defineConfig([
target: "node14",
shims: false,
dts: true,
// We wan't to bundle graphql-yoga so that we can use the
// global fetch instead of @whatwg-node/fetch. But we still
// want graphql-yoga in the dependencies to be able to resolve
// the types.
noExternal: ["graphql-yoga"],
esbuildPlugins: [
{
Expand Down
35 changes: 20 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4987be3

Please sign in to comment.