-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stripExtensions doesn't work with dot files #324
Comments
Any update on this? It is currently preventing me from using this package, as I can't copy |
I have the same problem with |
A workaround is to rename the files and add some fake placeholder, like this: This will copy the file, remove the extension, and try to replace |
it appears if only one file has one extension (e.g.
generated files:
|
Transfering this issue to https://github.com/plopjs/plop/ since we're migrating all of |
appreciate the fix @knikolov-nuvolo , this solved my issue |
I have, for example, a folder with a
.babelrc
and apackage.json
file in it. However, I'd like to pass some values into these files so I rename them.babelrc.hbs
andpackage.json.hbs
respectively.Then when using them as
templateFiles
with anaddMany
action, thepackage.json
file is correctly renamed but the.babelrc.hbs
still has thehbs
suffix.Unless I'm missing something, this is hopefully solved by adding a simple check to the
stripExtensions
function, to make sure hidden files are included. I'd be happy to look into this and submit a pull request if that's the case.The text was updated successfully, but these errors were encountered: