Skip to content

Change in v0.10.2 that causes output directory to first be removed breaks my build #1099

Closed
@zzzachzzz

Description

@zzzachzzz

In reference to this change which causes the output directory to first be removed: #986 (review)

While I understand this may be intended behavior, I thought I'd share my use case that illustrates why my build is dependent on files already residing in the output pkg folder, files which are tracked in git.

I have a .gitignore that looks like this:

pkg/*
!pkg/index.ts
!pkg/insight.worker.ts
!pkg/insight.d.ts

As you can see, I keep some essential files tracked by git in the pkg folder, and these modules then reference the output files generated by wasm-pack. Maybe there's a better way for me to go about this? Such as copying the files into pkg as part of the build process, or perhaps I should keep these files outside of the pkg folder, and reference the build output that goes into pkg.

If it is decided to keep this change, please add it to the v0.10.2 changelog.

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