diff --git a/common/changes/@autorest/configuration/setv4forpowershell_2023-11-15-04-44.json b/common/changes/@autorest/configuration/setv4forpowershell_2023-11-15-04-44.json new file mode 100644 index 0000000000..7fe8cbd200 --- /dev/null +++ b/common/changes/@autorest/configuration/setv4forpowershell_2023-11-15-04-44.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@autorest/configuration", + "comment": "Set autorest.powershell v4 the default version loaded by autorest", + "type": "minor" + } + ], + "packageName": "@autorest/configuration" +} \ No newline at end of file diff --git a/packages/libs/configuration/resources/plugin-powershell.md b/packages/libs/configuration/resources/plugin-powershell.md index 0bf2a89bae..4d4a74ddf4 100644 --- a/packages/libs/configuration/resources/plugin-powershell.md +++ b/packages/libs/configuration/resources/plugin-powershell.md @@ -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" ``` diff --git a/packages/libs/configuration/src/configuration-loader/configuration-loader.ts b/packages/libs/configuration/src/configuration-loader/configuration-loader.ts index fc2f1aaa2b..25419db62f 100644 --- a/packages/libs/configuration/src/configuration-loader/configuration-loader.ts +++ b/packages/libs/configuration/src/configuration-loader/configuration-loader.ts @@ -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`, ); }