better support for multiple languages per package

This commit is contained in:
Thomas Hobson 2021-04-25 15:02:57 +12:00
parent 77ad337e1d
commit a328b3eeda
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
4 changed files with 45 additions and 15 deletions

View file

@ -50,7 +50,7 @@ const app = express();
.flat()
.filter(pkg => fss.exists_sync(path.join(pkg, globals.pkg_installed_file)));
installed_languages.forEach(pkg => new runtime.Runtime(pkg));
installed_languages.forEach(pkg => runtime.load_package(pkg));
logger.info('Starting API Server');
logger.debug('Constructing Express App');
@ -100,7 +100,8 @@ const app = express();
return {
language: rt.language,
version: rt.version.raw,
aliases: rt.aliases
aliases: rt.aliases,
runtime: rt.runtime
};
});