mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 13:06:27 +02:00
pkg(typescript-4.2.3): Add typescript 4.2.3
This commit is contained in:
parent
f852b60b69
commit
9affe1e892
6 changed files with 31 additions and 0 deletions
packages/typescript/4.2.3
7
packages/typescript/4.2.3/build.sh
vendored
Executable file
7
packages/typescript/4.2.3/build.sh
vendored
Executable 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
5
packages/typescript/4.2.3/compile
vendored
Normal 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
4
packages/typescript/4.2.3/environment
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/bin:$PATH
|
6
packages/typescript/4.2.3/metadata.json
vendored
Normal file
6
packages/typescript/4.2.3/metadata.json
vendored
Normal 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
8
packages/typescript/4.2.3/run
vendored
Normal 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
1
packages/typescript/4.2.3/test.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
console.log("OK")
|
Loading…
Add table
Add a link
Reference in a new issue