Use swc for TypeScript and don't print by default
This commit is contained in:
parent
73d3fce78a
commit
a51b94913a
3 changed files with 4 additions and 5 deletions
|
@ -1 +1,2 @@
|
|||
cat | node -p
|
||||
cat > program.js
|
||||
node program.js
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue