lang(typescript): add node types

This commit is contained in:
1computer1 2020-06-19 09:34:30 -04:00
parent 79ab50508d
commit d0f71c7530
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,6 @@
FROM node:alpine FROM node:alpine
LABEL author="1Computer1" LABEL author="1Computer1"
RUN yarn global add typescript RUN yarn global add typescript @types/node
COPY run.sh /var/run/ COPY run.sh /var/run/

View file

@ -1,2 +1,4 @@
cat > program.ts 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