-
Notifications
You must be signed in to change notification settings - Fork 326
[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
base: main
Are you sure you want to change the base?
Conversation
to refersh some of the out-dated information
There was a problem hiding this 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
andcore-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
anddist-esm
directories; update this diagram to reflect the newdist/commonjs
,dist/esm
, anddist/browser
structure.
azure-library
Co-authored-by: Copilot <[email protected]>
docs/typescript/design.md
Outdated
{% 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`. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
docs/typescript/implementation.md
Outdated
│ │ ├── index.js.map | ||
│ │ ├── ...*.js | ||
│ │ └── ...*.js.map | ||
| | |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
to refersh some of the out-dated information