Skip to content

Commit 7532a5c

Browse files
yaacovCRsaihaj
andauthored
diff-npm-package: create reports folder (#3623)
Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com>
1 parent 338e3dd commit 7532a5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

resources/diff-npm-package.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ if (diff === '') {
3333
console.log('No changes found!');
3434
} else {
3535
const reportPath = localRepoPath('reports', 'npm-dist-diff.html');
36+
if (!fs.existsSync(reportPath)) {
37+
fs.mkdirSync(reportPath);
38+
}
3639
fs.writeFileSync(reportPath, generateReport(diff));
3740
console.log('Report saved to: ', reportPath);
3841
}

0 commit comments

Comments
 (0)