diff --git a/packages/typescript/4.2.3/build.sh b/packages/typescript/4.2.3/build.sh new file mode 100755 index 0000000..83ab333 --- /dev/null +++ b/packages/typescript/4.2.3/build.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +source ../../node/15.10.0/build.sh + +source ./environment + +bin/npm install -g typescript@4.2.3 \ No newline at end of file diff --git a/packages/typescript/4.2.3/compile b/packages/typescript/4.2.3/compile new file mode 100644 index 0000000..1258d16 --- /dev/null +++ b/packages/typescript/4.2.3/compile @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Put instructions to compile source code, remove this file if the language does not require this stage + +tsc $* \ No newline at end of file diff --git a/packages/typescript/4.2.3/environment b/packages/typescript/4.2.3/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/typescript/4.2.3/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH diff --git a/packages/typescript/4.2.3/metadata.json b/packages/typescript/4.2.3/metadata.json new file mode 100644 index 0000000..f4a54de --- /dev/null +++ b/packages/typescript/4.2.3/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "typescript", + "version": "4.2.3", + "aliases": ["ts","node-ts","tsc"], + "author": "Thomas Hobson " +} diff --git a/packages/typescript/4.2.3/run b/packages/typescript/4.2.3/run new file mode 100644 index 0000000..dfd4249 --- /dev/null +++ b/packages/typescript/4.2.3/run @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime + +CODE=$(sed 's/ts$/js/' <<<"$1") +shift + +node $CODE $* diff --git a/packages/typescript/4.2.3/test.ts b/packages/typescript/4.2.3/test.ts new file mode 100644 index 0000000..56ed4a0 --- /dev/null +++ b/packages/typescript/4.2.3/test.ts @@ -0,0 +1 @@ +console.log("OK") \ No newline at end of file