Use swc for TypeScript and don't print by default

This commit is contained in:
Manuel 2021-05-12 07:33:35 +02:00
parent 73d3fce78a
commit a51b94913a
Signed by: SunRed
GPG Key ID: 4085037435E1F07A
3 changed files with 4 additions and 5 deletions

View File

@ -1 +1,2 @@
cat | node -p
cat > program.js
node program.js

View File

@ -1,6 +1,6 @@
FROM node:alpine
LABEL author="1Computer1"
RUN yarn global add typescript @types/node
RUN npm install --global --save-dev @swc/core @swc/register
COPY run.sh /var/run/

View File

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