This PR updates call to prettier from lint script to use npm.
Previously the script would use yarn prettier to call prettier from node_modules/.bin, however, this comand fails now with newer version of yarn as the new yarn thinks this project is a yarn workspace project (due to package.json structure) which is not the case.
Since we're using npm as package manager, it's better to stick to it instead of relying on yarn for simple script calls.
This PR updates yarn prettier command to call npm exec prettier instead.
This PR updates call to prettier from lint script to use npm.
Previously the script would use
yarn prettier
to call prettier fromnode_modules/.bin
, however, this comand fails now with newer version of yarn as the new yarn thinks this project is a yarn workspace project (due to package.json structure) which is not the case.Since we're using
npm
as package manager, it's better to stick to it instead of relying on yarn for simple script calls.This PR updates
yarn prettier
command to callnpm exec prettier
instead.