We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the removeSource option. If your bundle references a .d.ts file inside node_modules it deletes this file.
removeSource
.d.ts
node_modules
I would expect it to ignore anything outside the project when cleaning up the definitions files
The text was updated successfully, but these errors were encountered:
It should be fixed at https://github.com/TypeStrong/dts-bundle/blob/master/lib/index.ts#L379
Could you build a regexpr to decide if you have to revome the file?
You could add other regexpr to the conditional, for example:
if (p !== outFile && dtsExp.test(p) && fs.statSync(p).isFile() && canRemoveExp.test())
Sorry, something went wrong.
Just to confirm are you talking about a user configurable regular expression or a built in regex?
I thought in a built in regexp at the moment... A regexp that exclude node_modules folder.
Successfully merging a pull request may close this issue.
When using the
removeSource
option. If your bundle references a.d.ts
file insidenode_modules
it deletes this file.I would expect it to ignore anything outside the project when cleaning up the definitions files
The text was updated successfully, but these errors were encountered: