mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
chore(forge): add a pre-make wait as well
This commit is contained in:
parent
4f6729857b
commit
a150047432
@ -213,6 +213,7 @@ const config: ForgeConfig = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Wait for a while to ensure the file system operations are completed.
|
// Wait for a while to ensure the file system operations are completed.
|
||||||
|
console.log("Waiting for file system operations to complete...");
|
||||||
await new Promise(resolve => setTimeout(resolve, 3000));
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
||||||
},
|
},
|
||||||
// Gather all the artifacts produced by the makers and copy them to a common upload directory.
|
// Gather all the artifacts produced by the makers and copy them to a common upload directory.
|
||||||
@ -239,6 +240,10 @@ const config: ForgeConfig = {
|
|||||||
fs.copyFileSync(artifactPath, outputPath);
|
fs.copyFileSync(artifactPath, outputPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
preMake: async () => {
|
||||||
|
console.log("Waiting for file system operations to complete...");
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user