Skip to content

eject command on windows creates different path sepalators to package.json #1498

Closed
@monamu

Description

@monamu

Description

After npm run eject on Windows , path sepalators in package.json are '\' (double back slash).

  • npm run eject on Windows

package.json

"setupFiles": [
  "<rootDir>\\config\\polyfills.js"
]
  • npm run eject on OS X

package.json

"setupFiles": [
  "<rootDir>/config/polyfills.js"
]

Expected behavior

"setupFiles": [
  "<rootDir>/config/polyfills.js"
]

path sepalator '/' is runs both (win/mac) environments.

Environment

  1. npm ls react-scripts (if you haven’t ejected):
    [email protected]

  2. node -v:
    v7.4.0

  3. npm -v:
    4.1.2

  4. Operating system:

Windows 7 64bit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions