diff --git a/languages/typescript/Dockerfile b/languages/typescript/Dockerfile index 4313d54..f1eb610 100644 --- a/languages/typescript/Dockerfile +++ b/languages/typescript/Dockerfile @@ -1,6 +1,6 @@ FROM node:alpine LABEL author="1Computer1" -RUN yarn global add typescript +RUN yarn global add typescript @types/node COPY run.sh /var/run/ diff --git a/languages/typescript/run.sh b/languages/typescript/run.sh index 12098b5..4d12a04 100644 --- a/languages/typescript/run.sh +++ b/languages/typescript/run.sh @@ -1,2 +1,4 @@ cat > program.ts -tsc --lib DOM,ESNext --target ES2019 --strict --skipLibCheck program.ts && cat program.js | node -p +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 -p