ts-node
This commit is contained in:
parent
aef2611428
commit
472519ef3a
|
@ -126,7 +126,7 @@ jobs:
|
|||
do
|
||||
TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript))
|
||||
echo Running $tscript with runtime=$TEST_RUNTIME
|
||||
docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output
|
||||
docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" npx ts-node /app/src/index.ts run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output
|
||||
cat test_output
|
||||
grep "OK" test_output
|
||||
done
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
"name": "piston-api",
|
||||
"version": "3.2.0",
|
||||
"description": "API for piston - a high performance code execution engine",
|
||||
"module": "./dist/index.js",
|
||||
"module": "./dist/src/index.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"api": "node ./dist/index.js",
|
||||
"api": "node ./dist/src/index.ts",
|
||||
"build": "npx tsc"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -24,6 +24,7 @@
|
|||
"devDependencies": {
|
||||
"@types/express": "^4.17.17",
|
||||
"@types/node-fetch": "^2.6.2",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.9.5"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
"rootDir": "src",
|
||||
// "declaration": true
|
||||
},
|
||||
"ts-node": {
|
||||
"esm": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["dist", "node_modules"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue