Skip to content

Commit 3a02e3e

Browse files
authored
fix: template result comparison (#9279)
1 parent f7fea29 commit 3a02e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tools/lib/hbs2ui5/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const processFile = async (file, outputDir) => {
3636
const componentNameMatcher = /(\w+)(\.hbs)/gim;
3737
const componentName = componentNameMatcher.exec(file)[1];
3838
const componentHasTypes = hasTypes(file, componentName);
39-
if (!componentHasTypes) {
39+
if (!componentHasTypes) {
4040
if (!missingTypesReported) {
4141
console.warn("[Warn] The following templates do not have a corresponging .ts or .d.ts file and won't be type checked:")
4242
missingTypesReported = true;
@@ -98,7 +98,7 @@ const writeRenderers = async (outputDir, controlName, fileContent) => {
9898

9999
let existingFileContent = "";
100100
try {
101-
existingFileContent = await fs.readFile(compiledFilePath);
101+
existingFileContent = (await fs.readFile(compiledFilePath)).toString();
102102
} catch (e) {}
103103

104104
if (existingFileContent !== fileContentUnix) {

0 commit comments

Comments
 (0)