files-structure-generator
Advanced tools
Comparing version
@@ -20,5 +20,5 @@ const fs = require('fs'); | ||
// Function to copy a file | ||
function copyFile(src, dest) { | ||
fs.copyFileSync(src, dest); | ||
// Function to move a file | ||
function moveFile(src, dest) { | ||
fs.renameSync(src, dest); | ||
} | ||
@@ -34,6 +34,6 @@ | ||
// Copy the file | ||
copyFile(srcPath, destPath); | ||
// Move the file | ||
moveFile(srcPath, destPath); | ||
console.log('Files copied and package.json updated successfully.'); | ||
console.log('Files moved and package.json updated successfully.'); | ||
}, 5000); |
{ | ||
"name": "files-structure-generator", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "A utility to generate a predefined file and folder structure from a JSON configuration.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3370
-0.09%