Skip to content

Commit d01639f

Browse files
Merge pull request #5267 from NativeScript/vladimirov/fix-package-manager-help
fix: improve package-manager help and info messages
2 parents 5ab0d30 + d72434b commit d01639f

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

docs/man_pages/general/package-manager-get.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ General | `$ tns package-manager get`
2222
Command | Description
2323
----------|----------
2424
[package-manager-set](package-manager-set.html) | Enables the specified package manager for the NativeScript CLI. Supported values are npm, yarn and pnpm.
25+
[package-manager-get](package-manager-get.html) | Prints the value of the current package manager.
2526
<% } %>

docs/man_pages/general/package-manager-set.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ position: 18
77

88
### Description
99

10-
Enables the specified package manager for the NativeScript CLI. Supported values are npm and yarn.
10+
Enables the specified package manager for the NativeScript CLI. Supported values are npm, yarn and pnpm.
1111

1212
### Commands
1313

docs/man_pages/start.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Command | Description
2323
[proxy](general/proxy.html) | Displays proxy settings.
2424
[migrate](general/migrate.html) | Migrates the app dependencies to a form compatible with NativeScript 6.0.
2525
[update](general/update.html) | Updates the project with the latest versions of iOS/Android runtimes and cross-platform modules.
26+
[package-manager](general/package-manager.html) | Prints the value of the current package manager.
2627

2728
## Project Development Commands
2829
Command | Description

lib/common/commands/package-manager-set.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export class PackageManagerCommand implements ICommand {
1818

1919
await this.$userSettingsService.saveSetting("packageManager", packageManagerName);
2020

21+
this.$logger.printMarkdown(`Please ensure you have the directory containing \`${packageManagerName}\` executable available in your PATH.`);
2122
this.$logger.printMarkdown(`You've successfully set \`${packageManagerName}\` as your package manager.`);
2223
}
2324
}

0 commit comments

Comments
 (0)