Skip to content

Commit 3975026

Browse files
authored
Fix type-only imports to be so (#93)
* Remove imports from graphile-config/graphile-build * Add more peer deps
1 parent eeeeed1 commit 3975026

3 files changed

Lines changed: 18 additions & 8 deletions

File tree

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
},
3838
"homepage": "https://github.com/graphile/pg-aggregates#readme",
3939
"peerDependencies": {
40-
"graphile-build": "^5.0.0-rc.5",
41-
"graphile-build-pg": "^5.0.0-rc.7",
40+
"graphile-build": "^5.0.0",
41+
"graphile-build-pg": "^5.0.0",
42+
"graphile-config": "^1.0.0",
4243
"graphql": "^16.1.0-experimental-stream-defer.6"
4344
},
4445
"peerDependenciesMeta": {
@@ -48,6 +49,9 @@
4849
"graphile-build-pg": {
4950
"optional": true
5051
},
52+
"graphile-config": {
53+
"optional": true
54+
},
5155
"graphql": {
5256
"optional": true
5357
}

src/AggregatesSmartTagsPlugin.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import "graphile-config";
1+
import type {} from "graphile-config";
22

3-
import { gatherConfig } from "graphile-build";
43
import type { PgSmartTagsDict } from "graphile-build-pg/pg-introspection";
54

65
// @ts-ignore
@@ -28,7 +27,7 @@ export const PgAggregatesSmartTagsPlugin: GraphileConfig.Plugin = {
2827
],
2928
provides: ["smart-tags"],
3029

31-
gather: gatherConfig({
30+
gather: {
3231
namespace: "pgV4AggregatesSmartTags",
3332
initialCache() {
3433
return EMPTY_OBJECT;
@@ -45,7 +44,11 @@ export const PgAggregatesSmartTagsPlugin: GraphileConfig.Plugin = {
4544
}
4645
},
4746
},
48-
}),
47+
} satisfies GraphileConfig.PluginGatherConfig<
48+
"pgV4AggregatesSmartTags",
49+
typeof EMPTY_OBJECT,
50+
typeof EMPTY_OBJECT
51+
>,
4952
};
5053

5154
function processTags(

yarn.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,14 +629,17 @@ __metadata:
629629
typescript: "npm:^5.0.4"
630630
typescript-eslint: "npm:^8.36.0"
631631
peerDependencies:
632-
graphile-build: ^5.0.0-rc.5
633-
graphile-build-pg: ^5.0.0-rc.7
632+
graphile-build: ^5.0.0
633+
graphile-build-pg: ^5.0.0
634+
graphile-config: ^1.0.0
634635
graphql: ^16.1.0-experimental-stream-defer.6
635636
peerDependenciesMeta:
636637
graphile-build:
637638
optional: true
638639
graphile-build-pg:
639640
optional: true
641+
graphile-config:
642+
optional: true
640643
graphql:
641644
optional: true
642645
languageName: unknown

0 commit comments

Comments
 (0)