Skip to content

Freezes on invalid name #38

Description

@eruizc-dev

Issue

Attempt to create a new package with an invalid name (not from params) causes the program to freeze.

Repro steps

  1. Call create-react-hook with no params
  2. When asked for package name include caps on it, for example myPackageName
  3. Program freezes

Expected

Program should not freeze and print some sort of message

Workaround

The program is freezing on an error because package names should not include caps. Include the name as a param create-react-hook myPackageName and you will see the actual error:

Error: invalid package name "myPackageName"...

Additional notes

As I previously said, adding an invalid name from params prints the error. I expect them to behave similarly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions