diff --git a/.gitignore b/.gitignore index 1f44e94..e960f06 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ samconfig.toml vars.json .env coverage -.nyc_output \ No newline at end of file +.nyc_output +.envrc \ No newline at end of file diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..6f4247a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +26 diff --git a/package.json b/package.json index 0470098..fbfe55b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "Probot & AWS Lambda example", "main": "app.js", "scripts": { - "start": "probot run ./app.js", + "start": "node start.js ./app.js", "test": "node test.js" }, "dependencies": { diff --git a/start.js b/start.js new file mode 100644 index 0000000..8247da2 --- /dev/null +++ b/start.js @@ -0,0 +1,3 @@ +const { run } = require("@probot/adapter-aws-lambda-serverless"); + +run(process.argv);