You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -27,24 +27,24 @@ We are working on to automatically generate everything right now, but currently
27
27
28
28
1.**Add TypeScript emitter dependency in package.json**
29
29
30
-
In Cadl project, modify `package.json` to add dependency for TypeScript emitter, then run `npm install` again to install `@azure-tools/cadl-typescript`.
30
+
In TypeSpec project, modify `package.json` to add dependency for TypeScript emitter, then run `npm install` again to install `@azure-tools/typespec-ts`.
31
31
32
32
```json
33
33
"dependencies": {
34
34
...
35
-
"@azure-tools/cadl-typescript": "latest"
35
+
"@azure-tools/typespec-ts": "latest"
36
36
},
37
37
```
38
38
39
-
2.**Configure TypeScript emitter in cadl-project.yaml**
39
+
2.**Configure TypeScript emitter in tspconfig.yaml**
40
40
41
-
In Cadl project, modify (or create) `cadl-project.yaml` and configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`
41
+
In TypeSpec project, modify (or create) `tspconfig.yaml` and configure the SDK generated, using the emitter options on `@azure-tools/typespec-ts`
42
42
43
43
```yaml
44
44
emit:
45
-
- "@azure-tools/cadl-typescript"
45
+
- "@azure-tools/typespec-ts"
46
46
options:
47
-
"@azure-tools/cadl-typescript":
47
+
"@azure-tools/typespec-ts":
48
48
title: Farmbeats
49
49
generateMetadata: true
50
50
generateTest: true
@@ -56,7 +56,7 @@ We are working on to automatically generate everything right now, but currently
56
56
57
57
```
58
58
59
-
Here, we need to replace the value in `name`,`description`, `version` in `packageDetails` to **your own service's** package details. Also we have some other options, you could refer to [the link](https://github.com/Azure/autorest.typescript/tree/main/packages/cadl-typescript#emitter-options) for more details.
59
+
Here, we need to replace the value in `name`,`description`, `version` in `packageDetails` to **your own service's** package details. Also we have some other options, you could refer to [the link](https://github.com/Azure/autorest.typescript/tree/main/packages/typespec-ts#emitter-options) for more details.
60
60
61
61
---
62
62
**NOTE**
@@ -89,10 +89,10 @@ We are working on to automatically generate everything right now, but currently
89
89
90
90
We need to configure `--output-dir` to put generated code. The output dir contains two parts: the {SDK_REPO_ROOT} and {PROJECT_ROOT}.
91
91
92
-
Assume **{SDK_REPO_ROOT}** is `D:/azure-sdk-for-js` and **{PROJECT_ROOT}** is `sdk/agrifood/agrifood-farming-rest` then we could run this command in **your local Cadl project** to generate the SDK:
92
+
Assume **{SDK_REPO_ROOT}** is `D:/azure-sdk-for-js` and **{PROJECT_ROOT}** is `sdk/agrifood/agrifood-farming-rest` then we could run this command in **your local TypeSpec project** to generate the SDK:
0 commit comments