From 876d1f81446e97caa633d3d51b53b4902091550f Mon Sep 17 00:00:00 2001 From: Sandipan Dey Date: Tue, 18 Apr 2023 12:16:14 +0530 Subject: [PATCH] chore: make audit (#148) --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6a15332b..ce1ba95f 100644 --- a/Makefile +++ b/Makefile @@ -5,4 +5,8 @@ test: yarn test codegen: - yarn dev:codegen \ No newline at end of file + yarn dev:codegen + +# 16 is exit code for critical https://classic.yarnpkg.com/lang/en/docs/cli/audit +audit: + bash -c 'yarn audit --level critical; [[ $$? -ge 16 ]] && exit 1 || exit 0'