updated typescript and nodejs

This commit is contained in:
LoryPelli 2024-02-08 17:34:00 +01:00
parent 647bc3a7c7
commit 3b046c2966
11 changed files with 51 additions and 0 deletions

4
packages/node/20.11.0/build.sh vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
curl "https://nodejs.org/dist/v20.11.0/node-v20.11.0-linux-x64.tar.xz" -o node.tar.xz
tar xf node.tar.xz --strip-components=1
rm node.tar.xz

1
packages/node/20.11.0/environment vendored Normal file
View File

@ -0,0 +1 @@
export PATH=$PWD/bin:$PATH

10
packages/node/20.11.0/metadata.json vendored Normal file
View File

@ -0,0 +1,10 @@
{
"language": "node",
"version": "20.11.0",
"provides": [
{
"language": "javascript",
"aliases": ["node-javascript", "node-js", "javascript", "js"]
}
]
}

3
packages/node/20.11.0/run vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
node "$@"

1
packages/node/20.11.0/test.js vendored Normal file
View File

@ -0,0 +1 @@
console.log('OK');

7
packages/typescript/5.3.3/build.sh vendored Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source ../../node/20.11.0/build.sh
source ./environment
bin/npm install -g typescript@5.3.3

7
packages/typescript/5.3.3/compile vendored Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Put instructions to compile source code, remove this file if the language does not require this stage
rename 's/$/\.ts/' "$@" # Add .ts extension
tsc *.ts

4
packages/typescript/5.3.3/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

View File

@ -0,0 +1,5 @@
{
"language": "typescript",
"version": "5.3.3",
"aliases": ["ts", "node-ts", "tsc", "typescript5", "ts5"]
}

8
packages/typescript/5.3.3/run vendored Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
CODE=$1.js
shift
node $CODE "$@"

1
packages/typescript/5.3.3/test.ts vendored Normal file
View File

@ -0,0 +1 @@
console.log('OK');