From 0ef9a7e41508c5da6c5f69b1ff0d1ae78a15f8b3 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Wed, 23 Jun 2021 16:08:12 +0100 Subject: [PATCH] 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 --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b60eaa1557..36ce751dd2 100644 --- a/package.json +++ b/package.json @@ -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",