pkg(typescript-4.2.3): Add typescript 4.2.3
This commit is contained in:
parent
f852b60b69
commit
9affe1e892
|
@ -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
|
|
@ -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 $*
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Put 'export' statements here for environment variables
|
||||||
|
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"language": "typescript",
|
||||||
|
"version": "4.2.3",
|
||||||
|
"aliases": ["ts","node-ts","tsc"],
|
||||||
|
"author": "Thomas Hobson <git@hexf.me>"
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Put instructions to run the runtime
|
||||||
|
|
||||||
|
CODE=$(sed 's/ts$/js/' <<<"$1")
|
||||||
|
shift
|
||||||
|
|
||||||
|
node $CODE $*
|
|
@ -0,0 +1 @@
|
||||||
|
console.log("OK")
|
Loading…
Reference in New Issue