Open flaviocopes opened 3 years ago
I don't believe 4
is a valid package name. But PR welcome to make the error more friendly.
I didn't write this code (and don't use create
), but I believe that's because create
runs a regex replace on the input. In this case it replaces it with an empty string, hence the "Missing" error.
Current Behavior
I was trying various tools and created a folder structure with subfolders named
1
,2
,3
, so when I triedtsdx
I ranand after choosing the basic template I got the error
Missing options. Ensure you pass --name flag to tsdx
.Took me a little while to figure out the problem was the number, as running
worked.
Expected behavior
I expect either it to work correctly, or to tell me using a number with
npx tsdx create
does not work.Suggested solution(s)
Additional context
Your environment