diff --git a/.changeset/new-zebras-own.md b/.changeset/new-zebras-own.md new file mode 100644 index 0000000000000..db0e9813a5038 --- /dev/null +++ b/.changeset/new-zebras-own.md @@ -0,0 +1,5 @@ +--- +'@graphql-mesh/migrate-config-cli': patch +--- + +Fix for openapi support diff --git a/packages/legacy/migrate-config-cli/src/bin.ts b/packages/legacy/migrate-config-cli/src/bin.ts index fe450b50f93c3..b9a7c9bd911f5 100644 --- a/packages/legacy/migrate-config-cli/src/bin.ts +++ b/packages/legacy/migrate-config-cli/src/bin.ts @@ -1,6 +1,10 @@ #!/usr/bin/env node import { run } from './index.js'; +console.warn( + 'This package is still in development, please use with caution, and report any issues if you have any.', +); + run().catch(e => { console.error(e); process.exit(1); diff --git a/packages/legacy/migrate-config-cli/src/index.ts b/packages/legacy/migrate-config-cli/src/index.ts index 937721395baac..14532ecfd5bb7 100644 --- a/packages/legacy/migrate-config-cli/src/index.ts +++ b/packages/legacy/migrate-config-cli/src/index.ts @@ -399,6 +399,11 @@ const handlerInfoMap = { oldPackageName: '@graphql-mesh/raml', importName: 'loadRAMLSubgraph', }, + openapi: { + packageName: '@omnigraph/openapi', + oldPackageName: '@graphql-mesh/openapi', + importName: 'loadOpenAPISubgraph', + }, soap: { packageName: '@omnigraph/soap', oldPackageName: '@graphql-mesh/soap',