serverless-plugin-typescript icon indicating copy to clipboard operation
serverless-plugin-typescript copied to clipboard

fix: adjust all artifact paths

Open PerfectPixel opened this issue 6 years ago • 0 comments

As the plugin manipulates serverless.config.servicePath, artifact paths need to be adjusted so that the state file matches the folder structure.

However, as other plugins (like the warmup plugin) might create additional functions, their artifacts also need adjustment.

I changed the code, so that it does not try to adjust the paths based on the configuration but eagerly looks in all possible places for artifact paths and replaces them if they exist.

Resolves #125

PerfectPixel avatar Dec 05 '19 20:12 PerfectPixel