fix(ci): don't assume file encoding
This commit is contained in:
committed by
Tobias Fried
parent
13248a3270
commit
596ef0bc85
@@ -33,7 +33,7 @@ const SYNC_FILES: Array<string | Array<string>> = [
|
|||||||
for (const file of SYNC_FILES) {
|
for (const file of SYNC_FILES) {
|
||||||
const fileName = Array.isArray(file) ? file[0] : file;
|
const fileName = Array.isArray(file) ? file[0] : file;
|
||||||
const filePath = path.resolve(__dirname, `../${fileName}`);
|
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 target file has aliases, remove them
|
||||||
if (Array.isArray(file)) {
|
if (Array.isArray(file)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user