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 1255903 commit 86ca6a4Copy full SHA for 86ca6a4
packages/cubejs-schema-compiler/src/compiler/DataSchemaCompiler.ts
@@ -215,7 +215,9 @@ export class DataSchemaCompiler {
215
this.pythonContext = await this.loadPythonContext(files, 'globals.py');
216
this.yamlCompiler.initFromPythonContext(this.pythonContext);
217
218
- const toCompile = files.filter((f) => !this.filesToCompile || !this.filesToCompile.length || this.filesToCompile.indexOf(f.fileName) !== -1);
+ const toCompile = this.filesToCompile?.length
219
+ ? files.filter(f => this.filesToCompile.includes(f.fileName))
220
+ : files;
221
222
const errorsReport = new ErrorReporter(null, [], this.errorReportOptions);
223
this.errorsReporter = errorsReport;
0 commit comments