Skip to content

Modules prompt triggers when empty module list is passed #887

@cjpearson

Description

@cjpearson

When the modules flag is used for init, the prompt still shows if the list of modules is empty.

Current behavior

npx init => prompt shown ✅
npx init --modules '@nuxt/fonts' => no prompt ✅
npx init --modules => prompt shown ❌

Expected

npx init => prompt shown ✅
npx init --modules '@nuxt/fonts' => no prompt ✅
npx init --modules '' => no prompt ✅

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions