@typespec/emitter-framework 0.11.0-dev.3 → 0.11.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-output.d.ts","sourceRoot":"","sources":["../../../src/core/write-output.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"write-output.d.ts","sourceRoot":"","sources":["../../../src/core/write-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,QAAQ,EAAwB,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAuB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEvE,wBAAsB,WAAW,CAC/B,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,QAAQ,EACvB,gBAAgB,EAAE,MAAM,iBAIzB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { renderAsync } from "@alloy-js/core";
|
|
2
2
|
import { emitFile, joinPaths } from "@typespec/compiler";
|
|
3
3
|
export async function writeOutput(program, rootComponent, emitterOutputDir) {
|
|
4
|
-
const tree =
|
|
4
|
+
const tree = await renderAsync(rootComponent);
|
|
5
5
|
await writeOutputDirectory(program, tree, emitterOutputDir);
|
|
6
6
|
}
|
|
7
7
|
async function writeOutputDirectory(program, dir, emitterOutputDir) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/emitter-framework",
|
|
3
|
-
"version": "0.11.0-dev.
|
|
3
|
+
"version": "0.11.0-dev.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"tree-sitter-javascript": "^0.23.0",
|
|
61
61
|
"tree-sitter-python": "^0.23.2",
|
|
62
62
|
"tree-sitter-typescript": "^0.23.0",
|
|
63
|
-
"typescript": "~5.
|
|
63
|
+
"typescript": "~5.9.2",
|
|
64
64
|
"vitest": "^3.1.2",
|
|
65
65
|
"web-tree-sitter": "^0.25.4"
|
|
66
66
|
},
|
package/src/core/write-output.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Children, type OutputDirectory
|
|
1
|
+
import { renderAsync, type Children, type OutputDirectory } from "@alloy-js/core";
|
|
2
2
|
import { emitFile, joinPaths, type Program } from "@typespec/compiler";
|
|
3
3
|
|
|
4
4
|
export async function writeOutput(
|
|
@@ -6,7 +6,7 @@ export async function writeOutput(
|
|
|
6
6
|
rootComponent: Children,
|
|
7
7
|
emitterOutputDir: string,
|
|
8
8
|
) {
|
|
9
|
-
const tree =
|
|
9
|
+
const tree = await renderAsync(rootComponent);
|
|
10
10
|
await writeOutputDirectory(program, tree, emitterOutputDir);
|
|
11
11
|
}
|
|
12
12
|
|