[refactor] Cleaning up CLI version before making npm compatible version