diff --git a/scripts/FileSystem.ts b/scripts/FileSystem.ts index b83d52ab8..4716619b8 100644 --- a/scripts/FileSystem.ts +++ b/scripts/FileSystem.ts @@ -13,7 +13,7 @@ export interface FileSystem { readonly moveFile: (from: string, to: string) => TE.TaskEither } -const readFile = TE.taskify(fs.readFile) +const readFile = TE.taskify(fs.readFile) const writeFile = TE.taskify(fs.writeFile) const copyFile = TE.taskify(fs.copyFile) const glob = TE.taskify>(G) @@ -21,7 +21,7 @@ const mkdirTE = TE.taskify(fs.mkdir) const moveFile = TE.taskify(fs.rename) export const fileSystem: FileSystem = { - readFile: (path) => readFile(path, 'utf8'), + readFile: (path) => readFile(path, { encoding: 'utf8' }), writeFile, copyFile, glob,