Skip to content
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

Update ts emitter version #24778

Merged
merged 1 commit into from
Feb 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/RLC-Swagger-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ We are working on to automatically generate everything right now, but currently
security: AADToken
security-scopes: https://farmbeats.azure.net/.default
use-extension:
"@autorest/typescript": "6.0.0-rc.5"
"@autorest/typescript": "6.0.0-rc.8"
```
~~~

Expand Down
15 changes: 4 additions & 11 deletions documentation/RLC-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,11 @@ We are working on to automatically generate everything right now, but currently
```json
"dependencies": {
...
"@azure-tools/cadl-typescript": "1.0.0-beta.7"
"@azure-tools/cadl-typescript": "latest"
},
```

---
**NOTE**

It's always recommended to replace the version of emitter cadl-typescript with the latest version you can find in [npmjs.com](https://www.npmjs.com/package/@azure-tools/cadl-typescript) in latest tag.

---

1. **Configure TypeScript emitter in cadl-project.yaml**
2. **Configure TypeScript emitter in cadl-project.yaml**

In Cadl project, modify (or create) `cadl-project.yaml` and configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`

Expand Down Expand Up @@ -72,7 +65,7 @@ We are working on to automatically generate everything right now, but currently

---

1. **Edit rush.json**
3. **Edit rush.json**
As the libraries in azure-sdk-for-js repository are managed by rush, you need to add an entry in rush.json under projects section for the first time to make sure it works. For example:

```
Expand All @@ -92,7 +85,7 @@ We are working on to automatically generate everything right now, but currently

---

1. **Run command to generate the SDK**
4. **Run command to generate the SDK**

We need to configure `--output-dir` to put generated code. The output dir contains two parts: the {SDK_REPO_ROOT} and {PROJECT_ROOT}.

Expand Down