Skip to content

Commit

Permalink
copy-src: fix mkdirp
Browse files Browse the repository at this point in the history
  • Loading branch information
myfreeer committed Apr 22, 2023
1 parent 2ed862f commit be491c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copy-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const copyIfNewer = async (src, dest) => {
} else if (dirent.isFile() && !dirent.name.endsWith('.ts')) {
if (!fs.existsSync(nextDir = path.join(__dirname, 'lib', currentDir))) {
console.debug(new Date().toLocaleString(), 'mkdir', nextDir);
mkdir.sync(nextDir);
mkdir.mkdirpSync(nextDir);
}
srcFile = path.join(__dirname, 'src', currentDir, dirent.name);
destFile = path.join(nextDir, dirent.name);
Expand Down

0 comments on commit be491c0

Please sign in to comment.