Skip to content
This repository was archived by the owner on Mar 30, 2021. It is now read-only.
This repository was archived by the owner on Mar 30, 2021. It is now read-only.

If version requested for npm package is 'latest', we don't need to verify if version is valid as it is always valid. #26

@Nikhil-Vats

Description

@Nikhil-Vats

Description

When we import build file from npm, we ask the user for package name and version. In most cases, the version requested will be latest and if it is latest we don't need to verify it exists because it always does.

Steps to Reproduce

Use the generator and when generator asks for version just press enter (as latest is default) or enter latest, it will take time to show you the next prompt because it will verify the version.

Expected Behaviour

The generator should not check for the version if it is latest.

Actual Behaviour

The generator unnecessarily checks whether version is valid or not and this takes time.

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