Microbundle ignores *.ts files if they contain only types. Example of the file: https://github.com/XaveScor/signal-components/blob/dff96fd7151db5aae7421059836794a7880c2649/src/types.ts.
*.ts
git clone https://github.com/XaveScor/signal-components git checkout tags/v0.11.0 pnpm install pnpm build
types.d.ts is included in the ./dist directory.
types.d.ts
./dist
types.d.ts does not exist. Types are broken because we have ./types imports, but the file is missing.
./types
Microbundle ignores
*.tsfiles if they contain only types. Example of the file: https://github.com/XaveScor/signal-components/blob/dff96fd7151db5aae7421059836794a7880c2649/src/types.ts.Reproduction:
Expected Result:
types.d.tsis included in the./distdirectory.Actual Result:
types.d.tsdoes not exist. Types are broken because we have./typesimports, but the file is missing.