Skip to content

Commit

Permalink
fix: TypeError reading required files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorniaky committed Sep 22, 2022
1 parent 945b40c commit e630d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/index.ts
Expand Up @@ -185,7 +185,7 @@ export function verifyRequiredFiles(
files: string | string[] = [],
) {
const fileExt = getFileExt(ext);
const requiredFiles = Object.values(required_files[fileExt]).concat(required_files.common, files);
const requiredFiles = Object.values(required_files[fileExt] ?? {}).concat(required_files.common, files);

for (let i = 0; i < requiredFiles.length; i++) {
const file = requiredFiles[i];
Expand Down

0 comments on commit e630d41

Please sign in to comment.