Skip to content

Commit 7ffd5f9

Browse files
committed
Add debug output to identify source of warning message
1 parent c1c3c8d commit 7ffd5f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/copy-readme.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ try {
3838
console.warn('⚠️ WARNING: Did you edit the README.md copy under `assets`?');
3939
console.warn('The assets readme gets overwritten during the build process.');
4040
console.warn('Edit the main README.md in root folder to avoid losing changes.');
41+
console.warn(` - Root README modified: ${sourceStats.mtime.toISOString()}`);
42+
console.warn(` - Assets README modified: ${targetStats.mtime.toISOString()}`);
4143
console.warn('===============================================================');
4244
fs.copyFileSync(targetFile, targetFile + '.bak');
4345
console.warn('Made you a backup, though: ' + targetFile + '.bak');

0 commit comments

Comments
 (0)