Fixed issue with package.json. Added check for readonly props