Skip to content

Commit

Permalink
fix: export Plugin as it is required by serverless
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Zuev committed Jan 13, 2022
1 parent b324367 commit df3ac21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/no-import-module-exports */
import Serverless from 'serverless';

import { YandexCloudProvider } from './provider/provider';
Expand All @@ -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;

Expand All @@ -23,3 +24,6 @@ export default class YandexCloudServerlessPlugin {
this.serverless.pluginManager.addPlugin(YandexCloudLogs);
}
}

// eslint-disable-next-line unicorn/prefer-module
module.exports = YandexCloudServerlessPlugin;

0 comments on commit df3ac21

Please sign in to comment.