-
-
Notifications
You must be signed in to change notification settings - Fork 372
Description
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