Skip to content

Commit 2886697

Browse files
authored
Merge pull request #3595 from hey-api/fix/tsdown-bump
fix: bump tsdown
2 parents 2e89d2d + 6d30621 commit 2886697

19 files changed

Lines changed: 310 additions & 226 deletions

File tree

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"**/*.mjs": true,
1919
"**/*.mts": true,
2020
"**/.vitepress/dist": true,
21+
"**/dist": true,
2122
"**/.mypy_cache": true,
2223
"**/__snapshots__": true,
2324
"**/coverage": true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"husky": "9.1.7",
7171
"lint-staged": "16.3.3",
7272
"oxfmt": "0.40.0",
73-
"tsdown": "0.18.4",
73+
"tsdown": "0.21.3",
7474
"tsx": "4.21.0",
7575
"turbo": "2.8.16",
7676
"typescript": "5.9.3",

packages/openapi-python/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import colorSupport from 'color-support';
6464
import type { UserConfig } from './config/types';
6565
import type { HeyApiClientHttpxPlugin } from './plugins/@hey-api/client-httpx';
6666
import type { HeyApiSdkPlugin } from './plugins/@hey-api/sdk';
67-
import type { PydanticPlugin } from './plugins/pydantic';
67+
import type { PydanticPlugin, PydanticResolvers } from './plugins/pydantic';
6868

6969
colors.enabled = colorSupport().hasBasic;
7070

@@ -116,6 +116,7 @@ export namespace Plugins {
116116
}
117117

118118
export namespace Pydantic {
119+
export type Resolvers = Required<PydanticResolvers>['~resolvers'];
119120
export type Types = PydanticPlugin;
120121
}
121122
}
Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
11
export { defaultConfig, defineConfig } from './config';
2-
export type {
3-
ArrayResolverContext,
4-
BooleanResolverContext,
5-
EnumResolverContext,
6-
IntersectionResolverContext,
7-
NeverResolverContext,
8-
NullResolverContext,
9-
NumberResolverContext,
10-
ObjectResolverContext,
11-
Resolvers,
12-
StringResolverContext,
13-
TupleResolverContext,
14-
UndefinedResolverContext,
15-
UnionResolverContext,
16-
UnknownResolverContext,
17-
VoidResolverContext,
18-
} from './resolvers';
2+
export type { PydanticResolvers } from './resolvers';
193
export type { PydanticPlugin } from './types';

packages/openapi-python/src/plugins/pydantic/resolvers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { DollarPyDsl } from '../../py-dsl';
44
import type { PydanticField, PydanticFinal, PydanticResult, PydanticType } from './shared/types';
55
import type { PydanticPlugin } from './types';
66

7-
export type Resolvers = Plugin.Resolvers<{
7+
export type PydanticResolvers = Plugin.Resolvers<{
88
/**
99
* Resolver for array schemas.
1010
*

packages/openapi-python/src/plugins/pydantic/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import type {
77
Plugin,
88
} from '@hey-api/shared';
99

10-
import type { Resolvers } from './resolvers';
10+
import type { PydanticResolvers } from './resolvers';
1111

1212
export type UserConfig = Plugin.Name<'pydantic'> &
1313
Plugin.Hooks &
1414
Plugin.UserComments &
1515
Plugin.UserExports &
16-
Resolvers & {
16+
PydanticResolvers & {
1717
/**
1818
* Casing convention for generated names.
1919
*
@@ -189,7 +189,7 @@ export type Config = Plugin.Name<'pydantic'> &
189189
Plugin.Hooks &
190190
Plugin.Comments &
191191
Plugin.Exports &
192-
Resolvers & {
192+
PydanticResolvers & {
193193
/** Casing convention for generated names. */
194194
case: Casing;
195195
/** Configuration for reusable schema definitions. */
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export { defaultConfig, defineConfig } from './config';
2-
export type { Resolvers as FakerJsFakerResolvers } from './resolvers/types';
2+
export type { FakerJsFakerResolvers } from './resolvers/types';
33
export type { FakerJsFakerPlugin } from './types';

packages/openapi-ts/src/plugins/@faker-js/faker/resolvers/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { FakerJsFakerPlugin } from '../types';
77

88
type Expression = ReturnType<typeof $.expr>;
99

10-
export type Resolvers = Plugin.Resolvers<{
10+
export type FakerJsFakerResolvers = Plugin.Resolvers<{
1111
array?: (ctx: ArrayResolverContext) => Expression | undefined;
1212
number?: (ctx: NumberResolverContext) => Expression | undefined;
1313
object?: (ctx: ObjectResolverContext) => Expression | undefined;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export { defaultConfig, defineConfig } from './config';
2-
export type { Resolvers as HeyApiTypeScriptResolvers } from './resolvers';
2+
export type { HeyApiTypeScriptResolvers } from './resolvers';
33
export type { HeyApiTypeScriptPlugin } from './types';

packages/openapi-ts/src/plugins/@hey-api/typescript/resolvers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { $, DollarTsDsl } from '../../../ts-dsl';
44
import type { Type, TypeScriptResult } from './shared/types';
55
import type { HeyApiTypeScriptPlugin } from './types';
66

7-
export type Resolvers = Plugin.Resolvers<{
7+
export type HeyApiTypeScriptResolvers = Plugin.Resolvers<{
88
/**
99
* Resolver for array schemas.
1010
*

0 commit comments

Comments
 (0)