From f39c5ac81bd16bb87e0a45d1a7ebeda929860e11 Mon Sep 17 00:00:00 2001 From: Csongor Kiss Date: Fri, 21 Oct 2022 15:32:16 +0100 Subject: [PATCH] worm: make make make faster pruning the node_modules directory instead of excluding the matches means that node_modules is now never traversed in the first place, making dependency resolution instantaneous (from ~800ms before) --- clients/js/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/js/Makefile b/clients/js/Makefile index 51dcd3b4d..a0c977b3b 100644 --- a/clients/js/Makefile +++ b/clients/js/Makefile @@ -1,4 +1,4 @@ -SOURCE_FILES:=$(shell find . -name "*.ts" -not -path "./node_modules/*") +SOURCE_FILES:=$(shell find . -type d -name node_modules -prune -o -name "*.ts") .PHONY: all all: build