Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Print the relative filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Apr 24, 2018
1 parent db5f02b commit b586d46
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/watch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ module.exports = ({

watcher.once(
'all',
debounce((event, filename) => restart({ forcing: false, filename: path.basename(filename) })),
10
debounce(
(event, filename) =>
restart({ forcing: false, filename: path.relative(pwd, filename) }),
10
)
)

if (!firsTime) {
Expand Down

0 comments on commit b586d46

Please sign in to comment.