serverless-plugin-typescript
serverless-plugin-typescript copied to clipboard
Wrong parameter path.copy & fix artifact
#167
Thanks for doing this, @tomzaku! Your changes look good but do you mind updating your commit message to read fix: wrong parameter path.copy & fix artifact
so the release bot can publish the version correctly?
When I have some time this weekend I'll try to repro these issues too :smile:
@JackCuthbert done!
This appears to be specific to serverless-webpack
users. Your fix resolves the issue when someone uses webpack, but breaks non-webpack projects (at least it did for me).
The following error occurs when running your fix without serverless-webpack.
Serverless: Compiling with Typescript...
Serverless: Typescript compiled.
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Unhandled rejection Error: ENOENT: no such file or directory, open '/home/jack/Code/serverless-plugins/.serverless/serverless-typescript-debugging.zip'
Additionally, the serverless offline
integration fails with a Cannot find module
error during function invocation when using serverless-webpack
. I copied as much of your webpack config as I could, is there something I did wrong here to cause this one?
Do you know how we might support both using webpack and a zero-config option with just the TS compiler?
Any plan to merge this?