diff --git a/packages/typescript/5.0.3/build.sh b/packages/typescript/5.0.3/build.sh new file mode 100644 index 0000000..c753c69 --- /dev/null +++ b/packages/typescript/5.0.3/build.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +source ../../node/18.15.0/build.sh + +source ./environment + +bin/npm install -g typescript@5.0.3 \ No newline at end of file diff --git a/packages/typescript/5.0.3/compile b/packages/typescript/5.0.3/compile new file mode 100644 index 0000000..d674bb0 --- /dev/null +++ b/packages/typescript/5.0.3/compile @@ -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 \ No newline at end of file diff --git a/packages/typescript/5.0.3/environment b/packages/typescript/5.0.3/environment new file mode 100644 index 0000000..c6ab089 --- /dev/null +++ b/packages/typescript/5.0.3/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/typescript/5.0.3/metadata.json b/packages/typescript/5.0.3/metadata.json new file mode 100644 index 0000000..0a57acf --- /dev/null +++ b/packages/typescript/5.0.3/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "typescript", + "version": "5.0.3", + "aliases": ["ts", "node-ts", "tsc", "typescript5", "ts5"] +} \ No newline at end of file diff --git a/packages/typescript/5.0.3/run b/packages/typescript/5.0.3/run new file mode 100644 index 0000000..4ce91c5 --- /dev/null +++ b/packages/typescript/5.0.3/run @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime + +CODE=$1.js +shift + +node $CODE "$@" \ No newline at end of file diff --git a/packages/typescript/5.0.3/test.ts b/packages/typescript/5.0.3/test.ts new file mode 100644 index 0000000..c963843 --- /dev/null +++ b/packages/typescript/5.0.3/test.ts @@ -0,0 +1 @@ +console.log('OK'); \ No newline at end of file