You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
The loadConfigSync function should load the graphql configuration from the package.json file, as per the graphql-config documentation and the default behavior of cosmiconfig
Environment:
OS: All
GraphQL Config Version: 3.2.0
NodeJS: All
The text was updated successfully, but these errors were encountered:
Describe the bug
The default search locations of
cosmicconfig
are overwritten and thepackage.json
option is left out, so configs are not loaded from it.The culprit: https://github.com/kamilkisiela/graphql-config/blob/master/src/helpers/cosmiconfig.ts#L71
The original: https://github.com/davidtheclark/cosmiconfig/blob/main/src/index.ts#L109
To Reproduce
Steps to reproduce the behavior:
graphql
configuration inpackage.json
loadConfigSync
A Codesandbox example where configurations are loaded from
.#rc
files,#.config.js
files, but not frompackage.json
:https://codesandbox.io/s/graphql-config-ignoring-packagejson-nergw?file=/src/index.js
Expected behavior
The
loadConfigSync
function should load thegraphql
configuration from thepackage.json
file, as per thegraphql-config
documentation and the default behavior ofcosmiconfig
Environment:
The text was updated successfully, but these errors were encountered: