From 102fdfcd38c8f9a63ec4c0ec6491900052b3ec22 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sun, 13 Jun 2021 23:15:05 -0600 Subject: [PATCH] fix haxelib.json generation for new-project --- kiss/src/kiss/Main.hx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kiss/src/kiss/Main.hx b/kiss/src/kiss/Main.hx index e5078451..426894f3 100644 --- a/kiss/src/kiss/Main.hx +++ b/kiss/src/kiss/Main.hx @@ -82,7 +82,11 @@ class Main { "name": name, "url": promptFor("url"), "license": promptFor("license", "LGPL"), - "tags": promptFor("tags (comma-separated)", "").split(","), + "tags": { + var t = promptFor("tags (comma-separated)", "").split(","); + t.remove(""); + t; + }, "description": promptFor("description", ""), "version": "0.0.0", "releasenote": "", @@ -98,7 +102,7 @@ class Main { makeFileForNewProject(["src", "template", "Main.kiss"], name, pkg); makeFileForNewProject(["build.hxml"], name, pkg); makeFileForNewProject(["test.sh"], name, pkg); - File.saveContent('$name/haxelib.json', Json.stringify(haxelibJson)); + File.saveContent('$name/haxelib.json', Json.stringify(haxelibJson, null, "\t")); } static function convert(args:Array) {