Skip to content

Commit

Permalink
the config file name is not an extension, no need to test it
Browse files Browse the repository at this point in the history
  • Loading branch information
erikian committed Nov 15, 2022
1 parent 774b2a4 commit b741c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/core/src/util/forge-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default async (dir: string): Promise<ResolvedForgeConfig> => {
let forgeConfig: ForgeConfig | string | null = packageJSON.config && packageJSON.config.forge ? packageJSON.config.forge : null;

if (!forgeConfig || typeof forgeConfig === 'string') {
for (const extension of ['.js', ...Object.keys(interpret.extensions), forgeConfig].filter(Boolean)) {
for (const extension of ['.js', ...Object.keys(interpret.extensions)]) {
const pathToConfig = path.resolve(dir, `forge.config${extension}`);
if (await fs.pathExists(pathToConfig)) {
rechoir.prepare(interpret.extensions, pathToConfig, dir);
Expand Down

0 comments on commit b741c3a

Please sign in to comment.