Fix removePath functionality to also include directories

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-01-03 09:32:45 -05:00
1 parent 2363b390c9
commit 307a0de272
1 file changed
+1 -1
+1 -1
View File
@@ -12,7 +12,7 @@ const removePathInjectable = getInjectable({
instantiate: (di): RemovePath => {
const { rm } = di.inject(fsInjectable);
return (filePath) => rm(filePath, { force: true });
return (filePath) => rm(filePath, { force: true, recursive: true });
},
});