You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the package.artifact functionality for a different function that is not typescript. But enabling this plugin borked packaging of other functions using package.artifact.
I'm not sure how else to describe it so here's a video.
From this it seems that it mangles a path library, or maybe changes the state of the serverless options which causes problems down the chain of plugins.
Even if I move the artifact to the place it tries to look at (in the .build directory), it then tries to inside .serverless instead.
Or is it related to these lines mutating the serverless service?
if(!this.originalServicePath){// Save original service path and functionsthis.originalServicePath=this.serverless.config.servicePath// Fake service path so that serverless will know what to zipthis.serverless.config.servicePath=path.join(this.originalServicePath,BUILD_FOLDER)}
Okay i should be able to workaround this with serverless compose since the change is limited only to the service.
Complicates things a bit but I think it's workable. Just noisy because I would to set up separate services which creates separate stacks, and also set up vars, envs, and plugins between services.
This is also less ideal because Serverless Compose does not currently support running multiple services under the same serverless-offline instance. dherault/serverless-offline#1386
I'm using the package.artifact functionality for a different function that is not typescript. But enabling this plugin borked packaging of other functions using package.artifact.
I'm not sure how else to describe it so here's a video.
https://imgur.com/DnztNvA
From this it seems that it mangles a
path
library, or maybe changes the state of theserverless
options which causes problems down the chain of plugins.Even if I move the artifact to the place it tries to look at (in the .build directory), it then tries to inside .serverless instead.
https://imgur.com/jlk7k5w
Incredibly annoying, hope I can find a workaround for this.
Reproduction Repro here.
https://github.com/darylteo/serverless-plugin-typescript-bug-repro
Does it have something to do with the outDir and rootDir in tsconfig?
The text was updated successfully, but these errors were encountered: