rapid-replace
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -65,5 +65,7 @@ | ||
// fs.renameSync(); | ||
// 删除文件 | ||
// 删除原文件 | ||
fs.unlinkSync(originFile); | ||
fs.rename(newFile, originFile); | ||
// 复制新文件 | ||
fs.createReadStream(newFile).pipe(fs.createWriteStream(originFile)); | ||
// fs.rename(newFile, originFile); | ||
console.log('文件替换完成:',newFile, originFile); | ||
@@ -70,0 +72,0 @@ } |
{ | ||
"name": "rapid-replace", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "repid replace node modules file", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7883
141