fix transpiler

This commit is contained in:
Yuri Kuznetsov
2023-06-15 09:57:04 +03:00
parent d74363baea
commit 87ad554531
+1 -3
View File
@@ -73,9 +73,7 @@ class Transpiler {
} }
let files = allFiles.filter(file => this.#isToBeTranspiled(file)); let files = allFiles.filter(file => this.#isToBeTranspiled(file));
let otherFiles = allFiles.filter(file => !files.includes(file));
let otherFiles = !this.file ?
allFiles.filter(file => !files.includes(file)) : [];
files.forEach(file => this.#processFile(file)); files.forEach(file => this.#processFile(file));
otherFiles.forEach(file => this.#copyFile(file)); otherFiles.forEach(file => this.#copyFile(file));