chore: rename remote-query-entry-points.d.ts to query-entry-points.d.ts (#10831)
This commit is contained in:
1 parent
f8c20e5ee4
commit
e40878d9f3
2 files changed
+15
-4
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/medusa": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
chore: rename remote-query-entry-points.d.ts to query-entry-points.d.ts
|
||||||
@@ -127,17 +127,23 @@ async function start(args: {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (generateTypes) {
|
if (generateTypes) {
|
||||||
|
const typesDirectory = path.join(directory, ".medusa/types")
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cleanup existing types directory before creating new artifacts
|
||||||
|
*/
|
||||||
|
await new FileSystem(typesDirectory).cleanup({ recursive: true })
|
||||||
|
|
||||||
await generateContainerTypes(modules, {
|
await generateContainerTypes(modules, {
|
||||||
outputDir: path.join(directory, ".medusa/types"),
|
outputDir: typesDirectory,
|
||||||
interfaceName: "ModuleImplementations",
|
interfaceName: "ModuleImplementations",
|
||||||
})
|
})
|
||||||
logger.debug("Generated container types")
|
logger.debug("Generated container types")
|
||||||
|
|
||||||
if (gqlSchema) {
|
if (gqlSchema) {
|
||||||
const outputDirGeneratedTypes = path.join(directory, ".medusa/types")
|
|
||||||
await gqlSchemaToTypes({
|
await gqlSchemaToTypes({
|
||||||
outputDir: outputDirGeneratedTypes,
|
outputDir: typesDirectory,
|
||||||
filename: "remote-query-entry-points",
|
filename: "query-entry-points",
|
||||||
interfaceName: "RemoteQueryEntryPoints",
|
interfaceName: "RemoteQueryEntryPoints",
|
||||||
schema: gqlSchema,
|
schema: gqlSchema,
|
||||||
joinerConfigs: MedusaModule.getAllJoinerConfigs(),
|
joinerConfigs: MedusaModule.getAllJoinerConfigs(),
|
||||||
|
|||||||
Reference in new issue
Block a user