From c6e3ce46180c1b1bfff6da98ee6bc4203b121539 Mon Sep 17 00:00:00 2001 From: Wei Dong <40835867+dw511214992@users.noreply.github.com> Date: Thu, 13 Jan 2022 11:22:34 +0800 Subject: [PATCH] use latest autorest core (#2543) --- tools/js-sdk-release-tools/package.json | 2 +- tools/js-sdk-release-tools/src/hlc/hlcCore.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/js-sdk-release-tools/package.json b/tools/js-sdk-release-tools/package.json index 30ff53801..e4fae166f 100644 --- a/tools/js-sdk-release-tools/package.json +++ b/tools/js-sdk-release-tools/package.json @@ -1,6 +1,6 @@ { "name": "@azure-tools/js-sdk-release-tools", - "version": "1.0.7", + "version": "1.0.8", "description": "", "scripts": { "start": "node dist/changelogToolCli.js", diff --git a/tools/js-sdk-release-tools/src/hlc/hlcCore.ts b/tools/js-sdk-release-tools/src/hlc/hlcCore.ts index 48620ff23..9ff2b28c2 100644 --- a/tools/js-sdk-release-tools/src/hlc/hlcCore.ts +++ b/tools/js-sdk-release-tools/src/hlc/hlcCore.ts @@ -48,7 +48,7 @@ function changeReadmeMd(packageFolderPath: string) { export async function generateSdkAutomatically(azureSDKForJSRepoRoot: string, absoluteReadmeMd: string, relativeReadmeMd: string, gitCommitId: string, tag?: string, use?: string, useDebugger?: boolean, additionalArgs?: string, outputJson?: any, swaggerRepoUrl?: string) { logger.logGreen(`>>>>>>>>>>>>>>>>>>> Start: "${absoluteReadmeMd}" >>>>>>>>>>>>>>>>>>>>>>>>>`); - let cmd = `autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=${azureSDKForJSRepoRoot} ${absoluteReadmeMd}`; + let cmd = `autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=${azureSDKForJSRepoRoot} ${absoluteReadmeMd}`; if (tag) { cmd += ` --tag=${tag}`;