schema.js to TS
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
overwrite: true
|
||||
schema:
|
||||
- 'modules/schema.js'
|
||||
- 'modules/schema.ts'
|
||||
documents: null
|
||||
generates:
|
||||
modules/core/graph/generated/graphql.ts:
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
const { graphSchema } = require('@/modules/index')
|
||||
|
||||
/**
|
||||
* Used in codegen.yml
|
||||
*/
|
||||
|
||||
const schema = graphSchema()
|
||||
module.exports = schema
|
||||
@@ -0,0 +1,8 @@
|
||||
import { graphSchema } from '@/modules/index'
|
||||
|
||||
/**
|
||||
* Used in codegen.yml
|
||||
*/
|
||||
|
||||
const schema = graphSchema()
|
||||
export default schema
|
||||
Reference in New Issue
Block a user