copy-and-watch
Advanced tools
Comparing version
@@ -59,2 +59,6 @@ /* IMPORTS */ | ||
createDirIfNotExist(to); | ||
const stats = fs.statSync(from); | ||
if (stats.isDirectory()) { | ||
return; | ||
} | ||
fs.writeFileSync(to, fs.readFileSync(from)); | ||
@@ -61,0 +65,0 @@ console.log('[COPY]'.yellow, from, 'to'.yellow, to); |
{ | ||
"name": "copy-and-watch", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Synchronize files or folders locally, with a watch option", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -36,1 +36,6 @@ # copy-and-watch | ||
``` | ||
## Changelog | ||
##### 0.1.2 | ||
- Fixed copy on dir bug (by arnarthor) |
9338
0.54%92
4.55%41
13.89%