Skip to content

Commit

Permalink
Support OAS in Migrate CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Nov 7, 2024
1 parent 2be4887 commit c365684
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/new-zebras-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-mesh/migrate-config-cli': patch
---

Fix for openapi support
4 changes: 4 additions & 0 deletions packages/legacy/migrate-config-cli/src/bin.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
5 changes: 5 additions & 0 deletions packages/legacy/migrate-config-cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c365684

Please sign in to comment.