.nh .TH "HUGO-MOD-NPM-PACK" "1" "Aug 2026" "Hugo 0.165.0" "Hugo Manual" .SH NAME hugo-mod-npm-pack - Merges module Node.js dependencies into an npm workspace .SH SYNOPSIS \fBhugo mod npm pack [flags] [args]\fP .SH DESCRIPTION Merges Node.js dependencies from all Hugo modules into a "packages/hugoautogen" npm workspace. .PP The merged dependencies are written to packages/hugoautogen/package.json, and the root package.json is updated with a "workspaces" entry pointing to "packages/hugoautogen". .PP The source entries are read from either package.hugo.json or package.json in the module root, with package.hugo.json taking precedence if both exist. .PP See Node.js dependencies \[la]/hugo\-modules/nodejs\-dependencies/\[ra] for more information. .SH OPTIONS \fB-b\fP, \fB--baseURL\fP="" hostname (and path) to the root, e.g. https://spf13.com/ .PP \fB--cacheDir\fP="" filesystem path to cache directory .PP \fB-c\fP, \fB--contentDir\fP="" filesystem path to content directory .PP \fB-h\fP, \fB--help\fP[=false] help for pack .PP \fB--renderSegments\fP=[] named segments to render (configured in the segments config) .PP \fB-t\fP, \fB--theme\fP=[] themes to use (located in /themes/THEMENAME/) .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--clock\fP="" set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00 .PP \fB--config\fP="" config file (default is hugo.yaml|json|toml) .PP \fB--configDir\fP="config" config dir .PP \fB-d\fP, \fB--destination\fP="" filesystem path to write files to .PP \fB-e\fP, \fB--environment\fP="" build environment .PP \fB--ignoreVendorPaths\fP="" ignores any _vendor for module paths matching the given Glob pattern .PP \fB--logLevel\fP="" log level (debug|info|warn|error) .PP \fB--noBuildLock\fP[=false] don't create .hugo_build.lock file .PP \fB--quiet\fP[=false] build in quiet mode .PP \fB-M\fP, \fB--renderToMemory\fP[=false] render to memory (mostly useful when running the server) .PP \fB-s\fP, \fB--source\fP="" filesystem path to read files relative from .PP \fB--themesDir\fP="" filesystem path to themes directory .SH SEE ALSO \fBhugo-mod-npm(1)\fP