Skip to content

Commit

Permalink
build: Fix Foxify Config CommonJS build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalanamini committed Nov 13, 2022
1 parent dc985da commit d6cfc8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/config/src/config.esm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { CONFIG_FILEPATH, ConfigI } from "#src/constants";

/* ------------------------- Read the config file ------------------------- */

// TODO: Just to avoid the CommonJS build issue
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error,@typescript-eslint/ban-ts-comment
// @ts-ignore
const content: ConfigI = await import(CONFIG_FILEPATH)
.then(resolved => resolved.default)
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
Expand Down

0 comments on commit d6cfc8c

Please sign in to comment.