Skip to content

Commit

Permalink
modified copy-source.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmin2 committed Mar 23, 2024
1 parent b822ffd commit 529f30a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/copy-sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ async function copyFiles() {
});
});
const operations = Object.entries(filesToCopy).map(([source, destination]) => {
const sourcePath = path.join(__dirname, '../', source);
const destinationPath = path.join(__dirname, '../template', destination);
return fs.copy(sourcePath, destinationPath, { overwrite: true });
return copyFile(path.join(__dirname, '../node_modules', source), path.join(__dirname, '../template', destination));
});
await Promise.all(operations);
}
Expand Down

0 comments on commit 529f30a

Please sign in to comment.