From edce1c7869928dafb2a99be9a37f72bc52cf9234 Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Tue, 29 Mar 2022 16:03:27 -0700 Subject: [PATCH] rename graphql dir to types --- .../assets/__generated__/AssetsQuery.ts | 2 +- .../__generated__/ProposalsQuery.ts | 2 +- .../markets/__generated__/MarketsQuery.ts | 2 +- .../id/__generated__/PartyAssetsQuery.ts | 2 +- .../validators/__generated__/NodesQuery.ts | 2 +- .../pages/markets/__generated__/Market.ts | 2 +- .../src/__generated__/DealTicketQuery.ts | 2 +- .../src/__generated__/OrderEvent.ts | 2 +- libs/deal-ticket/src/deal-ticket-manager.tsx | 2 +- libs/graphql/README.md | 7 ------ libs/graphql/package.json | 4 ---- .../src/lib/__generated__/MarketDataFields.ts | 2 +- .../src/lib/__generated__/MarketDataSub.ts | 2 +- .../src/lib/__generated__/Markets.ts | 2 +- .../src/__generated__/OrderFields.ts | 2 +- libs/order-list/src/__generated__/OrderSub.ts | 2 +- libs/order-list/src/__generated__/Orders.ts | 2 +- libs/order-list/src/order-list.spec.tsx | 2 +- libs/order-list/src/order-list.tsx | 2 +- libs/order-list/src/use-orders.spec.tsx | 2 +- .../src/lib/__generated__/PositionDetails.ts | 2 +- .../lib/__generated__/PositionSubscribe.ts | 2 +- .../src/lib/__generated__/Positions.ts | 2 +- .../src/lib/positions-table.spec.tsx | 2 +- libs/positions/src/lib/positions-table.tsx | 2 +- libs/{graphql => types}/.babelrc | 0 libs/{graphql => types}/.eslintrc.json | 0 libs/types/README.md | 7 ++++++ libs/{graphql => types}/apollo.config.js | 0 libs/{graphql => types}/jest.config.js | 4 ++-- libs/types/package.json | 4 ++++ libs/{graphql => types}/project.json | 22 +++++++++---------- .../src/__generated__/globalTypes.ts | 0 libs/{graphql => types}/src/index.ts | 0 libs/{graphql => types}/tsconfig.json | 0 libs/{graphql => types}/tsconfig.lib.json | 0 libs/{graphql => types}/tsconfig.spec.json | 0 tsconfig.base.json | 2 +- workspace.json | 2 +- 39 files changed, 49 insertions(+), 49 deletions(-) delete mode 100644 libs/graphql/README.md delete mode 100644 libs/graphql/package.json rename libs/{graphql => types}/.babelrc (100%) rename libs/{graphql => types}/.eslintrc.json (100%) create mode 100644 libs/types/README.md rename libs/{graphql => types}/apollo.config.js (100%) rename libs/{graphql => types}/jest.config.js (67%) create mode 100644 libs/types/package.json rename libs/{graphql => types}/project.json (61%) rename libs/{graphql => types}/src/__generated__/globalTypes.ts (100%) rename libs/{graphql => types}/src/index.ts (100%) rename libs/{graphql => types}/tsconfig.json (100%) rename libs/{graphql => types}/tsconfig.lib.json (100%) rename libs/{graphql => types}/tsconfig.spec.json (100%) diff --git a/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts b/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts index 554ee5c3f..1a610de95 100644 --- a/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts +++ b/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "./../../../../../../../libs/graphql/src/__generated__/globalTypes"; +import { AccountType } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: AssetsQuery diff --git a/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts b/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts index 95c1869fb..01beb9781 100644 --- a/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts +++ b/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { ProposalState, ProposalRejectionReason, VoteValue } from "./../../../../../../../libs/graphql/src/__generated__/globalTypes"; +import { ProposalState, ProposalRejectionReason, VoteValue } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: ProposalsQuery diff --git a/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts b/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts index d2d476668..a845cf55e 100644 --- a/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts +++ b/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketTradingMode, MarketState, AccountType, AuctionTrigger } from "./../../../../../../../libs/graphql/src/__generated__/globalTypes"; +import { MarketTradingMode, MarketState, AccountType, AuctionTrigger } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: MarketsQuery diff --git a/apps/explorer/src/app/routes/parties/id/__generated__/PartyAssetsQuery.ts b/apps/explorer/src/app/routes/parties/id/__generated__/PartyAssetsQuery.ts index fd88252b9..623bd276c 100644 --- a/apps/explorer/src/app/routes/parties/id/__generated__/PartyAssetsQuery.ts +++ b/apps/explorer/src/app/routes/parties/id/__generated__/PartyAssetsQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "./../../../../../../../../libs/graphql/src/__generated__/globalTypes"; +import { AccountType } from "./../../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: PartyAssetsQuery diff --git a/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts b/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts index 478c6f528..0df9fe0e1 100644 --- a/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts +++ b/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { NodeStatus } from "./../../../../../../../libs/graphql/src/__generated__/globalTypes"; +import { NodeStatus } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: NodesQuery diff --git a/apps/trading/pages/markets/__generated__/Market.ts b/apps/trading/pages/markets/__generated__/Market.ts index a862a3ce3..24f68b822 100644 --- a/apps/trading/pages/markets/__generated__/Market.ts +++ b/apps/trading/pages/markets/__generated__/Market.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketState, MarketTradingMode } from "./../../../../../libs/graphql/src/__generated__/globalTypes"; +import { MarketState, MarketTradingMode } from "./../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Market diff --git a/libs/deal-ticket/src/__generated__/DealTicketQuery.ts b/libs/deal-ticket/src/__generated__/DealTicketQuery.ts index 804923d09..8a18b4c53 100644 --- a/libs/deal-ticket/src/__generated__/DealTicketQuery.ts +++ b/libs/deal-ticket/src/__generated__/DealTicketQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketState, MarketTradingMode } from "./../../../graphql/src/__generated__/globalTypes"; +import { MarketState, MarketTradingMode } from "./../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: DealTicketQuery diff --git a/libs/deal-ticket/src/__generated__/OrderEvent.ts b/libs/deal-ticket/src/__generated__/OrderEvent.ts index 1ac9d2455..4922d70ab 100644 --- a/libs/deal-ticket/src/__generated__/OrderEvent.ts +++ b/libs/deal-ticket/src/__generated__/OrderEvent.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { BusEventType, OrderType, OrderStatus, OrderRejectionReason } from "./../../../graphql/src/__generated__/globalTypes"; +import { BusEventType, OrderType, OrderStatus, OrderRejectionReason } from "./../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: OrderEvent diff --git a/libs/deal-ticket/src/deal-ticket-manager.tsx b/libs/deal-ticket/src/deal-ticket-manager.tsx index 0e2a0c86b..837cb15ce 100644 --- a/libs/deal-ticket/src/deal-ticket-manager.tsx +++ b/libs/deal-ticket/src/deal-ticket-manager.tsx @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react'; import { Dialog, Intent } from '@vegaprotocol/ui-toolkit'; -import { OrderStatus } from '@vegaprotocol/graphql'; +import { OrderStatus } from '@vegaprotocol/types'; import { VegaTxStatus } from '@vegaprotocol/wallet'; import { DealTicket } from './deal-ticket'; import { useOrderSubmit } from './use-order-submit'; diff --git a/libs/graphql/README.md b/libs/graphql/README.md deleted file mode 100644 index 6342967d9..000000000 --- a/libs/graphql/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# graphql - -This library was generated with [Nx](https://nx.dev). - -## Running unit tests - -Run `nx test graphql` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/graphql/package.json b/libs/graphql/package.json deleted file mode 100644 index d2fdb2ce1..000000000 --- a/libs/graphql/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "@vegaprotocol/graphql", - "version": "0.0.1" -} diff --git a/libs/market-list/src/lib/__generated__/MarketDataFields.ts b/libs/market-list/src/lib/__generated__/MarketDataFields.ts index df9204e68..9a4a3d1e9 100644 --- a/libs/market-list/src/lib/__generated__/MarketDataFields.ts +++ b/libs/market-list/src/lib/__generated__/MarketDataFields.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketState, MarketTradingMode } from "./../../../../graphql/src/__generated__/globalTypes"; +import { MarketState, MarketTradingMode } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL fragment: MarketDataFields diff --git a/libs/market-list/src/lib/__generated__/MarketDataSub.ts b/libs/market-list/src/lib/__generated__/MarketDataSub.ts index 80d1783e6..91b6972b8 100644 --- a/libs/market-list/src/lib/__generated__/MarketDataSub.ts +++ b/libs/market-list/src/lib/__generated__/MarketDataSub.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketState, MarketTradingMode } from "./../../../../graphql/src/__generated__/globalTypes"; +import { MarketState, MarketTradingMode } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: MarketDataSub diff --git a/libs/market-list/src/lib/__generated__/Markets.ts b/libs/market-list/src/lib/__generated__/Markets.ts index 71751d9ee..6f59a34a9 100644 --- a/libs/market-list/src/lib/__generated__/Markets.ts +++ b/libs/market-list/src/lib/__generated__/Markets.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketState, MarketTradingMode } from "./../../../../graphql/src/__generated__/globalTypes"; +import { MarketState, MarketTradingMode } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Markets diff --git a/libs/order-list/src/__generated__/OrderFields.ts b/libs/order-list/src/__generated__/OrderFields.ts index 194e5f380..2ea07eae8 100644 --- a/libs/order-list/src/__generated__/OrderFields.ts +++ b/libs/order-list/src/__generated__/OrderFields.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { OrderType, Side, OrderStatus, OrderRejectionReason, OrderTimeInForce } from "./../../../graphql/src/__generated__/globalTypes"; +import { OrderType, Side, OrderStatus, OrderRejectionReason, OrderTimeInForce } from "./../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL fragment: OrderFields diff --git a/libs/order-list/src/__generated__/OrderSub.ts b/libs/order-list/src/__generated__/OrderSub.ts index 127d3f57a..c6cc6a03c 100644 --- a/libs/order-list/src/__generated__/OrderSub.ts +++ b/libs/order-list/src/__generated__/OrderSub.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { OrderType, Side, OrderStatus, OrderRejectionReason, OrderTimeInForce } from "./../../../graphql/src/__generated__/globalTypes"; +import { OrderType, Side, OrderStatus, OrderRejectionReason, OrderTimeInForce } from "./../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: OrderSub diff --git a/libs/order-list/src/__generated__/Orders.ts b/libs/order-list/src/__generated__/Orders.ts index d08bdde03..e75bc76f5 100644 --- a/libs/order-list/src/__generated__/Orders.ts +++ b/libs/order-list/src/__generated__/Orders.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { OrderType, Side, OrderStatus, OrderRejectionReason, OrderTimeInForce } from "./../../../graphql/src/__generated__/globalTypes"; +import { OrderType, Side, OrderStatus, OrderRejectionReason, OrderTimeInForce } from "./../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Orders diff --git a/libs/order-list/src/order-list.spec.tsx b/libs/order-list/src/order-list.spec.tsx index 51d0622b0..8dc9e57dc 100644 --- a/libs/order-list/src/order-list.spec.tsx +++ b/libs/order-list/src/order-list.spec.tsx @@ -7,7 +7,7 @@ import { OrderType, Side, OrderRejectionReason, -} from '@vegaprotocol/graphql'; +} from '@vegaprotocol/types'; import { OrderList } from './order-list'; test('No orders message shown', async () => { diff --git a/libs/order-list/src/order-list.tsx b/libs/order-list/src/order-list.tsx index d007aab6a..6ea026ca9 100644 --- a/libs/order-list/src/order-list.tsx +++ b/libs/order-list/src/order-list.tsx @@ -1,4 +1,4 @@ -import { OrderTimeInForce, OrderStatus, Side } from '@vegaprotocol/graphql'; +import { OrderTimeInForce, OrderStatus, Side } from '@vegaprotocol/types'; import { Orders_party_orders } from './__generated__/Orders'; import { formatNumber, diff --git a/libs/order-list/src/use-orders.spec.tsx b/libs/order-list/src/use-orders.spec.tsx index e8f08a2cc..bb7659ae8 100644 --- a/libs/order-list/src/use-orders.spec.tsx +++ b/libs/order-list/src/use-orders.spec.tsx @@ -8,7 +8,7 @@ import { Side, OrderType, OrderTimeInForce, -} from '@vegaprotocol/graphql'; +} from '@vegaprotocol/types'; import { VegaKeyExtended, VegaWalletContext, diff --git a/libs/positions/src/lib/__generated__/PositionDetails.ts b/libs/positions/src/lib/__generated__/PositionDetails.ts index d0acbf457..c2db215e2 100644 --- a/libs/positions/src/lib/__generated__/PositionDetails.ts +++ b/libs/positions/src/lib/__generated__/PositionDetails.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketTradingMode } from "./../../../../graphql/src/__generated__/globalTypes"; +import { MarketTradingMode } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL fragment: PositionDetails diff --git a/libs/positions/src/lib/__generated__/PositionSubscribe.ts b/libs/positions/src/lib/__generated__/PositionSubscribe.ts index 7a4b454dd..ef93c2449 100644 --- a/libs/positions/src/lib/__generated__/PositionSubscribe.ts +++ b/libs/positions/src/lib/__generated__/PositionSubscribe.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketTradingMode } from "./../../../../graphql/src/__generated__/globalTypes"; +import { MarketTradingMode } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: PositionSubscribe diff --git a/libs/positions/src/lib/__generated__/Positions.ts b/libs/positions/src/lib/__generated__/Positions.ts index 89bb420ff..c1c1e32c0 100644 --- a/libs/positions/src/lib/__generated__/Positions.ts +++ b/libs/positions/src/lib/__generated__/Positions.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketTradingMode } from "./../../../../graphql/src/__generated__/globalTypes"; +import { MarketTradingMode } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Positions diff --git a/libs/positions/src/lib/positions-table.spec.tsx b/libs/positions/src/lib/positions-table.spec.tsx index 198dbe028..022895e29 100644 --- a/libs/positions/src/lib/positions-table.spec.tsx +++ b/libs/positions/src/lib/positions-table.spec.tsx @@ -1,7 +1,7 @@ import { act, render, screen } from '@testing-library/react'; import PositionsTable from './positions-table'; import { Positions_party_positions } from './__generated__/Positions'; -import { MarketTradingMode } from '@vegaprotocol/graphql'; +import { MarketTradingMode } from '@vegaprotocol/types'; const singleRow: Positions_party_positions = { realisedPNL: '5', diff --git a/libs/positions/src/lib/positions-table.tsx b/libs/positions/src/lib/positions-table.tsx index 843a6be24..d1dc1ce67 100644 --- a/libs/positions/src/lib/positions-table.tsx +++ b/libs/positions/src/lib/positions-table.tsx @@ -11,7 +11,7 @@ import { AgGridColumn } from 'ag-grid-react'; import type { AgGridReact } from 'ag-grid-react'; import compact from 'lodash/compact'; import { Positions_party_positions } from './__generated__/Positions'; -import { MarketTradingMode } from '@vegaprotocol/graphql'; +import { MarketTradingMode } from '@vegaprotocol/types'; interface PositionsTableProps { data: Positions_party_positions[] | null; diff --git a/libs/graphql/.babelrc b/libs/types/.babelrc similarity index 100% rename from libs/graphql/.babelrc rename to libs/types/.babelrc diff --git a/libs/graphql/.eslintrc.json b/libs/types/.eslintrc.json similarity index 100% rename from libs/graphql/.eslintrc.json rename to libs/types/.eslintrc.json diff --git a/libs/types/README.md b/libs/types/README.md new file mode 100644 index 000000000..5e6821bec --- /dev/null +++ b/libs/types/README.md @@ -0,0 +1,7 @@ +# types + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test types` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/graphql/apollo.config.js b/libs/types/apollo.config.js similarity index 100% rename from libs/graphql/apollo.config.js rename to libs/types/apollo.config.js diff --git a/libs/graphql/jest.config.js b/libs/types/jest.config.js similarity index 67% rename from libs/graphql/jest.config.js rename to libs/types/jest.config.js index 51bb43cdc..1ce0ebb45 100644 --- a/libs/graphql/jest.config.js +++ b/libs/types/jest.config.js @@ -1,9 +1,9 @@ module.exports = { - displayName: 'graphql', + displayName: 'types', preset: '../../jest.preset.js', transform: { '^.+\\.[tj]sx?$': 'babel-jest', }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: '../../coverage/libs/graphql', + coverageDirectory: '../../coverage/libs/types', }; diff --git a/libs/types/package.json b/libs/types/package.json new file mode 100644 index 000000000..c42b23b71 --- /dev/null +++ b/libs/types/package.json @@ -0,0 +1,4 @@ +{ + "name": "@vegaprotocol/types", + "version": "0.0.1" +} diff --git a/libs/graphql/project.json b/libs/types/project.json similarity index 61% rename from libs/graphql/project.json rename to libs/types/project.json index 25358bd14..cd4583b3d 100644 --- a/libs/graphql/project.json +++ b/libs/types/project.json @@ -1,6 +1,6 @@ { - "root": "libs/graphql", - "sourceRoot": "libs/graphql/src", + "root": "libs/types", + "sourceRoot": "libs/types/src", "projectType": "library", "tags": [], "targets": { @@ -8,16 +8,16 @@ "executor": "@nrwl/web:rollup", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/libs/graphql", - "tsConfig": "libs/graphql/tsconfig.lib.json", - "project": "libs/graphql/package.json", - "entryFile": "libs/graphql/src/index.ts", + "outputPath": "dist/libs/types", + "tsConfig": "libs/types/tsconfig.lib.json", + "project": "libs/types/package.json", + "entryFile": "libs/types/src/index.ts", "external": ["react/jsx-runtime"], "rollupConfig": "@nrwl/react/plugins/bundle-rollup", "compiler": "babel", "assets": [ { - "glob": "libs/graphql/README.md", + "glob": "libs/types/README.md", "input": ".", "output": "." } @@ -28,14 +28,14 @@ "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/graphql/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": ["libs/types/**/*.{ts,tsx,js,jsx}"] } }, "test": { "executor": "@nrwl/jest:jest", - "outputs": ["coverage/libs/graphql"], + "outputs": ["coverage/libs/types"], "options": { - "jestConfig": "libs/graphql/jest.config.js", + "jestConfig": "libs/types/jest.config.js", "passWithNoTests": true } }, @@ -44,7 +44,7 @@ "options": { "commands": [ { - "command": "npx apollo client:codegen --config=libs/graphql/apollo.config.js --target=typescript --globalTypesFile=libs/graphql/src/__generated__/globalTypes.ts" + "command": "npx apollo client:codegen --config=libs/types/apollo.config.js --target=typescript --globalTypesFile=libs/types/src/__generated__/globalTypes.ts" } ] } diff --git a/libs/graphql/src/__generated__/globalTypes.ts b/libs/types/src/__generated__/globalTypes.ts similarity index 100% rename from libs/graphql/src/__generated__/globalTypes.ts rename to libs/types/src/__generated__/globalTypes.ts diff --git a/libs/graphql/src/index.ts b/libs/types/src/index.ts similarity index 100% rename from libs/graphql/src/index.ts rename to libs/types/src/index.ts diff --git a/libs/graphql/tsconfig.json b/libs/types/tsconfig.json similarity index 100% rename from libs/graphql/tsconfig.json rename to libs/types/tsconfig.json diff --git a/libs/graphql/tsconfig.lib.json b/libs/types/tsconfig.lib.json similarity index 100% rename from libs/graphql/tsconfig.lib.json rename to libs/types/tsconfig.lib.json diff --git a/libs/graphql/tsconfig.spec.json b/libs/types/tsconfig.spec.json similarity index 100% rename from libs/graphql/tsconfig.spec.json rename to libs/types/tsconfig.spec.json diff --git a/tsconfig.base.json b/tsconfig.base.json index 90f9d8d30..cef48f937 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -16,7 +16,6 @@ "baseUrl": ".", "paths": { "@vegaprotocol/deal-ticket": ["libs/deal-ticket/src/index.ts"], - "@vegaprotocol/graphql": ["libs/graphql/src/index.ts"], "@vegaprotocol/market-list": ["libs/market-list/src/index.ts"], "@vegaprotocol/network-stats": ["libs/network-stats/src/index.ts"], "@vegaprotocol/order-list": ["libs/order-list/src/index.ts"], @@ -25,6 +24,7 @@ "@vegaprotocol/tailwindcss-config": [ "libs/tailwindcss-config/src/index.js" ], + "@vegaprotocol/types": ["libs/types/src/index.ts"], "@vegaprotocol/ui-toolkit": ["libs/ui-toolkit/src/index.ts"], "@vegaprotocol/wallet": ["libs/wallet/src/index.ts"], "@vegaprotocol/web3": ["libs/web3/src/index.ts"] diff --git a/workspace.json b/workspace.json index 3410110b8..4579869a4 100644 --- a/workspace.json +++ b/workspace.json @@ -4,7 +4,6 @@ "deal-ticket": "libs/deal-ticket", "explorer": "apps/explorer", "explorer-e2e": "apps/explorer-e2e", - "graphql": "libs/graphql", "market-list": "libs/market-list", "network-stats": "libs/network-stats", "order-list": "libs/order-list", @@ -15,6 +14,7 @@ "tailwindcss-config": "libs/tailwindcss-config", "trading": "apps/trading", "trading-e2e": "apps/trading-e2e", + "types": "libs/types", "ui-toolkit": "libs/ui-toolkit", "wallet": "libs/wallet", "web3": "libs/web3"