Skip to content

Commit 761c274

Browse files
committed
refactor(server): remove backward-compat schema.ts re-export
- Delete src/schema.ts (was just re-exporting from graphile-schema) - Remove export * from './schema' in index.ts - Remove graphile-schema dep from server (no longer needed) - Update server-test to import buildSchemaSDL from graphile-schema directly - Remove src/schema.ts from tsconfig excludes
1 parent c519f05 commit 761c274

8 files changed

Lines changed: 12 additions & 18 deletions

File tree

graphql/server-test/__tests__/schema-snapshot.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424

2525
import path from 'path';
26-
import { buildSchemaSDL } from '@constructive-io/graphql-server';
26+
import { buildSchemaSDL } from 'graphile-schema';
2727
import { getConnections, seed } from '../src';
2828

2929
jest.setTimeout(60000);

graphql/server-test/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"@constructive-io/graphql-types": "workspace:^",
4141
"@pgpmjs/types": "workspace:^",
4242
"express": "^5.2.1",
43+
"graphile-schema": "workspace:^",
4344
"graphql": "15.10.1",
4445
"pg": "^8.17.1",
4546
"pg-cache": "workspace:^",

graphql/server/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"graphile-build-pg": "^5.0.0-rc.3",
6060
"graphile-cache": "workspace:^",
6161
"graphile-config": "1.0.0-rc.3",
62-
"graphile-schema": "workspace:^",
6362
"graphile-settings": "workspace:^",
6463
"graphql": "^16.9.0",
6564
"graphql-upload": "^13.0.0",

graphql/server/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export * from './server';
2-
export * from './schema';
32

43
// Export options module - types, defaults, type guards, and utility functions
54
export * from './options';

graphql/server/src/schema.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

graphql/server/tsconfig.esm.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"**/*.spec.*",
1414
"**/*.test.*",
1515
"src/plugins/**/*",
16-
"src/schema.ts",
1716
"src/scripts/**/*",
1817
"src/middleware/gql.ts"
1918
]

graphql/server/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"**/*.spec.*",
1414
"**/*.test.*",
1515
"src/plugins/**/*",
16-
"src/schema.ts",
1716
"src/scripts/**/*",
1817
"src/middleware/gql.ts"
1918
]

pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)