Skip to content

Commit

Permalink
Fix extension config importing on Windows (#10242)
Browse files Browse the repository at this point in the history
Fixes #10239
  • Loading branch information
nickrum committed Dec 2, 2021
1 parent e89a0a4 commit b500c32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/extensions-sdk/src/cli/utils/load-config.ts
Expand Up @@ -9,7 +9,9 @@ const _import = new Function('url', 'return import(url)');
export default async function loadConfig(): Promise<Record<string, any>> {
for (const fileName of CONFIG_FILE_NAMES) {
if (await fse.pathExists(fileName)) {
const configFile = await _import(path.join(process.cwd(), fileName));
const configFile = await _import(
path.relative(__dirname, path.join(process.cwd(), fileName)).split(path.sep).join(path.posix.sep)
);

return configFile.default;
}
Expand Down

0 comments on commit b500c32

Please sign in to comment.