ts support

This commit is contained in:
Brian Seymour 2019-08-08 11:42:30 -05:00
parent 460e393772
commit 8833d4f488
6 changed files with 16 additions and 2 deletions

6
lxc/executors/typescript Executable file
View file

@ -0,0 +1,6 @@
cd /tmp/$2
mv code.code interim.ts
timeout -s KILL 10 tsc interim.ts
rm interim.ts
mv interim.js code.code
runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 nodejs code.code"