Skip to content

Commit c351340

Browse files
bukinoshitagabrielmfern
authored andcommitted
fix: Wrap case statements (#1821)
1 parent 5306002 commit c351340

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/react-email/src/cli/utils/preview/hot-reloading/create-dependency-graph.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export const createDependencyGraph = async (directory: string) => {
272272
await updateModuleDependenciesInGraph(pathToModified);
273273
}
274274
break;
275-
case 'addDir':
275+
case 'addDir': {
276276
const filesInsideAddedDirectory =
277277
await readAllFilesInsideDirectory(pathToModified);
278278
const modulesInsideAddedDirectory =
@@ -281,12 +281,13 @@ export const createDependencyGraph = async (directory: string) => {
281281
await updateModuleDependenciesInGraph(filePath);
282282
}
283283
break;
284+
}
284285
case 'unlink':
285286
if (isJavascriptModule(pathToModified)) {
286287
removeModuleFromGraph(pathToModified);
287288
}
288289
break;
289-
case 'unlinkDir':
290+
case 'unlinkDir': {
290291
const filesInsideDeletedDirectory =
291292
await readAllFilesInsideDirectory(pathToModified);
292293
const modulesInsideDeletedDirectory =
@@ -295,6 +296,7 @@ export const createDependencyGraph = async (directory: string) => {
295296
removeModuleFromGraph(filePath);
296297
}
297298
break;
299+
}
298300
}
299301
},
300302
{

0 commit comments

Comments
 (0)