mirror of
https://github.com/vercel/commerce.git
synced 2025-06-08 09:16:58 +00:00
Added codegen to saleor
This commit is contained in:
parent
1823c51a6e
commit
20bf672097
8001
package-lock.json
generated
8001
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -4,26 +4,26 @@
|
||||
},
|
||||
"documents": [
|
||||
{
|
||||
"./framework/saleor/utils/queries/get-all-products-query.ts": {
|
||||
"./src/utils/queries/get-all-products-query.ts": {
|
||||
"noRequire": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"./framework/saleor/utils/queries/get-all-products-paths-query.ts": {
|
||||
"./src/utils/queries/get-all-products-paths-query.ts": {
|
||||
"noRequire": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"./framework/saleor/utils/queries/get-products.ts": {
|
||||
"./src/utils/queries/get-products.ts": {
|
||||
"noRequire": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"generates": {
|
||||
"./framework/saleor/schema.d.ts": {
|
||||
"./schema.d.ts": {
|
||||
"plugins": ["typescript", "typescript-operations"]
|
||||
},
|
||||
"./framework/saleor/schema.graphql": {
|
||||
"./schema.graphql": {
|
||||
"plugins": ["schema-ast"]
|
||||
}
|
||||
},
|
@ -5,7 +5,8 @@
|
||||
"scripts": {
|
||||
"build": "rm -fr dist/* && tsc",
|
||||
"dev": "npm run build -- --watch",
|
||||
"prettier-fix": "prettier --write ."
|
||||
"prettier-fix": "prettier --write .",
|
||||
"generate": "graphql-codegen"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
@ -55,6 +56,10 @@
|
||||
"react-dom": "^17"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@graphql-codegen/cli": "^2.3.1",
|
||||
"@graphql-codegen/schema-ast": "^2.4.1",
|
||||
"@graphql-codegen/typescript": "^2.4.2",
|
||||
"@graphql-codegen/typescript-operations": "^2.2.2",
|
||||
"@types/node": "^15.12.4",
|
||||
"@types/react": "^17.0.8",
|
||||
"lint-staged": "^12.1.7",
|
||||
|
Loading…
x
Reference in New Issue
Block a user