Skip to content

[AI Projects] update typescript samples configs#38703

Open
glharper wants to merge 2 commits into
mainfrom
glharper/foundry-samples-tsc-fix
Open

[AI Projects] update typescript samples configs#38703
glharper wants to merge 2 commits into
mainfrom
glharper/foundry-samples-tsc-fix

Conversation

@glharper
Copy link
Copy Markdown
Member

Packages impacted by this PR

Issues associated with this PR

Describe the problem that is addressed by this PR

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

Copilot AI review requested due to automatic review settings May 27, 2026 16:18
@glharper glharper enabled auto-merge (squash) May 27, 2026 16:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the published TypeScript samples package for @azure/ai-projects (v2) to ESM/NodeNext and adds OpenTelemetry-related runtime dependencies. The changes are confined to the generated sample artifacts under sdk/ai/ai-projects/samples/v2/typescript.

Changes:

  • package.json: declares "type": "module" and adds @opentelemetry/sdk-trace-node, @opentelemetry/instrumentation, and @azure/opentelemetry-instrumentation-azure-sdk (beta).
  • tsconfig.json: switches module/moduleResolution from commonjs/node10 to NodeNext, adds rootDir: "./src", and adds explicit paths entries for @azure/ai-projects and openai.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
sdk/ai/ai-projects/samples/v2/typescript/package.json Marks the sample package as ESM and adds OpenTelemetry tracing dependencies.
sdk/ai/ai-projects/samples/v2/typescript/tsconfig.json Moves the sample to NodeNext module resolution and adds custom paths/rootDir.

Comment thread sdk/ai/ai-projects/samples/v2/typescript/tsconfig.json Outdated
Comment thread sdk/ai/ai-projects/samples/v2/typescript/package.json Outdated
Comment thread sdk/ai/ai-projects/samples/v2/typescript/package.json Outdated
Comment thread sdk/ai/ai-projects/samples/v2/typescript/package.json Outdated
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.

2 participants