improved cleanup-node-modules (#337)

This commit is contained in:
joaquintides
2026-01-05 13:15:31 +01:00
committed by GitHub
parent 597276dd9a
commit d60d9069f0

View File

@@ -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)
}
###############################################################################