Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove committed Mar 4, 2022
1 parent 676db9b commit 01191be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const makeDefaultNetlifyGraphConfig = ({
...netlifyGraphPath,
NetlifyGraph.defaultGraphQLSchemaFilename,
];

const netlifyGraphRequirePath = [`./netlifyGraph`];
const moduleType = baseConfig.moduleType || 'esm';

Expand Down Expand Up @@ -253,6 +254,12 @@ const getNetlifyGraphConfig = async ({ config, options, site }) => {
path.sep
)) ||
defaultConfig.netlifyGraphTypeDefinitionsFilename;

const graphQLOperationsSourceDirectory =
(userSpecifiedConfig.graphQLOperationsSourceDirectory &&
userSpecifiedConfig.graphQLOperationsSourceDirectory.split(path.sep)) ||
defaultFrameworkConfig.graphQLOperationsSourceDirectory

const graphQLOperationsSourceFilename =
(userSpecifiedConfig.graphQLOperationsSourceFilename &&
userSpecifiedConfig.graphQLOperationsSourceFilename.split(path.sep)) ||
Expand Down Expand Up @@ -297,6 +304,7 @@ const getNetlifyGraphConfig = async ({ config, options, site }) => {
netlifyGraphPath,
netlifyGraphImplementationFilename,
netlifyGraphTypeDefinitionsFilename,
graphQLOperationsSourceDirectory,
graphQLOperationsSourceFilename,
graphQLSchemaFilename,
graphQLConfigJsonFilename,
Expand Down

0 comments on commit 01191be

Please sign in to comment.