Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
fix(nx-mesh): add to example dependencies list
Browse files Browse the repository at this point in the history
  • Loading branch information
domjtalbot committed Dec 7, 2022
1 parent fd8de91 commit 0a738e0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports[`addDependencies should add fake-api dependencies to the package.json 1`
\\"dependencies\\": {
\\"@graphql-mesh/cli\\": \\"0.79.3\\",
\\"@graphql-mesh/json-schema\\": \\"0.35.33\\",
\\"@graphql-mesh/plugin-mock\\": \\"0.0.37\\",
\\"@graphql-mesh/runtime\\": \\"0.44.31\\",
\\"@graphql-mesh/utils\\": \\"0.42.6\\",
\\"graphql\\": \\"16.6.0\\"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import type { MeshDependencies } from '../../types';

export const dependencies: MeshDependencies = ['@graphql-mesh/json-schema'];
export const dependencies: MeshDependencies = [
'@graphql-mesh/json-schema',
'@graphql-mesh/plugin-mock',
];

export default dependencies;
5 changes: 4 additions & 1 deletion libs/nx-mesh/src/utils/mesh-packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ const cache = [
'@graphql-mesh/cache-redis',
] as const;

const plugins = ['@graphql-mesh/plugin-snapshot'] as const;
const plugins = [
'@graphql-mesh/plugin-mock',
'@graphql-mesh/plugin-snapshot',
] as const;

/**
* A list of known GraphQL Mesh packages.
Expand Down
3 changes: 3 additions & 0 deletions libs/nx-mesh/src/utils/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export const versions: MeshPackageVersions = {
'@graphql-mesh/new-openapi': { '@graphql-mesh/new-openapi': '0.8.2' },
'@graphql-mesh/odata': { '@graphql-mesh/odata': '0.20.31' },
'@graphql-mesh/openapi': { '@graphql-mesh/openapi': '0.33.34' },
'@graphql-mesh/plugin-mock': {
'@graphql-mesh/plugin-mock': '0.0.37',
},
'@graphql-mesh/plugin-snapshot': {
'@graphql-mesh/plugin-snapshot': '0.0.10',
},
Expand Down

0 comments on commit 0a738e0

Please sign in to comment.