Skip to content

Commit c7d784c

Browse files
committed
diff-npm-package: move report into shared 'reports' folder
This folder already used for stryker's and c8's reports. Motivation: Makes it easier to manage ignore files for various tools.
1 parent be42e7c commit c7d784c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ jobs:
3434
uses: actions/upload-artifact@v2
3535
with:
3636
name: npm-dist-diff.html
37-
path: ./npm-dist-diff.html
37+
path: ./reports/npm-dist-diff.html
3838
if-no-files-found: ignore

resources/diff-npm-package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const diff = execOutput(`npm diff --diff=${fromPackage} --diff=${toPackage}`);
3232
if (diff === '') {
3333
console.log('No changes found!');
3434
} else {
35-
const reportPath = localRepoPath('npm-dist-diff.html');
35+
const reportPath = localRepoPath('reports', 'npm-dist-diff.html');
3636
fs.writeFileSync(reportPath, generateReport(diff));
3737
console.log('Report saved to: ', reportPath);
3838
}

0 commit comments

Comments
 (0)