-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Invalid package name. #466
Comments
It's pretty easy to fix by just changing the name, but we could do that |
Im working on a PR now. @ForsakenHarmony, cant seem to get the tests suites to pass though. Happy to contribute :) |
Hmm...tests aren't passing? 🤔 What's the error that you are getting? |
I did a fresh Also the tests take a bit of time to run... |
Aha! Can you please try it running once more? That is because of node-tar which we use for unzipping the template. |
@reznord Thanks! They are passing now. The tests are estimated to take |
@lukeed is working on a PR where he is reworking on the tests. (available in |
@reznord Still getting errors different ones though. |
Closed in #468 |
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
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.
The text was updated successfully, but these errors were encountered: