pkg(typescript-4.2.3): Add typescript 4.2.3

This commit is contained in:
Thomas Hobson 2021-03-13 23:28:55 +13:00
parent f852b60b69
commit 9affe1e892
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
6 changed files with 31 additions and 0 deletions

7
packages/typescript/4.2.3/build.sh vendored Executable file
View File

@ -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

5
packages/typescript/4.2.3/compile vendored Normal file
View File

@ -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 $*

4
packages/typescript/4.2.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,6 @@
{
"language": "typescript",
"version": "4.2.3",
"aliases": ["ts","node-ts","tsc"],
"author": "Thomas Hobson <git@hexf.me>"
}

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

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
CODE=$(sed 's/ts$/js/' <<<"$1")
shift
node $CODE $*

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

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