Skip to content

Commit 145dcc2

Browse files
richardlauBethGriggs
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 24b927a commit 145dcc2

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
@@ -649,7 +649,7 @@ out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets
649649
run-npm-ci = $(PWD)/$(NPM) ci
650650

651651
LINK_DATA = out/doc/apilinks.json
652-
VERSIONS_DATA = out/doc/previous-versions.json
652+
VERSIONS_DATA = out/previous-doc-versions.json
653653
gen-api = tools/doc/generate.js --node-version=$(FULLVERSION) \
654654
--apilinks=$(LINK_DATA) $< --output-directory=out/doc/api \
655655
--versions-file=$(VERSIONS_DATA)
@@ -681,6 +681,7 @@ docopen: $(apidocs_html)
681681
.PHONY: docclean
682682
docclean:
683683
$(RM) -r out/doc
684+
$(RM) "$(VERSIONS_DATA)"
684685

685686
RAWVER=$(shell $(PYTHON) tools/getnodeversion.py)
686687
VERSION=v$(RAWVER)

0 commit comments

Comments
 (0)