@graphql-mesh/cli 0.92.5 → 0.92.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/config.js +1 -1
- package/esm/config.js +1 -1
- package/package.json +1 -1
package/cjs/config.js
CHANGED
|
@@ -44,7 +44,7 @@ function validateConfig(config, filepath, initialLoggerPrefix, throwOnInvalidCon
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
async function findAndParseConfig(options) {
|
|
47
|
-
const { configName = 'mesh', dir: configDir = '', initialLoggerPrefix = '🕸️ Mesh', importFn, ...restOptions } = options || {};
|
|
47
|
+
const { configName = 'mesh', dir: configDir = '', initialLoggerPrefix = '🕸️ Mesh', importFn = defaultImportFn_js_1.defaultImportFn, ...restOptions } = options || {};
|
|
48
48
|
const dir = cross_helpers_1.path.isAbsolute(configDir) ? configDir : cross_helpers_1.path.join(cross_helpers_1.process.cwd(), configDir);
|
|
49
49
|
const explorer = (0, cosmiconfig_1.cosmiconfig)(configName, {
|
|
50
50
|
searchPlaces: [
|
package/esm/config.js
CHANGED
|
@@ -39,7 +39,7 @@ export function validateConfig(config, filepath, initialLoggerPrefix, throwOnInv
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
export async function findAndParseConfig(options) {
|
|
42
|
-
const { configName = 'mesh', dir: configDir = '', initialLoggerPrefix = '🕸️ Mesh', importFn, ...restOptions } = options || {};
|
|
42
|
+
const { configName = 'mesh', dir: configDir = '', initialLoggerPrefix = '🕸️ Mesh', importFn = defaultImportFn, ...restOptions } = options || {};
|
|
43
43
|
const dir = path.isAbsolute(configDir) ? configDir : path.join(process.cwd(), configDir);
|
|
44
44
|
const explorer = cosmiconfig(configName, {
|
|
45
45
|
searchPlaces: [
|