Skip to content

Commit

Permalink
ENG-5279 feat(graphql,sdk): remove api dependencies from sdk and grap…
Browse files Browse the repository at this point in the history
…hql (#1009)

- Removes the inclusion of the `0xintuition/api` package as dependency
in `graphql` and `sdk` packages
- Ran a `pnpm install` afterward so the `pnpm-lock.yaml` change reflects
this
- This resolves installation issues for apps outside of the monorepo
- Note: Leaving it in the `template` and `data-populator` for now
because it's more integrated as part of certain flows. We can remove
these gradually -- don't want to disrupt any working flows at the
moment.
  • Loading branch information
jonathanprozzi authored Jan 2, 2025
1 parent 604babf commit 3fe76f9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
3 changes: 1 addition & 2 deletions packages/graphql/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@0xintuition/graphql",
"description": "GraphQL",
"version": "0.3.0",
"version": "0.4.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -41,7 +41,6 @@
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"@0xintuition/api": "workspace:^",
"@graphql-codegen/typescript-document-nodes": "^4.0.11",
"@tanstack/react-query": "^5.32.0",
"graphql": "^16.9.0",
Expand Down
6 changes: 2 additions & 4 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@0xintuition/sdk",
"version": "0.2.1",
"version": "0.3.1",
"description": "Backend SDK",
"main": "src/index.js",
"exports": {
Expand All @@ -21,9 +21,7 @@
"url": "https://github.com/0xIntuition/intuition-ts",
"directory": "packages/sdk"
},
"dependencies": {
"@0xintuition/api": "workspace:^"
},
"dependencies": {},
"devDependencies": {
"typescript": "^5.4.5",
"vite": "^5.2.11",
Expand Down
4 changes: 1 addition & 3 deletions packages/sdk/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import { IdentitiesService } from '@0xintuition/api'

console.log('test', IdentitiesService)
console.log('test')
10 changes: 2 additions & 8 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 3fe76f9

Please sign in to comment.