Эх сурвалжийг харах

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)
Csongor Kiss 3 жил өмнө
parent
commit
f39c5ac81b
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      clients/js/Makefile

+ 1 - 1
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