Skip to content

@azure/openai 2.0.0-beta2 publishes declaration maps pointing to unpublished sources #31497

Open
@wessberg

Description

@wessberg
  • Package Name: @azure/openai
  • Package Version: 2.0.0-beta.2
  • Operating system: Mac OS 14.2.1
  • nodejs
    • version: 22.9.0
  • browser
    • name/version: Not Applicable
  • typescript
    • version: 5.6.3
  • Is the bug related to documentation in

Describe the bug
All current versions of @azure/openai published on NPM in the 2.0.0 branch (all alpha- and beta builds) include declaration maps (.d.ts.map) files. These are intended to be used in packages that also include their source code in the published package, such that consuming code editors can be taken directly to the original source declaration by via the TypeScript language service. However, @azure/openai 2.0.0-beta2 does not include the src folder that the declaration maps map the sources to.

To Reproduce
Steps to reproduce the behavior:

  1. Install @azure/openai (or decompress and inspect the .tar archive packed by NPM)
  2. Observe that declaration maps (.d.ts.map files) are shipped, pointing to source that are not published along with the package.

Expected behavior
The package should either not include declaration maps, or include the sources.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.OpenAIcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions