Skip to content

Scan upwards for tsdx.config.js #201

@selbekk

Description

@selbekk

Current Behavior

If used in a mono-repo, and you have a top-level tsdx.config.js file, you have to create another tsdx.config.js per package, which basically just re-exports the top-level tsdx.config.js file.

Desired Behavior

It would be great to scan for a tsdx.config.js all the way up to the call-site, and using the first one found.

Suggested Solution

The find-up package seems pretty popular for this kind of work. We would have to change this file:

https://github.com/palmerhq/tsdx/blob/master/src/constants.ts#L11

to use the find-up package.

Who does this impact? Who is this for?

This is for mono-repo users.

Describe alternatives you've considered

Right now I have just created a new tsdx.config.js file per package. It's a pain and just pure dead boilerplate code. I'd love to skip it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions