Skip to content

Types haven't been bundled by microbundle聽#1084

Description

@XaveScor

Microbundle ignores *.ts files if they contain only types. Example of the file: https://github.com/XaveScor/signal-components/blob/dff96fd7151db5aae7421059836794a7880c2649/src/types.ts.

Reproduction:

git clone https://github.com/XaveScor/signal-components
git checkout tags/v0.11.0
pnpm install
pnpm build

Expected Result:

types.d.ts is included in the ./dist directory.

Actual Result:

types.d.ts does not exist. Types are broken because we have ./types imports, but the file is missing.

Activity

  1. sergeysova commented on Jul 3, 2024

    @sergeysova

    Have you tried?

    // your types
    export {}
  2. rschristian commented on Jul 3, 2024

    @rschristian
    Collaborator

    Looks like this was fixed upstream in ezolenko/rollup-plugin-typescript2#406, just haven't upgraded here yet.

    Hopefully a postbuild cp src/type.d.ts dist/ isn't too much of a hassle for the time being.

  3. linked a pull request that will close this issuechore: Bump (most) deps #1081on Jul 3, 2024
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions