mirror of
https://github.com/pnpm/pnpm.git
synced 2026-01-06 22:18:17 -05:00
fix: add link to the docs for dlx, exec, root, bin (#3838)
This commit is contained in:
5
.changeset/ninety-worms-chew.md
Normal file
5
.changeset/ninety-worms-chew.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Add link to the docs to the help output of the root and bin commands.
|
||||
5
.changeset/sweet-wombats-divide.md
Normal file
5
.changeset/sweet-wombats-divide.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-script-runners": patch
|
||||
---
|
||||
|
||||
Add link to the docs into the help output of dlx and exec.
|
||||
@@ -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...]'],
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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...]'],
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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]'],
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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
1
pnpm-lock.yaml
generated
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user