mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
commands: Update docs linke to Node.js docs
This commit is contained in:
+3
-3
@@ -50,15 +50,15 @@ func newModCommands() *modCommands {
|
|||||||
commands: []simplecobra.Commander{
|
commands: []simplecobra.Commander{
|
||||||
&simpleCommand{
|
&simpleCommand{
|
||||||
name: "pack",
|
name: "pack",
|
||||||
short: "Merges module npm dependencies into an npm workspace",
|
short: "Merges module Node.js dependencies into an npm workspace",
|
||||||
long: `Merges npm dependencies from all Hugo modules into a "packages/hugoautogen" npm workspace.
|
long: `Merges Node.js dependencies from all Hugo modules into a "packages/hugoautogen" npm workspace.
|
||||||
|
|
||||||
The merged dependencies are written to packages/hugoautogen/package.json, and the root package.json
|
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".
|
is updated with a "workspaces" entry pointing to "packages/hugoautogen".
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
See [npm dependencies](/hugo-modules/npm-dependencies/) for more information.
|
See [Node.js dependencies](/hugo-modules/nodejs-dependencies/) for more information.
|
||||||
`,
|
`,
|
||||||
withc: func(cmd *cobra.Command, r *rootCommand) {
|
withc: func(cmd *cobra.Command, r *rootCommand) {
|
||||||
cmd.ValidArgsFunction = cobra.NoFileCompletions
|
cmd.ValidArgsFunction = cobra.NoFileCompletions
|
||||||
|
|||||||
Reference in New Issue
Block a user