I have this problem, i want to change a object value with a npm command (im using react) i put the example here:
const GLOBAL_CONSTANTS = {
mobileIdNumber: '0',
FOOTER_TEXT_LOGIN: 'v.3.8.215',
DEFAULT_OFFSET: '-05:00',
MENU: {
ID_MODULE: 1,
},
};
export default GLOBAL_CONSTANTS;
And i want that FOOTER_TEXT_LOGIN value change to v.3.8.216 or make a +1, when i execute npm run changeVersion, i already tried with sh but i dont knor very well how to use it.