Remove hacky code related to changing CWD

This commit is contained in:
Maciej Pędzich 2023-07-06 14:38:30 +02:00
parent 97395686b0
commit 90ca620044
3 changed files with 2 additions and 8 deletions

View File

@ -1,3 +1,3 @@
[functions] [functions]
included_files = ["package.json"] included_files = ["package.json", "appFn.ts", "getPlaylistIdFromUrl.ts"]
external_node_modules = ["@probot/adapter-aws-lambda-serverless", "probot", "express", "keyv", "formidable"] external_node_modules = ["@probot/adapter-aws-lambda-serverless", "probot", "express", "keyv", "formidable"]

View File

@ -1,9 +1,3 @@
import { readdirSync } from 'fs';
console.log(readdirSync('/var/task'));
process.chdir('/var/task');
import { import {
createProbot, createProbot,
createLambdaFunction createLambdaFunction

View File

@ -3,7 +3,7 @@
"target": "esnext", "target": "esnext",
"module": "commonjs", "module": "commonjs",
"rootDir": "./", "rootDir": "./",
"outDir": "./dist", "noEmit": true,
"esModuleInterop": true, "esModuleInterop": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"strict": true, "strict": true,