Skip to content

Commit 378fd7d

Browse files
committed
fixed watchcpx script - now correctly copies node modules at start, woops.
1 parent 7040d76 commit 378fd7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/watchCopy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ rl.question(`Watch for changes in '${PROJECT_DIR}' and copy to '${TARGET_DIR}'?
2626
if (answer.toLowerCase() === 'y') {
2727
// flat copy node_modules as we're not watching it
2828
console.log('Copying node_modules directory...');
29-
copy(PROJECT_DIR + '/node_modules/**/*.*', TARGET_DIR.replace(`/${packageJson.name}`), { clean: true }, () => {
29+
copy(PROJECT_DIR + '/node_modules/**/*.*', TARGET_DIR + '/node_modules', { clean: true }, () => {
3030
console.log('Copy complete.');
3131
console.log('Watching for changes in project directory... (excludes node_modules)');
3232
const watcher = watch(PROJECT_DIR + '/{ios,android,lib}/**/*.*', TARGET_DIR, { verbose: true });

0 commit comments

Comments
 (0)