Create a dummy package.json inside function's dir

This commit is contained in:
2023-07-06 12:21:34 +02:00
parent ddb5c752ac
commit 22b75f6c3f
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
import {
createLambdaFunction,
createProbot
} from '@probot/adapter-aws-lambda-serverless';
import { appFn } from '../../../appFn';
const privateKey = (process.env.PRIVATE_KEY as string).replace(/\\n/gm, '\n');
const handler = createLambdaFunction(appFn, {
probot: createProbot({ overrides: { privateKey } })
});
export { handler };