Skip to content

[BUG] This plugin borks something with package artifacts #287

Description

@darylteo

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 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.

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions