mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
test: fix weird output on restart filename
This commit is contained in:
@@ -134,18 +134,23 @@ function filterAndRestart(files) {
|
||||
files = [files];
|
||||
}
|
||||
if (files.length) {
|
||||
var cwd = this.options ? this.options.cwd : process.cwd();
|
||||
var cwd = process.cwd();
|
||||
if (this.options && this.options.cwd) {
|
||||
cwd = this.options.cwd;
|
||||
}
|
||||
|
||||
utils.log.detail(
|
||||
'files triggering change check: ' +
|
||||
files
|
||||
.map(function (file) {
|
||||
return path.relative(cwd, file);
|
||||
const res = path.relative(cwd, file);
|
||||
return res;
|
||||
})
|
||||
.join(', ')
|
||||
);
|
||||
|
||||
files = files.map(file => {
|
||||
return path.relative(process.cwd(), path.join(cwd, file));
|
||||
return path.relative(process.cwd(), path.relative(cwd, file));
|
||||
});
|
||||
|
||||
if (utils.isWindows) {
|
||||
|
||||
Reference in New Issue
Block a user