eject command on windows creates different path sepalators to package.json
Created by: 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
-
npm ls react-scripts
(if you haven’t ejected): react-scripts@0.8.5 -
node -v
: v7.4.0 -
npm -v
: 4.1.2 -
Operating system:
Windows 7 64bit