From 4d506e03d1a809c75b95345868142d26e6492a6a Mon Sep 17 00:00:00 2001 From: Praven Kuttappan <55455725+praveenkuttappan@users.noreply.github.com> Date: Tue, 31 Jan 2023 18:40:12 -0500 Subject: [PATCH] Update JS api parser dependency (#5278) * Update JS api parser dependency --- src/dotnet/APIView/apiview.yml | 6 +----- tools/apiview/parsers/js-api-parser/ci.yml | 8 ++++---- tools/apiview/parsers/js-api-parser/package.json | 5 +++-- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/dotnet/APIView/apiview.yml b/src/dotnet/APIView/apiview.yml index e0dbc925228..b3460509582 100644 --- a/src/dotnet/APIView/apiview.yml +++ b/src/dotnet/APIView/apiview.yml @@ -32,7 +32,7 @@ variables: PythonVersion: '3.10.9' WebClientProjectDirectory: 'src/dotnet/APIView/APIViewWeb/Client' WebProjectPath: 'src/dotnet/APIView/APIViewWeb/APIViewWeb.csproj' - NodeVersion: '12.x' + NodeVersion: '18.x' BuildConfiguration: 'Release' TypeScriptGeneratorDirectory: 'tools/apiview/parsers/js-api-parser' GoParserPackagePath: 'src/go' @@ -65,10 +65,6 @@ stages: version: '$(GoVersion)' displayName: "Use Go $(GoVersion)" - - script: | - npm install -g npm@6.14.6 - displayName: "Install npm 6.14.6" - - script: | npm install workingDirectory: $(WebClientProjectDirectory) diff --git a/tools/apiview/parsers/js-api-parser/ci.yml b/tools/apiview/parsers/js-api-parser/ci.yml index 78d2c011346..6dc8c5c4195 100644 --- a/tools/apiview/parsers/js-api-parser/ci.yml +++ b/tools/apiview/parsers/js-api-parser/ci.yml @@ -8,7 +8,7 @@ trigger: - hotfix/* paths: include: - - tools/apiview/parsers/js-api-parserts-genapi + - tools/apiview/parsers/js-api-parser pr: branches: @@ -19,11 +19,11 @@ pr: - hotfix/* paths: include: - - tools/apiview/parsers/js-api-parserts-genapi + - tools/apiview/parsers/js-api-parser variables: - NodeVersion: '16.x' - TypeScriptGeneratorDirectory: 'tools/apiview/parsers/js-api-parserts-genapi' + NodeVersion: '18.x' + TypeScriptGeneratorDirectory: 'tools/apiview/parsers/js-api-parser' ArtifactName: 'apiview' FeedRegistry: 'https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/' diff --git a/tools/apiview/parsers/js-api-parser/package.json b/tools/apiview/parsers/js-api-parser/package.json index 2d32c51b37b..473021e493c 100644 --- a/tools/apiview/parsers/js-api-parser/package.json +++ b/tools/apiview/parsers/js-api-parser/package.json @@ -9,8 +9,9 @@ "js-tokens": "^6.0.0" }, "devDependencies": { - "ts-node": "^8.10.2", - "typescript": "^3.9.7" + "@types/node": "^14.0.0", + "ts-node": "^10.0.0", + "typescript": "~4.8.0" }, "scripts": { "build": "tsc -p ."