mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
api: use patched nocamel for fs/promises
This commit is contained in:
parent
60c004eea9
commit
8ad62ec983
3 changed files with 5 additions and 7 deletions
|
@ -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)));
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue