I'm trying to run the following script, but I am getting an error saying
'locale' was unexpected at this time
. I'm on a Windows machine, running this in Git Bash. It's a package.json
file.
{
...
"build-lang": "for locale in en-US ar-EG es-ES; do echo Building ${locale};
ng build --configuration local-$locale; done",
...
}
'locale' was unexpected at this time
This is inside a nodejs package.json file and I'm executing the script in the following way:
npm run build-lang