fix(ci): don't assume file encoding

This commit is contained in:
rektdeckard
2024-12-29 21:57:05 -07:00
committed by Tobias Fried
parent 13248a3270
commit 596ef0bc85

View File

@@ -33,7 +33,7 @@ const SYNC_FILES: Array<string | Array<string>> = [
for (const file of SYNC_FILES) {
const fileName = Array.isArray(file) ? file[0] : file;
const filePath = path.resolve(__dirname, `../${fileName}`);
const fileContent = fs.readFileSync(filePath, "utf8");
const fileContent = fs.readFileSync(filePath);
// If target file has aliases, remove them
if (Array.isArray(file)) {