There was an error while loading. Please reload this page.
1 parent 7040d76 commit 378fd7dCopy full SHA for 378fd7d
1 file changed
bin/watchCopy.js
@@ -26,7 +26,7 @@ rl.question(`Watch for changes in '${PROJECT_DIR}' and copy to '${TARGET_DIR}'?
26
if (answer.toLowerCase() === 'y') {
27
// flat copy node_modules as we're not watching it
28
console.log('Copying node_modules directory...');
29
- copy(PROJECT_DIR + '/node_modules/**/*.*', TARGET_DIR.replace(`/${packageJson.name}`), { clean: true }, () => {
+ copy(PROJECT_DIR + '/node_modules/**/*.*', TARGET_DIR + '/node_modules', { clean: true }, () => {
30
console.log('Copy complete.');
31
console.log('Watching for changes in project directory... (excludes node_modules)');
32
const watcher = watch(PROJECT_DIR + '/{ios,android,lib}/**/*.*', TARGET_DIR, { verbose: true });
0 commit comments