serverless-plugin-typescript
serverless-plugin-typescript copied to clipboard
fix: adjust all artifact paths
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