Closed ralphcallaway closed 4 years ago
https://github.com/ChuckJonas/generator-ccc/blob/master/generators/app/index.ts#L146
As you can see the current code just: 1: splits on newlines 2: passes it to a set, with default ignores 3: then writes back out using the set
I guess it would be better if we still built the set, but instead checked for each of the default entries in the set and append anything that's missing.
that's what i was thinking, felt bad submitting it since fixing it was marginally longer than writing the repo steps
done
version: 1.1.0
would be nice if the new lines didn't get chomped, better ergonomics :-p
if you start with this
you end with this (new lines get chomped)