Skip to content

Commit

Permalink
chore: move codegen.ts to root
Browse files Browse the repository at this point in the history
  • Loading branch information
KoichiKiyokawa committed Oct 4, 2022
1 parent 3b80de2 commit 4dffdf7
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 61 deletions.
@@ -1,4 +1,6 @@
const config: import('@graphql-codegen/cli').CodegenConfig = {
import { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
schema: 'http://127.0.0.1:5173/api/graphql',
documents: ['src/**/*.ts'],
config: {
Expand Down
3 changes: 0 additions & 3 deletions svelte-kit-graphql/config/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions svelte-kit-graphql/package.json
Expand Up @@ -11,10 +11,10 @@
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",
"codegen": "graphql-codegen --config config/codegen.ts"
"codegen": "graphql-codegen"
},
"devDependencies": {
"@graphql-codegen/cli": "2.13.0",
"@graphql-codegen/cli": "2.13.3",
"@graphql-codegen/client-preset": "1.0.1",
"@playwright/test": "^1.25.0",
"@sveltejs/adapter-auto": "next",
Expand Down

0 comments on commit 4dffdf7

Please sign in to comment.