Skip to content

bug: Is index.ts supposed to be missing when TS_RS_EXPORT_DIR is set? #378

@asimpletune

Description

@asimpletune

Describe the bug
Setting the TS_RS_EXPORT_DIR seems to produce all the bindings but no index.ts file.

To Reproduce
Steps to reproduce the behavior:
Generate some bindings with TS_RS_EXPORT_DIR set, e.g. for me it was on a project I was working on:

TS_RS_EXPORT_DIR='mail-parser-ts/bindings' cargo test export_bindings --features ts-bindings

Expected behavior
I'm new to the project but shouldn't index.ts be included?

Screenshots
tar -tzf mail-parser-ts-bindings-0.9.1.tgz (WITHOUT TS_RS_EXPORT_DIR set)
Image

tar -tzf mail-parser-ts-bindings-0.9.1.tgz (WITH TS_RS_EXPORT_DIR set)
Image

Version

What version of the library are you using?

I'm using 10.1

Additional context

Add any other context about the problem here.

I guess the only context is that I need to change the output directory of the resulting bindings, as I have a multi-workspace npm package that I'm working on. Right now I'm just copy -r bindings. Maybe there's a right way to do it? I don't know! But thanks for reading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions