Skip to content

[GuideLines] update typescript docs #8985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

jeremymeng
Copy link
Member

to refersh some of the out-dated information

to refersh some of the out-dated information
@Copilot Copilot AI review requested due to automatic review settings July 2, 2025 19:50
Copy link
Contributor

@Copilot 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

Refresh outdated TypeScript documentation by updating package configuration, pipeline/tracing guidance, and testing recommendations.

  • Switch HTTP pipeline and tracing to use @azure/core-rest-pipeline and core-tracing helpers
  • Replace Mocha/Karma with Vitest and introduce new tshy package layout config
  • Revise package.json keys (main, module, browser, types, engine) and npm scope guidance

Reviewed Changes

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

File Description
docs/typescript/implementation.md Updated pipeline & policy requirements, tracing guidance, test tooling, package layout and package.json fields
docs/typescript/design.md Adjusted npm scope recommendations, API surface comments, tsconfig examples, and core package references
Comments suppressed due to low confidence (2)

docs/typescript/implementation.md:394

  • There's an extra comma after the devDependencies block (},,) which is invalid JSON syntax. Remove the extra comma.
  "devDependencies": { /* ... */ },,

docs/typescript/implementation.md:326

  • [nitpick] The package layout example still shows the old dist and dist-esm directories; update this diagram to reflect the new dist/commonjs, dist/esm, and dist/browser structure.
azure-library

{% include requirement/MUST id="ts-namespace-serviceclient" %} pick a package name that allows the consumer to tie the namespace to the service being used. As a default, use the compressed service name at the end of the namespace. The namespace does **NOT** change when the branding of the product changes. Avoid the use of marketing names that may change.

{% include requirement/MUST id="ts-npm-dist-tag-beta" %} tag beta packages with the npm distribution tag `next`. If there is no generally available release of this package, it should also be tagged `latest`.
{% include requirement/MUST id="ts-npm-dist-tag-beta" %} tag beta packages with the npm distribution tag `next`.
Copy link
Member

Choose a reason for hiding this comment

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

I think we dropped using next, see #8884

Copy link
Member Author

Choose a reason for hiding this comment

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

you are right, we now only use latest and beta

│ │ ├── index.js.map
│ │ ├── ...*.js
│ │ └── ...*.js.map
| |
Copy link
Member

Choose a reason for hiding this comment

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

react-native was mentioned earlier so I think it should be included here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't want to list all so used .... Will add it

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