Skip to content

Error if dev dependency is also prod dependency #17

@jraede

Description

@jraede

I just ran into a fringe-case bug we may want to look at. I originally installed colors as a dev dependency. Then, later, I realized I wanted it in production, so I installed it again as a normal dependency. Thus, the module was listed in both my devDependencies map and dependencies map. When I later pushed my app to heroku, the buildpack removed all dev dependencies, as it is supposed to, but in this case there happened to be a dev dependency that was also a prod dependency. Pulled my hair out for 10 minutes before I realized what was going on.

Thoughts on if this is even something to address?

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