From 3e05dc7581487a0e251527e7d1cbd361cf84f6eb Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sun, 4 Jan 2026 16:56:05 +0100 Subject: [PATCH] improved cleanup-node-modules --- doc/Jamfile.v2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/Jamfile.v2 b/doc/Jamfile.v2 index 70ff93569..f551dd5ff 100644 --- a/doc/Jamfile.v2 +++ b/doc/Jamfile.v2 @@ -2,6 +2,8 @@ # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +import path ; + make html_ : build_antora.sh : @run-script ; actions run-script @@ -9,11 +11,14 @@ actions run-script bash $(>) } +path-constant DOC_DIR : . ; +.node_modules = [ path.join $(DOC_DIR) node_modules ] ; + make cleanup_node_modules_ : html_ : @cleanup-node-modules ; actions cleanup-node-modules { - bash -c "rm -rf node_modules" + rm -rf $(.node_modules) } ###############################################################################