fix graphql:codegen

This commit is contained in:
vchikalkin 2024-02-27 14:29:40 +03:00
parent 6007f3d98d
commit c2d9093efe
6 changed files with 22 additions and 20 deletions

View File

@ -1,4 +1,3 @@
const { downloadSchema, generateTypescript } = require('./lib/graphql');
const { downloadSchema } = require('./lib/graphql');
downloadSchema();
generateTypescript();

View File

@ -12,16 +12,14 @@
"test": "dotenv -e .env.local turbo run test",
"prepare": "husky install",
"precommit": "pnpm format && pnpm lint:fix && pnpm test",
"graphql:update": "dotenv -e .env.local node ./scripts/graphql-update.js",
"graphql:codegen": "dotenv -e .env.local node ./scripts/graphql-codegen.js"
"graphql:update": "dotenv -e .env.local turbo run graphql:update",
"graphql:codegen": "dotenv -e .env.local turbo run graphql:codegen"
},
"dependencies": {},
"devDependencies": {
"dotenv-cli": "^7.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.0",
"prettier": "^2.8.4",
"tools": "workspace:*",
"turbo": "^1.12.4"
},
"engines": {

17
pnpm-lock.yaml generated
View File

@ -20,9 +20,6 @@ importers:
prettier:
specifier: ^2.8.4
version: 2.8.8
tools:
specifier: workspace:*
version: link:packages/tools
turbo:
specifier: ^1.12.4
version: 1.12.4
@ -6136,6 +6133,18 @@ packages:
ms: 2.1.3
dev: true
/debug@4.3.4:
resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}
engines: {node: '>=6.0'}
peerDependencies:
supports-color: '*'
peerDependenciesMeta:
supports-color:
optional: true
dependencies:
ms: 2.1.2
dev: true
/debug@4.3.4(supports-color@5.5.0):
resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}
engines: {node: '>=6.0'}
@ -10370,7 +10379,7 @@ packages:
chalk: 5.2.0
cli-truncate: 3.1.0
commander: 10.0.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
execa: 7.2.0
lilconfig: 2.1.0
listr2: 5.0.8

View File

@ -1,5 +0,0 @@
const run = require('tools/scripts');
const command = ['yarn', 'workspace', 'web', 'graphql:codegen'].join(' ');
run(command, '*** Update GraphQL files ***');

View File

@ -1,5 +0,0 @@
const run = require('tools/scripts');
const command = ['yarn', 'workspace', 'web', 'graphql:update'].join(' ');
run(command, '*** Update GraphQL files ***');

View File

@ -24,6 +24,12 @@
},
"clean": {
"cache": false
},
"graphql:codegen": {
"cache": false
},
"graphql:update": {
"cache": false
}
}
}