From df3ac21656360896670eedce53b2aae2fee3cdd4 Mon Sep 17 00:00:00 2001 From: Ivan Zuev Date: Thu, 13 Jan 2022 15:17:04 +0300 Subject: [PATCH] fix: export Plugin as it is required by serverless --- src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index aef84bc..ad702d9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ +/* eslint-disable import/no-import-module-exports */ import Serverless from 'serverless'; import { YandexCloudProvider } from './provider/provider'; @@ -7,7 +8,7 @@ import { YandexCloudInvoke } from './invoke/invoke'; import { YandexCloudInfo } from './info/info'; import { YandexCloudLogs } from './logs/logs'; -export default class YandexCloudServerlessPlugin { +class YandexCloudServerlessPlugin { private readonly serverless: Serverless; private readonly options: Serverless.Options; @@ -23,3 +24,6 @@ export default class YandexCloudServerlessPlugin { this.serverless.pluginManager.addPlugin(YandexCloudLogs); } } + +// eslint-disable-next-line unicorn/prefer-module +module.exports = YandexCloudServerlessPlugin;