check package.json before run prune