We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23443a5 commit 487bd34Copy full SHA for 487bd34
tools/lib/common.mjs
@@ -109,7 +109,10 @@ export async function copyLocalizedFiles() {
109
* @param {() => () => void} onChangeCallback
110
*/
111
export function watchLocalizedFiles(onChangeCallback) {
112
- const watcher = watch(localizedFilePatterns, { cwd: adevJaDir });
+ const watcher = watch(localizedFilePatterns, {
113
+ cwd: adevJaDir,
114
+ awaitWriteFinish: true,
115
+ });
116
watcher.on('change', async (path) => {
117
const changed = await copyLocalizedFile(path);
118
if (changed) {
0 commit comments