serverless-package-common icon indicating copy to clipboard operation
serverless-package-common copied to clipboard

Using sls package leaves the symlinked folder in the directory

Open JoeAlamo opened this issue 5 years ago • 1 comments

Hey there,

First of all, thanks for this plugin. Found it really useful with our setup to eliminate the use of function layers for common code - made it much easier to manage.

One thing I've found though, is that if you use sls package to create a package artifact of your microservice, the common symlink remains in your microservice folder.

I have worked around this via .gitignore, but it would be preferable if the plugin deleted the symlink itself after a successful package.

It seems a deploy --package <packagedir> afterwards cleans it up. I guess there is a post-package event this plugin could hook into to do the cleanup there?

Thanks,

JoeAlamo avatar Nov 05 '19 13:11 JoeAlamo

Fixed in my fork https://github.com/kingtut/serverless-package-common

kingtut avatar Mar 31 '22 21:03 kingtut