Skip to content

Commit

Permalink
Fix/46 end of line property (#49)
Browse files Browse the repository at this point in the history
* fix(scan): endOfLines property does not appear in the final result of ComponentProfile

* bug(scan): appear endOfLines in `collectVueComponents` function
  • Loading branch information
terawuthlogicspark authored Oct 26, 2023
1 parent 54729ac commit 1e8c4d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vue-scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,8 @@ export class VueScanner implements Scanner {
if (ignorePatterns.some((pattern) => source.match(pattern))) {
return;
}
const { fileContent } = getFileInfo(filePath);
const endOfLines = getEndOfLine(fileContent);
const vueComponent = {
name: tag,
source,
Expand All @@ -516,6 +518,7 @@ export class VueScanner implements Scanner {
created: "",
createdBy: "",
updatedBy: "",
endOfLines,
},
},
} as VueComponent;
Expand Down

0 comments on commit 1e8c4d3

Please sign in to comment.