forked from Blazity/enterprise-commerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.graphqlrc.ts
20 lines (19 loc) · 812 Bytes
/
.graphqlrc.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { ApiType, shopifyApiProject } from "@shopify/api-codegen-preset"
export default {
schema: ["https://shopify.dev/storefront-graphql-direct-proxy/2024-01", "https://shopify.dev/admin-graphql-direct-proxy/2024-01"],
documents: ["./packages/core/**/*.{js,ts,jsx,tsx}"],
projects: {
default: shopifyApiProject({
apiType: ApiType.Storefront,
apiVersion: "2024-01",
documents: ["./packages/core/**/*.storefront.{js,ts,jsx,tsx}", "./packages/core/**/fragments/*.{js,ts,jsx,tsx}"],
outputDir: "./packages/core/platform/shopify/types",
}),
admin: shopifyApiProject({
apiType: ApiType.Admin,
apiVersion: "2024-01",
documents: ["./packages/core/**/*.admin.{js,ts,jsx,tsx}"],
outputDir: "./packages/core/platform/shopify/types/admin",
}),
},
}