Skip to content

Commit 0bcb54e

Browse files
committed
update deps
1 parent 10ccbc0 commit 0bcb54e

File tree

8 files changed

+3795
-6254
lines changed

8 files changed

+3795
-6254
lines changed

package-lock.json

Lines changed: 0 additions & 6237 deletions
This file was deleted.

package.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"version": "0.0.4",
44
"description": "A monorepo containing TypeSpec tools: emitter and Ky HTTP client generator",
55
"type": "module",
6-
"workspaces": [
7-
"packages/*"
8-
],
96
"keywords": [
107
"typespec",
118
"typescript",
@@ -30,14 +27,14 @@
3027
},
3128
"homepage": "https://github.com/your-username/ube-tsp#readme",
3229
"devDependencies": {
33-
"@alloy-js/cli": "^0.18.0",
34-
"@changesets/cli": "^2.29.5",
30+
"@alloy-js/cli": "^0.22.0",
31+
"@changesets/cli": "^2.29.8",
3532
"@types/node": "latest",
36-
"eslint": "^9.32.0",
37-
"prettier": "^3.6.2",
38-
"typescript": "^5.8.3",
39-
"typescript-eslint": "^8.38.0",
40-
"vitest": "^3.2.4"
33+
"eslint": "^9.39.2",
34+
"prettier": "^3.8.1",
35+
"typescript": "^5.9.3",
36+
"typescript-eslint": "^8.54.0",
37+
"vitest": "^4.0.18"
4138
},
4239
"scripts": {
4340
"build": "npm run build --workspaces",
@@ -48,5 +45,6 @@
4845
"changeset": "changeset",
4946
"version": "changeset version",
5047
"release": "changeset publish"
51-
}
48+
},
49+
"packageManager": "pnpm@10.28.0"
5250
}

packages/ky-emitter/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
"prepublishOnly": "npm run build && npm run test && npm run lint"
6767
},
6868
"dependencies": {
69-
"@alloy-js/core": "^0.18.2",
70-
"@alloy-js/typescript": "^0.18.0",
71-
"@typespec/emitter-framework": "^0.9.0"
69+
"@alloy-js/core": "^0.22.0",
70+
"@alloy-js/typescript": "^0.22.0",
71+
"@typespec/emitter-framework": "^0.15.0"
7272
},
7373
"publishConfig": {
7474
"access": "public"

packages/ky-emitter/src/emitter.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { SourceFile, tsNameConflictResolver } from "@alloy-js/typescript";
22
import { type EmitContext } from "@typespec/compiler";
33
import { Output, writeOutput } from "@typespec/emitter-framework";
4+
import "@typespec/http/experimental/typekit";
45
import { NamespaceStructure } from "./components/namespace.jsx";
56
import { OperationMap } from "./components/operation-map.jsx";
67
import { createTSNamePolicy } from "./name-policy.js";

packages/ky-emitter/tests/namespace.test.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,15 @@ it("directory structure", async () => {
179179
180180
export * as Foo from "./Base/Foo.js"
181181
export * as Other from "./Base/Other.js";
182+
182183
`,
183184
"Base/Foo.ts": `
184185
export type Bar = {
185186
name: string;
186187
};
187188
188189
export * as Buzz from "./Foo/Buzz.js";
190+
189191
`,
190192
"Base/Foo/Buzz.ts": `
191193
export const listPets = {
@@ -216,25 +218,29 @@ it("directory structure", async () => {
216218
response: ListPetsResponse;
217219
};
218220
};
221+
219222
`,
220223
"Base/Other.ts": `
221224
export type More = {
222225
name: string;
223226
};
224227
225228
export * as Here from "./Other/Here.js";
229+
226230
`,
227231
"Base/Other/Here.ts": `
228232
export type There = {
229233
name: string;
230234
};
231235
232236
export * as Everywhere from "./Here/Everywhere.js";
237+
233238
`,
234239
"Base/Other/Here/Everywhere.ts": `
235240
export type Where = {
236241
location?: string;
237242
};
243+
238244
`,
239245
});
240246
});
@@ -264,11 +270,13 @@ it("Global namespace", async () => {
264270
};
265271
266272
export * as Foo from "./Spec/Foo.js";
273+
267274
`,
268275
"Spec/Foo.ts": `
269276
export type Bar = {
270277
name: string;
271278
};
279+
272280
`,
273281
});
274282
});

packages/ky-emitter/tests/utils.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ import { SourceFile, tsNameConflictResolver } from "@alloy-js/typescript";
44
import { resolvePath, type Program } from "@typespec/compiler";
55
import { createTester } from "@typespec/compiler/testing";
66
import { Output } from "@typespec/emitter-framework";
7+
import "@typespec/http/experimental/typekit";
78
import { expect } from "vitest";
89
import { createTSNamePolicy } from "../src/name-policy.js";
910

10-
export const Tester = createTester(resolvePath(import.meta.dirname, "../../.."), {
11-
libraries: ["@typespec/http", "@typespec/rest", "@typespec/openapi"],
11+
export const Tester = createTester(resolvePath(import.meta.dirname, ".."), {
12+
libraries: ["@typespec/http", "@typespec/openapi"],
1213
})
1314
.importLibraries()
14-
.using("Http", "Rest", "OpenAPI");
15+
.using("Http", "OpenAPI");
1516

1617
export function expectRender(program: Program, children: Children, expected: string) {
1718
const tsNamePolicy = createTSNamePolicy();

0 commit comments

Comments
 (0)