kiss-express projects smarter dts2hx handling. Close #164
This commit is contained in:
19
kiss/build-scripts/dts2hx-externs/KillVersionReqs.hx
Normal file
19
kiss/build-scripts/dts2hx-externs/KillVersionReqs.hx
Normal 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));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user