Added quick commands for resetting yarn

- We keep having test issues caused by yarn, these fix commands help quickly check it's not a yarn problem
- Have renamed fixmodulenotrequired to fix:client to make a nice consistent naming pattern that's easy to remember and type
This commit is contained in:
Hannah Wolfe 2021-06-23 16:08:12 +01:00
parent dc91eabe3c
commit 0ef9a7e415
No known key found for this signature in database
GPG Key ID: 9F8C7532D0A6BA55

View File

@ -33,7 +33,9 @@
"lint:code": "yarn lint:server && yarn lint:shared && yarn lint:frontend",
"lint": "yarn lint:server && yarn lint:shared && yarn lint:frontend && yarn lint:test",
"posttest": "yarn lint",
"fixmodulenotdefined": "yarn cache clean && cd core/client && rm -rf node_modules tmp dist && yarn && cd ../../"
"fix:client": "yarn cache clean && cd core/client && rm -rf node_modules tmp dist && yarn && cd ../../",
"fix:server": "yarn cache clean && rm -rf node_modules && yarn",
"fix": "yarn fix:client && yarn fix:server"
},
"engines": {
"node": "^12.22.1 || ^14.16.1",