diff --git a/bin/install.js b/bin/install.js index df6125d..106bf89 100644 --- a/bin/install.js +++ b/bin/install.js @@ -161,8 +161,11 @@ const copyAdditionalFiles = async directory => { const projectPath = (directory !== '') ? `${ directory }/` : ''; try { - await fs - .copy(path.join(__dirname, '../src'), `${ projectPath }src`); + if (!fs.existsSync(`${ projectPath }src`)) { + await fs + .copy(path.join(__dirname, '../src'), `${ projectPath }src`); + } + return true; } catch (err) { console.error(err);