mirror of
https://github.com/Kindelia/Kind2.git
synced 2024-09-11 07:15:45 +03:00
Fix build with 1 app
This commit is contained in:
parent
7ad0b149f3
commit
85ec9d79ac
@ -34,9 +34,9 @@ const build_server = process.env.PRODUCTION;
|
||||
|
||||
if (process.argv[2]) { // Only build 1 App
|
||||
app = all_kind_apps.filter(name => {
|
||||
const match = process.argv[2].toLowerCase().slice(4) // remove "App."
|
||||
const match = process.argv[2].toLowerCase()
|
||||
return name.toLowerCase().endsWith(match)
|
||||
|| name.toLowerCase().endsWith(match+".kind");
|
||||
|| name.toLowerCase().endsWith(match+".kind");
|
||||
})[0];
|
||||
if (app) {
|
||||
compiled_apps = compile_app(app);
|
||||
|
Loading…
Reference in New Issue
Block a user