Skip to content

Invalid asterisk match - modulepath not found #140

Open
@willyboy

Description

@willyboy

I have the path:

"@foo/*/bars": ["foo/*/bars.ts"]

This is not matching my import of "@foo/beer/bar". Instead, it's matching something like, beer/ba. It should be matching on the beer.
Solution:
In the matchStar function, substr is used. The code implies that substring is what was intended. Substr takes a number of characters. Substring matches two indices; start and end. When switching to substring, the code works as expected.

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