Skip to content

Decouple typespec-ts from rlc-common#3926

Open
timovv wants to merge 2 commits intoAzure:mainfrom
timovv:rlc-common-decouple
Open

Decouple typespec-ts from rlc-common#3926
timovv wants to merge 2 commits intoAzure:mainfrom
timovv:rlc-common-decouple

Conversation

@timovv
Copy link
Copy Markdown
Member

@timovv timovv commented Apr 20, 2026

In preparation for move to the TypeSpec repo. This PR removes the dependency typespec-ts has on rlc-common so that we don't need to migrate rlc-common to the new repo. Since autorest is going away, there's no point in having a separate rlc-common package.

This was achieved by:

  • Copying the rlc-common source code into typespec-ts/src/rlc-common/
  • Updating all rlc-common references in typespec-ts to refer to the new subfolder instead of the external package
  • Fixing lint errors
  • Removing (some) now-unused code in the rlc-common subfolder.

This PR makes the migration easier and opens the door for a more thorough refactor/integration of the rlc-common code in the future.

@qiaozha
Copy link
Copy Markdown
Member

qiaozha commented Apr 22, 2026

@JialinHuang803 could you help take a look at this PR? Thanks

@timovv timovv marked this pull request as ready for review April 22, 2026 16:08
Comment thread packages/typespec-ts/src/framework/hooks/sdkTypes.ts
timovv and others added 2 commits May 4, 2026 09:15
Copy packages/rlc-common/src into packages/typespec-ts/src/rlc-common and
rewrite all @azure-tools/rlc-common imports in typespec-ts sources and tests
to relative paths pointing at the vendored barrel. Remove the workspace
dependency and add handlebars directly (used by several vendored files).

The vendored files are marked @ts-nocheck where they don't satisfy
typespec-ts's stricter tsconfig; an eslint override allows this pragma in
src/rlc-common only. A follow-up pass will prune dead code.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@timovv timovv force-pushed the rlc-common-decouple branch from 8096de0 to 5a09300 Compare May 4, 2026 16:28
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.

3 participants