Skip to content

npm run eject silently fails when a config folder already exist #1054

Closed
@ugogo

Description

@ugogo

Description

npm run eject silently fails when a config folder already exist.

Expected behavior

It's a common behavior to have a /config folder at the base of a project.
npm run eject should throw an error or even better, "merge" new files with existing ones.

Actual behavior

➜  react-starter git:(master) mkdir config
➜  react-starter git:(master) npm run eject

> react-scripts eject

Are you sure you want to eject? This action is permanent. [y/N]
y
Ejecting...
➜  react-starter git:(master)

Environment

node -v: 5.0.0
npm -v: 3.3.6
Operating system: macOS Sierra

Reproducible Demo

  • Clone the repo
  • mkdir config
  • npm run eject

Thanks 🙏

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