Skip to content

Commit f9a2276

Browse files
richardlautargos
authored andcommitted
build: move doc versions JSON file out of out/doc
Move the generated previous doc versions JSON file out of `out/doc` to prevent it being included in the distributed packages. Signed-off-by: Richard Lau <[email protected]> PR-URL: #32728 Fixes: nodejs/build#2276 Reviewed-By: Shelley Vohr <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
1 parent 66aafcf commit f9a2276

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets
780780
run-npm-ci = $(PWD)/$(NPM) ci
781781

782782
LINK_DATA = out/doc/apilinks.json
783-
VERSIONS_DATA = out/doc/previous-versions.json
783+
VERSIONS_DATA = out/previous-doc-versions.json
784784
gen-api = tools/doc/generate.js --node-version=$(FULLVERSION) \
785785
--apilinks=$(LINK_DATA) $< --output-directory=out/doc/api \
786786
--versions-file=$(VERSIONS_DATA)
@@ -812,6 +812,7 @@ docopen: $(apidocs_html)
812812
.PHONY: docclean
813813
docclean:
814814
$(RM) -r out/doc
815+
$(RM) "$(VERSIONS_DATA)"
815816

816817
RAWVER=$(shell $(PYTHON) tools/getnodeversion.py)
817818
VERSION=v$(RAWVER)

0 commit comments

Comments
 (0)