jacob-meacham / serverless-plugin-git-variables

:zap: Expose git variables to serverless
MIT License
87 stars 32 forks source link

Fix module default export #66

Closed nason closed 3 years ago

nason commented 3 years ago

Upgrading to v5 has caused issues with serverless deployments for me.

Serverless's PluginManager calls loadAllPlugins > addPlugin, which instantiates the plugin. It expects the plugin to be exported via module.exports:

In the current build:

> require('serverless-plugin-git-variables')
{ default: [class ServerlessGitVariables] }

In this branch:

> require('.')
[class ServerlessGitVariables]
jacob-meacham commented 3 years ago

@nason Published as 5.0.1

nason commented 3 years ago

Thanks @jacob-meacham!