kiss-express projects smarter dts2hx handling. Close #164

This commit is contained in:
2022-10-10 02:11:43 +00:00
parent 4b3730a0af
commit ad0b193065
12 changed files with 77 additions and 25 deletions

View File

@@ -0,0 +1,19 @@
package;
import sys.io.File;
import sys.FileSystem;
import haxe.Json;
class KillVersionReqs {
static function main() {
var libs = FileSystem.readDirectory("libs");
for (lib in libs) {
var haxelib = 'libs/$lib/$lib/haxelib.json';
var json = Json.parse(File.getContent(haxelib));
for (dependency => version in (json.dependencies : haxe.DynamicAccess<String>)) {
json.dependencies[dependency] = "";
}
File.saveContent(haxelib, Json.stringify(json));
}
}
}