We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b99b6a4 commit 92535aaCopy full SHA for 92535aa
src/cli/utils/CLIUtils.ts
@@ -10,7 +10,9 @@ export class CLIUtils {
10
*/
11
public static readonly allowedConfigFileExtensions: string[] = [
12
'.js',
13
- '.json'
+ '.json',
14
+ '.mjs',
15
+ '.cjs'
16
];
17
18
/**
@@ -24,7 +26,7 @@ export class CLIUtils {
24
26
const isValidExtension: boolean = CLIUtils.allowedConfigFileExtensions.includes(configFileExtension);
25
27
28
if (!isValidExtension) {
- throw new ReferenceError('Given config path must be a valid `.js` or `.json` file path');
29
+ throw new ReferenceError('Given config path must be a valid `.js|.mjs|.cjs` or `.json` file path');
30
}
31
32
try {
0 commit comments