Skip to content

Commit

Permalink
set autorest.powershell v4 as default version loaded by autorest (#4793)
Browse files Browse the repository at this point in the history
* set autorest.powershell v4 as default version loaded by autorest

* Add change description for @autorest/configuration

---------

Co-authored-by: Timothee Guerin <[email protected]>
  • Loading branch information
dolauli and timotheeguerin authored Nov 16, 2023
1 parent a71ba5b commit 980e2f5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
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

0 comments on commit 980e2f5

Please sign in to comment.