-
-
Notifications
You must be signed in to change notification settings - Fork 372
Closed
Labels
Description
Do you want to request a feature or report a bug?
Feature
What is the current behaviour?
Given a invalid package name preact is creating a package.json file with the an invalid package name.
If the current behaviour is a bug, please provide the steps to reproduce.
preact create simple ./a-name-mistaken-for-a-path
cd ./a-name-mistaken-for-a-path
npm start
npm ERR! Invalid name: "./a-name-mistaken-for-a-path"
What is the expected behaviour?
Preact should validate the name before generating files.
If this is a feature request, what is motivation or use case for changing the behaviour?
This is a feature request, it kind of bugs me... thats really the only motivation.
Please mention other relevant information.
- node 8.9.3
- npm 5.5.1
- macOS Sierra, 10.12.6
- preact-cli 2.1.1