chore: Move graphl to a single place (#9303)

* chore: Move graphl to a single place

* add new line
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2024-09-25 12:04:25 +02:00
1 parent 1d3a60023a
commit 358435d715
30 files changed
+78 -62

No files matched your search

+4 -2
View File
@@ -3,11 +3,12 @@ import express from "express"
import { track } from "medusa-telemetry"
import { scheduleJob } from "node-schedule"
import { GracefulShutdownServer } from "@medusajs/utils"
import { gqlSchemaToTypes, GracefulShutdownServer } from "@medusajs/utils"
import http, { IncomingMessage, ServerResponse } from "http"
import { gqlSchemaToTypes, logger } from "@medusajs/framework"
import { logger } from "@medusajs/framework"
import loaders from "../loaders"
import { MedusaModule } from "@medusajs/modules-sdk"
const EVERY_SIXTH_HOUR = "0 */6 * * *"
const CRON_SCHEDULE = EVERY_SIXTH_HOUR
@@ -66,6 +67,7 @@ async function start({ port, directory, types }) {
outputDir: outputDirGeneratedTypes,
filename: "remote-query-entry-points",
schema: gqlSchema,
joinerConfigs: MedusaModule.getAllJoinerConfigs(),
})
logger.info("Geneated modules types")
}
+1 -2
View File
@@ -1,5 +1,5 @@
import { ConfigModule, MedusaContainer, PluginDetails } from "@medusajs/types"
import { ContainerRegistrationKeys, promiseAll } from "@medusajs/utils"
import { ContainerRegistrationKeys, promiseAll, GraphQLSchema } from "@medusajs/utils"
import { asValue } from "awilix"
import { Express, NextFunction, Request, Response } from "express"
import { join } from "path"
@@ -12,7 +12,6 @@ import {
container,
expressLoader,
featureFlagsLoader,
GraphQLSchema,
JobLoader,
LinkLoader,
logger,