Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set autorest.powershell v4 as default version loaded by autorest #4793

Merged
merged 3 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@autorest/configuration",
"comment": "Set autorest.powershell v4 the default version loaded by autorest",
"type": "minor"
}
],
"packageName": "@autorest/configuration"
}
4 changes: 2 additions & 2 deletions packages/libs/configuration/resources/plugin-powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ try-require: ./readme.powershell.md
Note: if the --powershell is mentioned, but they are using autorest.powershell locally, don't try to load the autorest.powershell from npm.

```yaml $(powershell) && !isLoaded('@autorest/powershell')
# load the extension (3.0+)
# load the extension (4.0+)
use-extension:
"@autorest/powershell": "~3.0.0"
"@autorest/powershell": "~4.0.0"
```
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export class ConfigurationLoader {
// Add a hint here to make legacy users to be aware that the default version has been bumped to 3.0+.
if (shortname === "powershell") {
this.logger.info(
`\n## The default version of @autorest/powershell has been bumped from 2.1+ to 3.0+.\n > If you still want to use 2.1+ version, please specify it with --use:@autorest/powershell@2.1.{x}, e.g 2.1.401.\n`,
`\n## The default version of @autorest/powershell has been bumped from 3.0+ to 4.0+.\n > If you still want to use 3.0+ version, please specify it with --use:@autorest/powershell@3.0.{x}, e.g 3.0.512.\n`,
);
}

Expand Down
Loading