Skip to content

Commit 62def8b

Browse files
committed
fix: add @constructive-io/graphql-query dep to SDK packages + regenerate ORM code
PR #1023 changed codegen templates to import from @constructive-io/graphql-query/runtime instead of directly from @constructive-io/graphql-types and @0no-co/graphql.web. The SDK packages (constructive-cli, constructive-sdk, constructive-react, migrate-client) were missing @constructive-io/graphql-query as a dependency, causing TS2307 'Cannot find module' errors when building regenerated code. Fix: - Add @constructive-io/graphql-query: workspace:^ to all 4 SDK package.json - Regenerate all SDK ORM code with updated codegen templates
1 parent 434a578 commit 62def8b

31 files changed

Lines changed: 2754 additions & 7497 deletions

File tree

pnpm-lock.yaml

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

sdk/constructive-cli/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
],
4747
"dependencies": {
4848
"@0no-co/graphql.web": "^1.1.2",
49+
"@constructive-io/graphql-query": "workspace:^",
4950
"@constructive-io/graphql-types": "workspace:^",
5051
"appstash": "^0.7.0",
5152
"gql-ast": "workspace:^",

sdk/constructive-cli/src/admin/orm/client.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@
33
* @generated by @constructive-io/graphql-codegen
44
* DO NOT EDIT - changes will be overwritten
55
*/
6-
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7-
8-
export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6+
import type {
7+
GraphQLAdapter,
8+
GraphQLError,
9+
QueryResult,
10+
} from '@constructive-io/graphql-query/runtime';
11+
12+
export type {
13+
GraphQLAdapter,
14+
GraphQLError,
15+
QueryResult,
16+
} from '@constructive-io/graphql-query/runtime';
917

1018
/**
1119
* Default adapter that uses fetch for HTTP requests.

sdk/constructive-cli/src/admin/orm/query-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @generated by @constructive-io/graphql-codegen
44
* DO NOT EDIT - changes will be overwritten
55
*/
6-
import { parseType, print } from '@0no-co/graphql.web';
6+
import { parseType, print } from '@constructive-io/graphql-query/runtime';
77
import * as t from 'gql-ast';
88
import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql';
99

sdk/constructive-cli/src/auth/orm/client.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@
33
* @generated by @constructive-io/graphql-codegen
44
* DO NOT EDIT - changes will be overwritten
55
*/
6-
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7-
8-
export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6+
import type {
7+
GraphQLAdapter,
8+
GraphQLError,
9+
QueryResult,
10+
} from '@constructive-io/graphql-query/runtime';
11+
12+
export type {
13+
GraphQLAdapter,
14+
GraphQLError,
15+
QueryResult,
16+
} from '@constructive-io/graphql-query/runtime';
917

1018
/**
1119
* Default adapter that uses fetch for HTTP requests.

sdk/constructive-cli/src/auth/orm/query-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @generated by @constructive-io/graphql-codegen
44
* DO NOT EDIT - changes will be overwritten
55
*/
6-
import { parseType, print } from '@0no-co/graphql.web';
6+
import { parseType, print } from '@constructive-io/graphql-query/runtime';
77
import * as t from 'gql-ast';
88
import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql';
99

sdk/constructive-cli/src/objects/orm/client.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@
33
* @generated by @constructive-io/graphql-codegen
44
* DO NOT EDIT - changes will be overwritten
55
*/
6-
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7-
8-
export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6+
import type {
7+
GraphQLAdapter,
8+
GraphQLError,
9+
QueryResult,
10+
} from '@constructive-io/graphql-query/runtime';
11+
12+
export type {
13+
GraphQLAdapter,
14+
GraphQLError,
15+
QueryResult,
16+
} from '@constructive-io/graphql-query/runtime';
917

1018
/**
1119
* Default adapter that uses fetch for HTTP requests.

sdk/constructive-cli/src/objects/orm/query-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @generated by @constructive-io/graphql-codegen
44
* DO NOT EDIT - changes will be overwritten
55
*/
6-
import { parseType, print } from '@0no-co/graphql.web';
6+
import { parseType, print } from '@constructive-io/graphql-query/runtime';
77
import * as t from 'gql-ast';
88
import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql';
99

sdk/constructive-cli/src/public/orm/client.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@
33
* @generated by @constructive-io/graphql-codegen
44
* DO NOT EDIT - changes will be overwritten
55
*/
6-
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7-
8-
export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6+
import type {
7+
GraphQLAdapter,
8+
GraphQLError,
9+
QueryResult,
10+
} from '@constructive-io/graphql-query/runtime';
11+
12+
export type {
13+
GraphQLAdapter,
14+
GraphQLError,
15+
QueryResult,
16+
} from '@constructive-io/graphql-query/runtime';
917

1018
/**
1119
* Default adapter that uses fetch for HTTP requests.

sdk/constructive-cli/src/public/orm/query-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @generated by @constructive-io/graphql-codegen
44
* DO NOT EDIT - changes will be overwritten
55
*/
6-
import { parseType, print } from '@0no-co/graphql.web';
6+
import { parseType, print } from '@constructive-io/graphql-query/runtime';
77
import * as t from 'gql-ast';
88
import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql';
99

0 commit comments

Comments
 (0)