Skip to content

Remove tshy and add warp config generation for HLC (autorest.typescript)#3827

Merged
MaryGao merged 8 commits intomainfrom
copilot/remove-tshy-add-build-warp-config
Mar 9, 2026
Merged

Remove tshy and add warp config generation for HLC (autorest.typescript)#3827
MaryGao merged 8 commits intomainfrom
copilot/remove-tshy-add-build-warp-config

Conversation

Copy link
Contributor

Copilot AI commented Mar 9, 2026

  • Modify packageFileGenerator.ts:
    • Remove tshy from devDependencies when azureSdkForJs is true
    • Replace tshy config with warp-style exports when azureSdkForJs is true (inlined, no import needed)
    • Keep tshy config and devDependency for non-Azure packages
    • Add generateWarpConfig function to create warp.config.yml (with comment header)
  • Modify typescriptGenerator.ts to call generateWarpConfig when azureSdkForJs is true
  • Revert unnecessary packageCommon.js re-export from rlc-common index
  • Regenerate all affected test fixtures (80+ integration test packages)
  • Run unit tests - all passing (92 passing)
  • Reverted commit 815d444 (restore comment header lines in generateWarpConfig and generated warp.config.yml files)
Original prompt

This section details on the original issue you should resolve

<issue_title>Remove tshy and add a function to build warp config for hlc</issue_title>
<issue_description>From this pr: #3802
we only remove tshy dependency and add a new function buildWarpConfig to build configs in rlc-common, We still need support this in autorest.typescript</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

….typescript

- Replace tshy config with warp-style exports for Azure monorepo packages
- Remove tshy from devDependencies when azureSdkForJs is true
- Add generateWarpConfig function to generate warp.config.yml
- Export resolveWarpExports from rlc-common index
- Regenerate all affected test fixtures

Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove tshy and add function to build warp config for hlc Remove tshy and add warp config generation for HLC (autorest.typescript) Mar 9, 2026
Remove the resolveWarpExports import from @azure-tools/rlc-common and
inline the exports object directly in packageFileGenerator.ts. Also
revert the unnecessary packageCommon.js re-export from rlc-common index.

Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
@kazrael2119 kazrael2119 marked this pull request as ready for review March 9, 2026 08:38
Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
@kazrael2119
Copy link
Member

@copilot revert commit "815d444bb041830f4d8e6cb5c91db0fc7cd195d1"

…nfig output)

Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 9, 2026

@copilot revert commit "815d444bb041830f4d8e6cb5c91db0fc7cd195d1"

Reverted in 52a7991. The comment header lines (# warp.config.yml — build configuration and the blank line) are restored in generateWarpConfig and all generated warp.config.yml files.

return;
}

const lines: string[] = [];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why line by line? could we share the one in modular to share most common parts?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MaryGao MaryGao enabled auto-merge (squash) March 9, 2026 09:37
@MaryGao MaryGao merged commit f628674 into main Mar 9, 2026
16 checks passed
@MaryGao MaryGao deleted the copilot/remove-tshy-add-build-warp-config branch March 9, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove tshy and add a function to build warp config for hlc

3 participants