grunt-ts
grunt-ts copied to clipboard
Updating to v5.4.0 led to a change in the order in which the files are concatenated
In my project, tsconfig.json with the outFile option is used. With v5.3.2, the files in the project root went first in the output file, which was exactly what is needed. But after the update, the order has changed. The files seem to be sorted by their name now, regardless their location. My project was broken, and I had to stick with 5.3.2.
So, is this an intended change?
How can I enforce the order so that the files from the root would always be first even if I switch to a newer version of grunt-ts?
Actually, in this case (when tsconfig.json exists), I think grunt-ts shouldn't have any influence on the concatenation order at all. If I run tsc directly from the command line, I get the same results as with 5.3.2.
Hi, we did change that code but this was not one of the intended results. I also think grunt-ts should respect the order used by tsc.
Related issue: https://github.com/Microsoft/TypeScript/issues/8776 ('File enumeration order in directory-scanning mode should be deterministic')