serverless / serverless-plugin-typescript

Serverless plugin for zero-config Typescript support
MIT License
781 stars 222 forks source link

fix: Adding Serverless Layers Support #267

Closed mmeyers-xomly closed 2 years ago

mmeyers-xomly commented 2 years ago

Adding support for layers, since they currently break on packaging because serverless is looking for the layers files in the delete .build directory.

Based off this pull request from years ago: https://github.com/serverless/serverless-plugin-typescript/pull/128

This resolves this issue: https://github.com/serverless/serverless-plugin-typescript/issues/240

ejhayes commented 1 year ago

FWIW this does not appear to do any typescript compilation for layers that might include typescript files.

bernardodesousa commented 1 year ago

Is there anything special I need to do in the layer configuration for this to work? We have a layer with a zip file in it. It stops working when I add the plugin. I get an OperationalError. It says the file is not in .serverless folder, so I'm assuming there's a copy step that's been skipped.