Skip to content

CLI enhancement: use folder as project name in package.json instead of "basic" #263

Closed
@fthebaud

Description

@fthebaud

When creating a new project using the basic template:

> tinyhttp new basic my-app 
Creating a new tinyhttp project from basic template in my-app folder ⚡
Fetching template contents ⌛
Done! You can now launch your project with running these commands:
    
    cd my-app  

    pnpm run start

This generates a package.json with the name "basic":

  "name": "basic",

Wouldn't it be better to use the folder name instead ?

  "name": "my-app",

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliAffects the CLI app generatoreasyenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions