Closed bjouhier closed 7 years ago
Do you mean to the original .d.ts file? generated by tsc ??
Can you paste here the error output?
Thanks.
@bjouhier can you help me to reproduce the problem?
I had the same problem. I finally have the right fix for this with a test. The test recreates the conditions reported by @bjouhier . The plugin doesn't generate an error, but the TSC complains when trying to consume the generated d.ts created by this plugin. The fix produces the expected d.ts as the test results will show.
As the repository contributors seem to be absent I have created a fork of the package with the PR which solves this merged.
Just replace npm dts-bundle
package by dts-bundle-hot-fix
.
I will take a look to it the nexts days.
0.6.0 npm version released. Thanks!
My main
.d.ts
file contained a line like:This failed. I fixed it by replacing
./foo
by./foo/index
.