Skip to content

Commit 6f9b46c

Browse files
committedNov 14, 2016
watchcpx no longer watches node_modules
1 parent e30e0d4 commit 6f9b46c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎bin/watchCopy.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ if (!TARGET_DIR.includes('node_modules')) {
2626
rl.question(`Watch for changes in '${PROJECT_DIR}' and copy to '${TARGET_DIR}'? (y/n): `, (answer) => {
2727
if (answer.toLowerCase() === 'y') {
2828
console.log('For the watch! (watching has begun)');
29-
const watcher = watch(PROJECT_DIR + '/**/*.*', TARGET_DIR, { verbose: true});
29+
const watcher = watch(PROJECT_DIR + '/{ios,android,lib}/**/*.*', TARGET_DIR, { verbose: true});
3030
watcher.on('copy', (e) => {
31-
if (!e.srcPath.startsWith('node_modules')) {
31+
// if (!e.srcPath.startsWith('node_modules')) {
3232
console.log(`Copied ${e.srcPath} to ${e.dstPath}`);
33-
}
33+
// }
3434
});
3535
} else {
3636
console.log('Aborting watch.');

0 commit comments

Comments
 (0)