Azure / Azure/typespec-azure

[typespec-ts] JavaScript — Support Post‑Emit Execution Step in JS Emitter

Open
#4,781 2 comments 0 reactions 2 assignees Claimed by @skywing918 View on GitHub
emitter:typescript
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

## Context
We got the ask from Foundry team that JS SDK generation requires post‑generation scripts to update the generated code.
e.g. update code emitter outputs and to deal with emitted code issues that service team hasn't decided the correct approach for yet.

Currently, these are executed manually which is fragile and inconsistent.

## Problems with Current State

- JS pipelines may need to run adhoc custom PowerShell scripts after emission
- No standardized way for JS emitter to trigger these steps

## Proposal

Add post‑emit execution support in the JS emitter
The emitter should invoke a script after code emission but before downstream pipeline steps

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.