Skip to content

Allow glob pattern in sources #16

@ecstrema

Description

@ecstrema

Suppose I want to find all config files below the current directory, I'd like to be able to do something like:

const { config, sources } = await unconfigLoad<MyConfig>({
    cwd: directory,
    sources: [
        {
            files: "**/my.config",
            extensions: ["js", "ts"]
        }
    ]
});

Does that introduce any weird complexity?

Great package btw. Super useful.

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