SyntaxFix
Write A Post
Hire A Developer
Questions
For a Linux/Unix OS, you can use the shell syntax
const shell = require('child_process').execSync; const src = `/path/src`; const dist = `/path/dist`; shell(`mkdir -p ${dist}`); shell(`cp -r ${src}/* ${dist}`);
That's it!