Remove old package.json before write a new
Rename functions