Skip to content

Commit 3c2e844

Browse files
committed
Exclude node_modules dirs in non-lib dirs when resolving files
1 parent 867784c commit 3c2e844

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+43
-0
lines changed

tools/make/lib/ls/benchmarks.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FIND_BENCHMARKS_FLAGS ?= \
2020
-regex "$(BENCHMARKS_FILTER)" \
2121
-not -path "$(ROOT_DIR)/.*" \
2222
-not -path "$(NODE_MODULES)/*" \
23+
-not -path "$(DOCS_DIR)/**/$(NODE_MODULES_FOLDER)/*" \
2324
-not -path "$(TOOLS_DIR)/*" \
2425
-not -path "$(TOOLS_PKGS_DIR)/*" \
2526
-not -path "$(BUILD_DIR)/*" \

tools/make/lib/ls/benchmarks_c.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FIND_C_BENCHMARKS_FLAGS ?= \
2020
-regex "$(BENCHMARKS_FILTER)" \
2121
-not -path "$(ROOT_DIR)/.*" \
2222
-not -path "$(NODE_MODULES)/*" \
23+
-not -path "$(DOCS_DIR)/**/$(NODE_MODULES_FOLDER)/*" \
2324
-not -path "$(TOOLS_DIR)/*" \
2425
-not -path "$(TOOLS_PKGS_DIR)/*" \
2526
-not -path "$(BUILD_DIR)/*" \

tools/make/lib/ls/benchmarks_cpp.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FIND_CPP_BENCHMARKS_FLAGS ?= \
2020
-regex "$(BENCHMARKS_FILTER)" \
2121
-not -path "$(ROOT_DIR)/.*" \
2222
-not -path "$(NODE_MODULES)/*" \
23+
-not -path "$(DOCS_DIR)/**/$(NODE_MODULES_FOLDER)/*" \
2324
-not -path "$(TOOLS_DIR)/*" \
2425
-not -path "$(TOOLS_PKGS_DIR)/*" \
2526
-not -path "$(BUILD_DIR)/*" \

tools/make/lib/ls/benchmarks_fortran.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FIND_FORTRAN_BENCHMARKS_FLAGS ?= \
2020
-regex "$(BENCHMARKS_FILTER)" \
2121
-not -path "$(ROOT_DIR)/.*" \
2222
-not -path "$(NODE_MODULES)/*" \
23+
-not -path "$(DOCS_DIR)/**/$(NODE_MODULES_FOLDER)/*" \
2324
-not -path "$(TOOLS_DIR)/*" \
2425
-not -path "$(TOOLS_PKGS_DIR)/*" \
2526
-not -path "$(BUILD_DIR)/*" \

tools/make/lib/ls/benchmarks_julia.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FIND_JULIA_BENCHMARKS_FLAGS ?= \
2020
-regex "$(BENCHMARKS_FILTER)" \
2121
-not -path "$(ROOT_DIR)/.*" \
2222
-not -path "$(NODE_MODULES)/*" \
23+
-not -path "$(DOCS_DIR)/**/$(NODE_MODULES_FOLDER)/*" \
2324
-not -path "$(TOOLS_DIR)/*" \
2425
-not -path "$(TOOLS_PKGS_DIR)/*" \
2526
-not -path "$(BUILD_DIR)/*" \

tools/make/lib/ls/benchmarks_python.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FIND_PYTHON_BENCHMARKS_FLAGS ?= \
2020
-regex "$(BENCHMARKS_FILTER)" \
2121
-not -path "$(ROOT_DIR)/.*" \
2222
-not -path "$(NODE_MODULES)/*" \
23+
-not -path "$(DOCS_DIR)/**/$(NODE_MODULES_FOLDER)/*" \
2324
-not -path "$(TOOLS_DIR)/*" \
2425
-not -path "$(TOOLS_PKGS_DIR)/*" \
2526
-not -path "$(BUILD_DIR)/*" \

tools/make/lib/ls/benchmarks_r.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FIND_R_BENCHMARKS_FLAGS ?= \
2020
-regex "$(BENCHMARKS_FILTER)" \
2121
-not -path "$(ROOT_DIR)/.*" \
2222
-not -path "$(NODE_MODULES)/*" \
23+
-not -path "$(DOCS_DIR)/**/$(NODE_MODULES_FOLDER)/*" \
2324
-not -path "$(TOOLS_DIR)/*" \
2425
-not -path "$(TOOLS_PKGS_DIR)/*" \
2526
-not -path "$(BUILD_DIR)/*" \

tools/make/lib/ls/c.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ FIND_C_FLAGS ?= \
1919
-regex "$(C_FILTER)" \
2020
-not -path "$(ROOT_DIR)/.*" \
2121
-not -path "$(NODE_MODULES)/*" \
22+
-not -path "$(DOCS_DIR)/**/$(NODE_MODULES_FOLDER)/*" \
2223
-not -path "$(BUILD_DIR)/*" \
2324
-not -path "$(DIST_DIR)/*" \
2425
-not -path "$(DEPS_DIR)/*" \

tools/make/lib/ls/cpp.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ FIND_CPP_FLAGS ?= \
1919
-regex "$(CPP_FILTER)" \
2020
-not -path "$(ROOT_DIR)/.*" \
2121
-not -path "$(NODE_MODULES)/*" \
22+
-not -path "$(DOCS_DIR)/**/$(NODE_MODULES_FOLDER)/*" \
2223
-not -path "$(BUILD_DIR)/*" \
2324
-not -path "$(DIST_DIR)/*" \
2425
-not -path "$(DEPS_DIR)/*" \

tools/make/lib/ls/examples.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FIND_EXAMPLES_FLAGS ?= \
2020
-regex "$(EXAMPLES_FILTER)" \
2121
-not -path "$(ROOT_DIR)/.*" \
2222
-not -path "$(NODE_MODULES)/*" \
23+
-not -path "$(DOCS_DIR)/**/$(NODE_MODULES_FOLDER)/*" \
2324
-not -path "$(TOOLS_DIR)/*" \
2425
-not -path "$(TOOLS_PKGS_DIR)/*" \
2526
-not -path "$(BUILD_DIR)/*" \

0 commit comments

Comments
 (0)