Support singular 'script' dirname convention #72
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I can't find any documentation or any source that finds either of 'scripts' or 'script' to be more common in practice.
Absent any data, I lean only on anecdotal experience when I find 'script' to be more common in the wild than 'scripts'.
To further defend this, GitHub has blogged their "Scripts to Rule Them All" pattern, and for it they use 'script' singular.
This change adds 'script' (and 'script-win') as fallbacks if the plural version does not exist.
This should be a semver minor change.
Any users who may incidentally already have both scripts and script directories,
scripts
will continue to be preferred (as long as it exists). The singular 'script' is only used as a fallback whenscripts
does not exist.The same is true for Windows users.
scripts-win
is preferred if bothscripts-win
andscript-win
exist.The only users who may experience an issue are Windows users who do not have a
scripts-win
directory but do have ascript-win
directory, for some reason. In this case, what would have fallen back toscripts
will now be preempted byscript-win
.closes #52