Skip to content

Commit 5b13f30

Browse files
authored
refactor: organize dirs by layer (#805)
1 parent 4f6d3a8 commit 5b13f30

File tree

109 files changed

+127
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+127
-127
lines changed

src/cli/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { Command } from '@molt/command'
44
import * as Path from 'node:path'
55
import { z } from 'zod'
6-
import { generateFiles } from '../generator/files.js'
6+
import { generateFiles } from '../layers/2_generator/files.js'
77

88
const args = Command.create().description(`Generate a type safe GraphQL client.`)
99
.parameter(`schema`, z.string().min(1).describe(`File path to where your GraphQL schema is.`))

src/entrypoints/alpha/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from '../../client/client.js'
2-
export { create as createSelect, select } from '../../select.js'
1+
export * from '../../layers/4_client/client.js'
2+
export { create as createSelect, select } from '../../layers/4_select/select.js'

src/entrypoints/alpha/scalars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from '../../Schema/Hybrid/types/Scalar/Scalar.js'
1+
export * from '../../layers/1_Schema/Hybrid/types/Scalar/Scalar.js'

src/entrypoints/alpha/schema.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export { ResultSet } from '../../client/ResultSet/__.js'
2-
export { SelectionSet } from '../../client/SelectionSet/__.js'
3-
export * from '../../Schema/__.js'
1+
export * from '../../layers/1_Schema/__.js'
2+
export { ResultSet } from '../../layers/3_IO/ResultSet/__.js'
3+
export { SelectionSet } from '../../layers/3_IO/SelectionSet/__.js'

src/entrypoints/main.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { ClientError } from '../raw/classes/ClientError.js'
1+
import { ClientError } from '../legacy/classes/ClientError.js'
22
import {
33
type BatchRequestDocument,
44
type BatchRequestsExtendedOptions,
55
type BatchRequestsOptions,
6-
} from '../raw/functions/batchRequests.js'
7-
import type { RequestExtendedOptions } from '../raw/functions/request.js'
8-
import { request } from '../raw/functions/request.js'
9-
import type { GraphQLResponse, RequestMiddleware, ResponseMiddleware } from '../raw/helpers/types.js'
10-
import type { RawRequestOptions, RequestDocument, RequestOptions, Variables } from '../raw/helpers/types.js'
11-
export { GraphQLClient } from '../raw/classes/GraphQLClient.js'
12-
export { batchRequests } from '../raw/functions/batchRequests.js'
13-
export { gql } from '../raw/functions/gql.js'
14-
export { rawRequest } from '../raw/functions/rawRequest.js'
15-
export { analyzeDocument } from '../raw/helpers/analyzeDocument.js'
6+
} from '../legacy/functions/batchRequests.js'
7+
import type { RequestExtendedOptions } from '../legacy/functions/request.js'
8+
import { request } from '../legacy/functions/request.js'
9+
import type { GraphQLResponse, RequestMiddleware, ResponseMiddleware } from '../legacy/helpers/types.js'
10+
import type { RawRequestOptions, RequestDocument, RequestOptions, Variables } from '../legacy/helpers/types.js'
11+
export { GraphQLClient } from '../legacy/classes/GraphQLClient.js'
12+
export { batchRequests } from '../legacy/functions/batchRequests.js'
13+
export { gql } from '../legacy/functions/gql.js'
14+
export { rawRequest } from '../legacy/functions/rawRequest.js'
15+
export { analyzeDocument } from '../legacy/helpers/analyzeDocument.js'
1616
export {
1717
BatchRequestDocument,
1818
BatchRequestsExtendedOptions,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)