Skip to content

Commit

Permalink
fix: schema not built for dist
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiyou committed Aug 26, 2024
1 parent dfb1d3c commit a4e3438
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-eagles-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@portone/server-sdk": patch
---

schema.d.ts가 배포되도록 수정
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"files": {
"ignore": [
"packages/server-sdk/__generated__",
"packages/server-sdk/src/__generated__",
"package.json",
".changeset"
]
Expand Down
2 changes: 1 addition & 1 deletion packages/server-sdk/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Paths } from "../__generated__/schema";
import type { Paths } from "./__generated__/schema";

export type MethodType = {
[Path in keyof Paths]: Paths[Path][keyof Paths[Path]];
Expand Down
2 changes: 1 addition & 1 deletion packages/server-sdk/src/billing-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
BillingKeySortInput,
InstantBillingKeyPaymentMethodInput,
IssueBillingKeyBody,
} from "../__generated__/schema";
} from "./__generated__/schema";
import type { ApiClient } from "./client";
import {
BillingKeyAlreadyDeletedError,
Expand Down
2 changes: 1 addition & 1 deletion packages/server-sdk/src/cash-receipts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IssueCashReceiptBody } from "../__generated__/schema";
import type { IssueCashReceiptBody } from "./__generated__/schema";
import type { ApiClient } from "./client";
import {
CashReceiptAlreadyIssuedError,
Expand Down
2 changes: 1 addition & 1 deletion packages/server-sdk/src/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Paths } from "../__generated__/schema";
import type { Paths } from "./__generated__/schema";
import type { MethodType } from "./api";

export type ApiRequestClientInit = {
Expand Down
2 changes: 1 addition & 1 deletion packages/server-sdk/src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type Schema from "../__generated__/schema";
import type Schema from "./__generated__/schema";
import type { WebhookVerificationFailureReason } from "./webhook";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/server-sdk/src/identity-verifications.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SendIdentityVerificationBody } from "../__generated__/schema";
import type { SendIdentityVerificationBody } from "./__generated__/schema";
import type { ApiClient } from "./client";
import {
ChannelNotFoundError,
Expand Down
2 changes: 1 addition & 1 deletion packages/server-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { IdentityVerificationApi } from "./identity-verifications";
import { PaymentScheduleApi } from "./payment-scheuldes";
import { PaymentApi } from "./payments";
import { PgProviderApi } from "./pg-providers";
export type * as Schema from "../__generated__/schema.js";
export type * as Schema from "./__generated__/schema.js";
export { type ApiRequestClientInit } from "./client";
export * as Errors from "./errors";
export * as Webhook from "./webhook";
Expand Down
2 changes: 1 addition & 1 deletion packages/server-sdk/src/payment-scheuldes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
PaymentScheduleFilterInput,
PaymentScheduleSortInput,
RevokePaymentSchedulesBody,
} from "../__generated__/schema";
} from "./__generated__/schema";
import type { ApiClient } from "./client";
import {
AlreadyPaidOrWaitingError,
Expand Down
2 changes: 1 addition & 1 deletion packages/server-sdk/src/payments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
PreRegisterPaymentBody,
RegisterEscrowLogisticsBody,
RegisterStoreReceiptBodyItem,
} from "../__generated__/schema";
} from "./__generated__/schema";
import type { ApiClient } from "./client";
import {
AlreadyPaidError,
Expand Down

0 comments on commit a4e3438

Please sign in to comment.