lang(typescript): add node types
This commit is contained in:
parent
79ab50508d
commit
d0f71c7530
2 changed files with 4 additions and 2 deletions
|
@ -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/
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue