Skip to content

Commit 0a1288e

Browse files
committed
update original content for yaml files in threads transpilation flow
1 parent 79a754d commit 0a1288e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/cubejs-schema-compiler/src/compiler/DataSchemaCompiler.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,9 @@ export class DataSchemaCompiler {
647647
errorsReport.addErrors(res.errors);
648648
errorsReport.addWarnings(res.warnings);
649649

650+
file.content = res.content;
651+
file.convertedToJs = true;
652+
650653
return { ...file, content: res.content };
651654
} else {
652655
const transpiledFile = this.yamlCompiler.transpileYamlFile(file, errorsReport);
@@ -744,7 +747,9 @@ export class DataSchemaCompiler {
744747
compiledFiles[file.fileName] = true;
745748

746749
if (file.convertedToJs) {
750+
const compileJsFileTimer = perfTracker.start('compileJsFile (convertedToJs)');
747751
this.compileJsFile(file, errorsReport);
752+
compileJsFileTimer.end();
748753
} else if (file.fileName.endsWith('.js')) {
749754
this.compileJsFile(file, errorsReport, { doSyntaxCheck });
750755
} else if (file.fileName.endsWith('.yml.jinja') || file.fileName.endsWith('.yaml.jinja') ||

0 commit comments

Comments
 (0)