diff --git a/languages/javascript/run.sh b/languages/javascript/run.sh index 6e087ee..6629b86 100644 --- a/languages/javascript/run.sh +++ b/languages/javascript/run.sh @@ -1 +1,2 @@ -cat | node -p +cat > program.js +node program.js diff --git a/languages/typescript/Dockerfile b/languages/typescript/Dockerfile index f1eb610..4007da5 100644 --- a/languages/typescript/Dockerfile +++ b/languages/typescript/Dockerfile @@ -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/ diff --git a/languages/typescript/run.sh b/languages/typescript/run.sh index 4d12a04..77ff51d 100644 --- a/languages/typescript/run.sh +++ b/languages/typescript/run.sh @@ -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