michoel
07/15/2021, 11:59 PMpackage.json
and then added them as run configurations in Webstorm
"scripts": {
"switch-sandbox-dev": "node -e \"require('fs').writeFileSync('project.json', '{\"\"accountSpecificValues\"\":\"\"ERROR\"\",\"\"defaultAuthId\"\":\"\"sandbox-dev\"\"}');\"",
"switch-sandbox-uat": "node -e \"require('fs').writeFileSync('project.json', '{\"\"accountSpecificValues\"\":\"\"ERROR\"\",\"\"defaultAuthId\"\":\"\"sandbox-uat\"\"}');\"",
"switch-sandbox-qa": "node -e \"require('fs').writeFileSync('project.json', '{\"\"accountSpecificValues\"\":\"\"ERROR\"\",\"\"defaultAuthId\"\":\"\"sandbox-qa\"\"}');\"",
"switch-sandbox-staging": "node -e \"require('fs').writeFileSync('project.json', '{\"\"accountSpecificValues\"\":\"\"ERROR\"\",\"\"defaultAuthId\"\":\"\"sandbox-staging\"\"}');\"",
"switch-production": "node -e \"require('fs').writeFileSync('project.json', '{\"\"accountSpecificValues\"\":\"\"ERROR\"\",\"\"defaultAuthId\"\":\"\"production\"\"}');\""
},