Skip to content

Escaping for package.json #382

Closed
Closed
@riesinger

Description

@riesinger

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:
See this

As you can see, I used double quotes inside of the Author field (for my nickname). This resulted in the following error:
image

When looking into my generated package.json, you can see that the double quotes just got copied into the author field:

....
"author": "Pascal "Arial7" Riesinger <riesinger.pascal@gmail.com>",
  "private": true,
  "scripts": {
....

So my suggestion is to escape the user input before writing it to the package.json file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions