Having separate prod scripts pollute package.json s and are error prone - it is theoretically possible to run prod script in dev environment and vice versa.
Better solution is to have certain launch script which checks what is the current environment and executes according command.
Having separate prod scripts pollute package.json s and are error prone - it is theoretically possible to run prod script in dev environment and vice versa. Better solution is to have certain launch script which checks what is the current environment and executes according command.