Skip to content

preact create does not write the proper name in the package.json file #408

@ricardobrandao

Description

@ricardobrandao

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Package.json name property is not overriden (i.e. it maintains the placeholder "name": "{{ name }}")

If the current behavior is a bug, please provide the steps to reproduce.

Run the following steps:

preact create default some-name
cd some-name
yarn

The following error is thrown:
error package.json: Name contains illegal characters

If we pass a --name parameter, all works as expected. E.g. preact create default some-name --name some-name.

What is the expected behavior?

Either reflect the parameter requirement in the documentation or automatically map the project name.

The name property should be overwritten in the package.json file:
{ "name": "some-name" ... }

Please mention other relevant information.

  • node 8.6.0
  • npm 5.5.1
  • yarn 1.2.1
  • MacOS Hight Sierra

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions