Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated both node and typescript version #673

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/node/22.4.0/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
curl "https://nodejs.org/dist/v22.4.0/node-v22.4.0-linux-x64.tar.xz" -o node.tar.xz
tar xf node.tar.xz --strip-components=1
rm node.tar.xz
1 change: 1 addition & 0 deletions packages/node/22.4.0/environment
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export PATH=$PWD/bin:$PATH
10 changes: 10 additions & 0 deletions packages/node/22.4.0/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"language": "node",
"version": "22.4.0",
"provides": [
{
"language": "javascript",
"aliases": ["node-javascript", "node-js", "javascript", "js"]
}
]
}
3 changes: 3 additions & 0 deletions packages/node/22.4.0/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

node "$@"
1 change: 1 addition & 0 deletions packages/node/22.4.0/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('OK');
7 changes: 7 additions & 0 deletions packages/typescript/5.5.3/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

source ../../node/22.4.0/build.sh

source ./environment

bin/npm install -g [email protected]
7 changes: 7 additions & 0 deletions packages/typescript/5.5.3/compile
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions packages/typescript/5.5.3/environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH
5 changes: 5 additions & 0 deletions packages/typescript/5.5.3/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"language": "typescript",
"version": "5.5.3",
"aliases": ["ts", "node-ts", "tsc", "typescript5", "ts5"]
}
8 changes: 8 additions & 0 deletions packages/typescript/5.5.3/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# Put instructions to run the runtime

CODE=$1.js
shift

node $CODE "$@"
1 change: 1 addition & 0 deletions packages/typescript/5.5.3/test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('OK');
Loading