Skip to content

Commit 1b40b6e

Browse files
committed
Added starter script
1 parent 05fb7e6 commit 1b40b6e

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-lambda-node-runtime",
3-
"version": "0.0.1",
3+
"version": "0.0.3",
44
"license": "(MIT OR Apache-2.0)",
55
"scripts": {
66
"precompile": "rm -rf dist",
@@ -23,7 +23,6 @@
2323
],
2424
"main": "./dist/compile/runtime.js",
2525
"types": "./dist/compile/runtime.d.ts",
26-
"dependencies": {},
2726
"devDependencies": {
2827
"@types/express": "^4.17.11",
2928
"@types/node": "^14.14.37",

src/start.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import runtime from './runtime'
2+
3+
const done = (err: Error | null) => {
4+
if (err) {
5+
console.warn('Runtime exiting due to an error', err)
6+
}
7+
}
8+
9+
console.warn('Runtime starting...')
10+
runtime(done);

0 commit comments

Comments
 (0)