generate main functions for Kiss files

This commit is contained in:
2021-07-25 21:06:31 -06:00
parent b01a04b164
commit 81ca9ad020
3 changed files with 21 additions and 6 deletions

View File

@@ -134,6 +134,7 @@
(set lastConfigDir (joinPath (userHome) ".kiss-vscode" "lastActiveConfig"))
(tryLoadConfig)))
// Manually define main so it will exist when test is not defined:
(function :Void main []
(#when test
(set builtinConfigDir "config")

View File

@@ -1,3 +1,4 @@
#! /bin/bash
# Run the build without -D test first, to make sure it works that way too:
haxe build.hxml && haxe -D test build.hxml -cmd "node bin/extension.js"