plop
plop copied to clipboard
fix: stripExtensions doesn't work with dot files
This PR was originally made by @rwacarter in the node-plop dedicated repo and moved over by hand to me: https://github.com/plopjs/node-plop/pull/192
Fixes the issue I mentioned in plopjs/plop#324, where Handlebars templates without file extensions (e.g. .babelrc
, .prettierrc
, etc) do not have the .hbs
extension removed.
👀