somehow line ending became a problem for git

This commit is contained in:
skillbert
2022-05-14 02:33:33 +02:00
parent 29d645f85a
commit 5cdac0ba09
2 changed files with 3 additions and 4 deletions

View File

@@ -4,10 +4,7 @@
export type identitykit = {
bodypart?: number | null
model?: {
maybe_priority: number,
model: number,
} | null
models?: number[] | null
iscopy?: true | null
recolor?: [
number,

View File

@@ -37,6 +37,8 @@ function generateOpcodeTypes() {
typesfile += "any;\n";
typesfile += "// " + e.toString().replace(/\n/g, "\n//");
}
//I'm sorry, git made me do this
typesfile = typesfile.replace(/(?<!\r)\n/g, "\r\n");
file.contents = Buffer.from(typesfile);
file.extname = ".d.ts";
}