fix: add link to the docs for dlx, exec, root, bin (#3838)

This commit is contained in:
Zoltan Kochan
2021-10-09 00:04:19 +03:00
committed by GitHub
parent 20336abb85
commit 091ff5f127
7 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"pnpm": patch
---
Add link to the docs to the help output of the root and bin commands.

View File

@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-script-runners": patch
---
Add link to the docs into the help output of dlx and exec.

View File

@@ -1,6 +1,7 @@
import fs from 'fs'
import os from 'os'
import path from 'path'
import { docsUrl } from '@pnpm/cli-utils'
import rimraf from '@zkochan/rimraf'
import execa from 'execa'
import PATH from 'path-name'
@@ -31,6 +32,7 @@ export function help () {
],
},
],
url: docsUrl('dlx'),
usages: ['pnpm dlx <command> [args...]'],
})
}

View File

@@ -1,5 +1,5 @@
import path from 'path'
import { RecursiveSummary, throwOnCommandFail } from '@pnpm/cli-utils'
import { docsUrl, RecursiveSummary, throwOnCommandFail } from '@pnpm/cli-utils'
import { Config, types } from '@pnpm/config'
import { makeNodeRequireOption } from '@pnpm/lifecycle'
import logger from '@pnpm/logger'
@@ -56,6 +56,7 @@ For options that may be used with `-r`, see "pnpm help recursive"',
],
},
],
url: docsUrl('exec'),
usages: ['pnpm [-r] exec <command> [args...]'],
})
}

View File

@@ -1,3 +1,4 @@
import { docsUrl } from '@pnpm/cli-utils'
import { types as allTypes } from '@pnpm/config'
import pick from 'ramda/src/pick'
import renderHelp from 'render-help'
@@ -28,6 +29,7 @@ export function help () {
],
},
],
url: docsUrl('bin'),
usages: ['pnpm bin [-g]'],
})
}

View File

@@ -1,5 +1,6 @@
import path from 'path'
import { types as allTypes } from '@pnpm/config'
import { docsUrl } from '@pnpm/cli-utils'
import pick from 'ramda/src/pick'
import renderHelp from 'render-help'
@@ -29,6 +30,7 @@ export function help () {
],
},
],
url: docsUrl('root'),
usages: ['pnpm root [-g]'],
})
}

1
pnpm-lock.yaml generated
View File

@@ -11293,6 +11293,7 @@ packages:
resolution: {integrity: sha512-KG8SdcoAnw2d6augGwl1kOayALUrXW/P2uOAm2J2+nmW/HjZo7y+8TDg7LejxbekOOSv3kzhq+NSUYkIDAX8eA==}
engines: {node: '>= 10.12.0'}
hasBin: true
requiresBuild: true
dependencies:
env-paths: 2.2.1
glob: 7.2.0