Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/cli/utils/CLIUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export class CLIUtils {
*/
public static readonly allowedConfigFileExtensions: string[] = [
'.js',
'.json'
'.json',
'.mjs',
'.cjs'
];

/**
Expand All @@ -24,7 +26,7 @@ export class CLIUtils {
const isValidExtension: boolean = CLIUtils.allowedConfigFileExtensions.includes(configFileExtension);

if (!isValidExtension) {
throw new ReferenceError('Given config path must be a valid `.js` or `.json` file path');
throw new ReferenceError('Given config path must be a valid `.js|.mjs|.cjs` or `.json` file path');
}

try {
Expand Down