api: use patched nocamel for fs/promises

This commit is contained in:
Thomas Hobson 2021-02-21 12:06:20 +13:00
parent 60c004eea9
commit 8ad62ec983
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
3 changed files with 5 additions and 7 deletions

View file

@ -49,8 +49,7 @@ const app = express();
fs.readdir(path.join(pkgdir,lang))
.then(x=>x.map(y=>path.join(pkgdir, lang, y)))
)))
//eslint-disable-next-line snakecasejs/snakecasejs
.then(pkgs=>pkgs.flat().filter(pkg=>fs.existsSync(path.join(pkg, globals.pkg_installed_file))))
.then(pkgs=>pkgs.flat().filter(pkg=>fss.exists_sync(path.join(pkg, globals.pkg_installed_file))))
.then(pkgs=>pkgs.forEach(pkg => new runtime.Runtime(pkg)));