I want to use npm run build command but the script is slightly different depending if Mac or Windows is used.
The script on Windows is required to be:
set PUBLIC_URL=.&& npm run supportedBrowsers && react-scripts build
But on Mac the script requires: export PUBLIC_URL=. && npm run supportedBrowsers && react-scripts build
How can I apply cross-env to run npm run build no matter if I use Mac or Windows platform?