Skip to content

Commit b936ee5

Browse files
committed
Add task for building a mapping between package names and aliases
1 parent d531f0c commit b936ee5

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

tools/make/lib/docs/repl.mk

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,17 @@ REPL_BUILD_ALIASES ?= $(SRC_DIR)/@stdlib/namespace/aliases/scripts/build.js
3030
# Define the path to the executable for mapping REPL aliases to package names:
3131
REPL_BUILD_ALIAS2PKG ?= $(SRC_DIR)/@stdlib/namespace/alias2pkg/scripts/build.js
3232

33+
# Define the path to the executable for mapping REPL package names to aliases:
34+
REPL_BUILD_PKG2ALIAS ?= $(SRC_DIR)/@stdlib/namespace/pkg2alias/scripts/build.js
35+
3336

3437
# TARGETS #
3538

3639
# Generate REPL docs.
3740
#
3841
# This target generates REPL documentation.
3942

40-
repl-docs: repl-help repl-examples repl-aliases repl-alias2pkg
43+
repl-docs: repl-help repl-examples repl-aliases repl-alias2pkg repl-pkg2alias
4144

4245
.PHONY: repl-docs
4346

@@ -80,3 +83,13 @@ repl-alias2pkg: $(NODE_MODULES) $(REPL_BUILD_ALIAS2PKG)
8083
$(QUIET) $(NODE) $(REPL_BUILD_ALIAS2PKG)
8184

8285
.PHONY: repl-alias2pkg
86+
87+
88+
# Build the mapping between REPL package names and aliases.
89+
#
90+
# This target rebuilds the REPL database.
91+
92+
repl-pkg2alias: $(NODE_MODULES) $(REPL_BUILD_PKG2ALIAS)
93+
$(QUIET) $(NODE) $(REPL_BUILD_PKG2ALIAS)
94+
95+
.PHONY: repl-pkg2alias

0 commit comments

Comments
 (0)