grunt-ts icon indicating copy to clipboard operation
grunt-ts copied to clipboard

Updating to v5.4.0 led to a change in the order in which the files are concatenated

Open thorn0 opened this issue 9 years ago • 2 comments
trafficstars

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.

thorn0 avatar Mar 25 '16 21:03 thorn0

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.

nycdotnet avatar Mar 25 '16 23:03 nycdotnet

Related issue: https://github.com/Microsoft/TypeScript/issues/8776 ('File enumeration order in directory-scanning mode should be deterministic')

thorn0 avatar Sep 23 '16 09:09 thorn0