Add 'pnpm' option to NPM scripts (#100654)

Co-authored-by: Alex Ross <alros@microsoft.com>
This commit is contained in:
Anoesj Sadraee 2020-07-01 15:36:37 +02:00 committed by GitHub
parent dbfc5dd2fe
commit cac8f2e908
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -34,7 +34,7 @@ The extension fetches data from https://registry.npmjs.org and https://registry.
- `npm.autoDetect` - Enable detecting scripts as tasks, the default is `on`.
- `npm.runSilent` - Run npm script with the `--silent` option, the default is `false`.
- `npm.packageManager` - The package manager used to run the scripts: `npm` or `yarn`, the default is `npm`.
- `npm.packageManager` - The package manager used to run the scripts: `npm`, `yarn` or `pnpm`, the default is `npm`.
- `npm.exclude` - Glob patterns for folders that should be excluded from automatic script detection. The pattern is matched against the **absolute path** of the package.json. For example, to exclude all test folders use '&ast;&ast;/test/&ast;&ast;'.
- `npm.enableScriptExplorer` - Enable an explorer view for npm scripts.
- `npm.scriptExplorerAction` - The default click action: `open` or `run`, the default is `open`.

View file

@ -215,7 +215,8 @@
"type": "string",
"enum": [
"npm",
"yarn"
"yarn",
"pnpm"
],
"default": "npm",
"description": "%config.npm.packageManager%"