Fix behaviour regression

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-12-09 14:51:35 -05:00
1 parent da7387aeae
commit c429509a5b
1 file changed
+5 -1
+5 -1
View File
@@ -9,7 +9,11 @@ export type RemovePath = (filePath: string) => Promise<void>;
const removePathInjectable = getInjectable({ const removePathInjectable = getInjectable({
id: "remove-path", id: "remove-path",
instantiate: (di): RemovePath => di.inject(fsInjectable).rm, instantiate: (di): RemovePath => {
const { rm } = di.inject(fsInjectable);
return (filePath) => rm(filePath, { force: true });
},
}); });
export default removePathInjectable; export default removePathInjectable;