Cleanup before tips

This commit is contained in:
Kilian Hofmann 2025-11-29 03:05:00 +01:00
parent 13cfc9b62e
commit b9b969b8ba
4 changed files with 6 additions and 36 deletions

View File

@ -7,8 +7,5 @@
"type": "module",
"keywords": [],
"author": "khofmann",
"license": "",
"dependencies": {
"fast-xml-parser": "^4.5.1"
}
"license": ""
}

23
pnpm-lock.yaml generated
View File

@ -6,25 +6,4 @@ settings:
importers:
.:
dependencies:
fast-xml-parser:
specifier: ^4.5.1
version: 4.5.1
packages:
fast-xml-parser@4.5.1:
resolution: {integrity: sha512-y655CeyUQ+jj7KBbYMc4FG01V8ZQqjN+gDYGJ50RtfsUB8iG9AmwmwoAgeKLJdmueKKMrH1RJ7yXHTSoczdv5w==}
hasBin: true
strnum@1.0.5:
resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==}
snapshots:
fast-xml-parser@4.5.1:
dependencies:
strnum: 1.0.5
strnum@1.0.5: {}
.: {}

View File

@ -1,4 +1,3 @@
import { XMLParser, XMLBuilder } from "fast-xml-parser";
import fs from "node:fs";
import path from "node:path";

View File

@ -46,14 +46,9 @@ paths.forEach((_path) => {
}
}
});
fs.writeFileSync(path.join(_path, file), lines.join("\n"), {
encoding: "utf-8",
});
});
});
/*
const fd = fs.openSync("tooltips.csv", "w");
fs.writeSync(fd, "Template Name,Node ID,Tooltip\n");
objects.forEach((obj) => {
fs.writeSync(fd, `${obj.templateName},${obj.nodeID},\n`);
});
fs.closeSync(fd);
*/