Skip to content

Commit

Permalink
Fix RPC packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed Jul 21, 2024
1 parent cefcc39 commit 360e228
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-ligers-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@deroll/rpc": patch
---

fix RPC packaging
5 changes: 4 additions & 1 deletion packages/rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
}
},
"bin": "./dist/cli.js",
"files": [
"dist/**"
],
"scripts": {
"build": "run-s codegen compile",
"codegen": "graphql-codegen",
Expand All @@ -39,6 +42,7 @@
"body-parser": "^1.20.2",
"commander": "^12.1.0",
"express": "^4.19.2",
"graphql": "^16.9.0",
"graphql-filter-fragment": "^1.0.5",
"json-rpc-2.0": "^1.7.0"
},
Expand All @@ -49,7 +53,6 @@
"@open-rpc/generator": "^1.22.3",
"@types/body-parser": "^1.19.5",
"@types/express": "^4.17.21",
"graphql": "^16.9.0",
"npm-run-all": "^4.1.5",
"ts-node": "^10.9.2",
"tsup": "^8.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/rpc/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApolloClient, InMemoryCache } from "@apollo/client";
import { ApolloClient, InMemoryCache } from "@apollo/client/core";
import filterGraphQlFragment from "graphql-filter-fragment";
import { JSONRPCServer, TypedJSONRPCServer } from "json-rpc-2.0";
import { Methods } from "./methods";
Expand Down
6 changes: 3 additions & 3 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 360e228

Please sign in to comment.