After various updates of pnpm the -y flag as been deprecated and just using pnpm init will create a basic package.json file and save it without any prompt for you to fill in the details
furthermore --save-dev can be replaced with -D
I'm currently working on this issue, can it be assigned to me?