From c98aa9312e397d5441cbc33ab039acd528337577 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Wed, 8 Apr 2020 19:03:52 -0400 Subject: [PATCH] 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 PR-URL: https://github.com/nodejs/node/pull/32728 Fixes: https://github.com/nodejs/build/issues/2276 Reviewed-By: Shelley Vohr Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Jiawen Geng --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 594dec3aa844ce..3e27af2c7673bb 100644 --- a/Makefile +++ b/Makefile @@ -780,7 +780,7 @@ out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets run-npm-ci = $(PWD)/$(NPM) ci LINK_DATA = out/doc/apilinks.json -VERSIONS_DATA = out/doc/previous-versions.json +VERSIONS_DATA = out/previous-doc-versions.json gen-api = tools/doc/generate.js --node-version=$(FULLVERSION) \ --apilinks=$(LINK_DATA) $< --output-directory=out/doc/api \ --versions-file=$(VERSIONS_DATA) @@ -812,6 +812,7 @@ docopen: $(apidocs_html) .PHONY: docclean docclean: $(RM) -r out/doc + $(RM) "$(VERSIONS_DATA)" RAWVER=$(shell $(PYTHON) tools/getnodeversion.py) VERSION=v$(RAWVER)