-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Escaping for package.json #382
Labels
Comments
Hey, thanks for reporting this. It's indeed not expected. It's a fairly easy PR. Tests may be a bit complicated because of the cli nature, though |
I just pushed a PR (#388) that fixes this. |
This was referenced May 26, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am certain if this is a issue with vue-cli or the template, however I think the "setup questions" are asked by the cli?
My problem: I just setup a new project and followed the standard procedure:
As you can see, I used double quotes inside of the Author field (for my nickname). This resulted in the following error:
When looking into my generated package.json, you can see that the double quotes just got copied into the
author
field:So my suggestion is to escape the user input before writing it to the
package.json
file.The text was updated successfully, but these errors were encountered: