Skip to content

Commit 26566f2

Browse files
author
Cerem Cem ASLAN
committed
added npm-audit shortcuts
1 parent 9faff18 commit 26566f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,10 @@ __release_commit:
7171

7272
release-push:
7373
@( cd release/$(APP) && git push )
74+
75+
list-modules:
76+
@find . -name package.json -and -not -path "*/node_modules/*" | xargs dirname | sort
77+
78+
npm-audit-all:
79+
@$(MAKE) list-modules --no-print-directory | xargs -I '{}' bash -c \
80+
'cd {}; echo -e "-----------\nAudit for {}:\n-----------\n\n"; npm i --package-lock-only; npm audit'

0 commit comments

Comments
 (0)