Skip to content

Commit 92948b3

Browse files
committed
Update docs and support searching in a specified directory
1 parent d18437d commit 92948b3

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

tools/make/lib/ls/pkgs/namespaces.mk

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,22 @@ LIST_PACKAGE_NAMESPACES ?= $(TOOLS_PKGS_DIR)/pkgs/namespaces/bin/cli
2424
# Define the command flags:
2525
LIST_PACKAGE_NAMESPACES_FLAGS ?=
2626

27+
# Define the directory from which to search for namespaces:
28+
LIST_PACKAGE_NAMESPACES_DIR ?= $(SRC_DIR)
2729

28-
# TARGETS #
2930

30-
# List all package namespaces.
31-
#
32-
# This target prints a list of all package namespaces.
31+
# RULES #
3332

33+
#/
34+
# Prints a list of all package namespaces.
35+
#
36+
# @example
37+
# make list-pkgs-namespaces
38+
#
39+
# @example
40+
# make list-pkgs-namespaces LIST_PACKAGE_NAMESPACES_DIR=$PWD/lib/node_modules/\@stdlib/utils
41+
#/
3442
list-pkgs-namespaces: $(LIST_PACKAGE_NAMESPACES) $(NODE_MODULES)
35-
$(QUIET) NODE_PATH="$(NODE_PATH)" $(NODE) $(LIST_PACKAGE_NAMESPACES) $(LIST_PACKAGE_NAMESPACES_FLAGS) $(SRC_DIR)
43+
$(QUIET) NODE_PATH="$(NODE_PATH)" $(NODE) $(LIST_PACKAGE_NAMESPACES) $(LIST_PACKAGE_NAMESPACES_FLAGS) $(LIST_PACKAGE_NAMESPACES_DIR)
3644

3745
.PHONY: list-pkgs-namespaces

0 commit comments

Comments
 (0)