-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erroneous error when index.d.ts is included in the files list as "/index.d.ts" #79
Comments
This comment has been minimized.
This comment has been minimized.
The documentation says "file patterns follow a similar syntax to .gitignore". In
And, no, |
Regardless of documentation (which says "similar", but doesn't commit to the same exact format), I confirm that npm@6.14.5 also includes files starting with a slash. |
tsd: 0.13.1 | Node.js: v14.9.0 | OS: Linux (Arch)
I have a
files
array which includes"/index.d.ts"
, e.g.:The leading slash is needed to include the
index.d.ts
file in the package's root directory and to exclude other files of the same name, e.g. in thedist
directory (an unqualified"index.d.ts"
pattern matches all files with that name).tsd is not picking this up and is failing with an error:
The error goes away if the forward slash is removed.
The text was updated successfully, but these errors were encountered: