diff --git a/languages/javascript/run.sh b/languages/javascript/run.sh index 6629b86..faceee1 100644 --- a/languages/javascript/run.sh +++ b/languages/javascript/run.sh @@ -1,2 +1 @@ -cat > program.js -node program.js +cat | node diff --git a/languages/typescript/run.sh b/languages/typescript/run.sh index 77ff51d..4fccb05 100644 --- a/languages/typescript/run.sh +++ b/languages/typescript/run.sh @@ -1,2 +1,4 @@ cat > program.ts -swc-node program.ts +tsc --lib DOM,ESNext --target ES2019 --strict \ + --skipLibCheck --types /usr/local/share/.config/yarn/global/node_modules/@types/node program.ts \ + && cat program.js | node