Skip to content

Commit 90aa12c

Browse files
committed
#19 | Sleep 1s in atomicReplace
1 parent 8fa5ffb commit 90aa12c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/fileSystemHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const ensureDirectory = async (path) => {
4040
* Building in a separate temp location releases all file handles
4141
* before the final swap.
4242
*/
43-
const atomicReplace = async (targetPath, buildFn, sleepTime = 100) => {
43+
const atomicReplace = async (targetPath, buildFn, sleepTime = 1000) => {
4444
const sleep = (duration) => new Promise(resolve => setTimeout(resolve, duration))
4545
const tempPath = await atomicFS.mkdtemp(join(tmpdir(), 'atomic-replace-'))
4646
try {

0 commit comments

Comments
 (0)