Closed edsrzf closed 4 years ago
Thanks Evan! I'll open an issue for the test issue that you described
Thanks for merging! Could we please get a release including this fix?
I want to fix some other issues as well, the release should be there in a few days
Published as 6.0.0-alpha.1.
Previously, if there was no JavaScript output from a file, the output would be skipped entirely. This meant that when emitDeclarationOnly was enabled, the declarations would not be written to the
dts
stream.Fixes #607.
One note on the test case: I found it actually passed even before making the change because
gulp-diff
only checks the files that exist in the stream. For example, if the stream is empty, the test will pass, even if there are files in thebaseline
directory. I did verify that, after my change, if the output differs, the test will fail.