Azure / Azure/azure-sdk-tools

[bug]: tsp-client should honor the libraries along with specs

Open
#9,346 2 comments 0 reactions 1 assignee Claimed by @catalinaperalta View on GitHub
bug
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

## Description

This is found during the analysis of error in pipeline: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4308242&view=logs&j=d731b843-2b38-5e88-bb49-012fa10bc295&t=f10e5fff-58d7-557f-26b5-c063ad57cd53&l=594

The current build pipeline of `azure-sdk-for-net` will have two `node_modules` folder when generating a typespec based SDK.

```
SDK_Folder
+-- node_modules ==> tsp-client and its dependency
+-- TempTypeSpecFiles
+-- node_modules ==> spec dependency
```

`tsp-client update` will use the packages under `SDK_Folder/node_modules`, instead of `SDK_Folder/TempTypeSpecFiles/node_modules`. I think `tsp-client` should use packages under `SDK_Folder/TempTypeSpecFiles/node_modules` first.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.