Skip to content

Commit dfdc339

Browse files
committed
Fix glob for copy directory watch
1 parent aae47e7 commit dfdc339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/copy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = (args) => BbPromise.resolve(args).then(args => {
5858
console.log(` Copying ${colors.gray(fromPath)} to ${colors.gray(toPath)}`);
5959
fse.copySync(fromPath, toPath);
6060
if (options.watch) {
61-
watchFiles(path.join(fromPath, '*')).then(copyWatcher(fromPath, toPath));
61+
watchFiles(path.join(fromPath, '**/*')).then(copyWatcher(fromPath, toPath));
6262
}
6363
} else {
6464
// copyGlobs has the form { 'glob': 'dest folder' }

0 commit comments

Comments
 (0)