omni-sync-sdk 0.7.7 → 0.7.8
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.
- package/LICENSE +0 -0
- package/dist/index.d.mts +36 -1
- package/dist/index.d.ts +36 -1
- package/dist/index.js +45 -0
- package/dist/index.mjs +45 -0
- package/package.json +9 -10
package/LICENSE
ADDED
|
File without changes
|
package/dist/index.d.mts
CHANGED
|
@@ -498,6 +498,12 @@ interface CustomerAuthResponse {
|
|
|
498
498
|
};
|
|
499
499
|
token: string;
|
|
500
500
|
expiresAt: string;
|
|
501
|
+
/** If true, customer needs to verify their email before proceeding */
|
|
502
|
+
requiresVerification?: boolean;
|
|
503
|
+
}
|
|
504
|
+
interface EmailVerificationResponse {
|
|
505
|
+
verified: boolean;
|
|
506
|
+
message: string;
|
|
501
507
|
}
|
|
502
508
|
interface RegisterCustomerDto {
|
|
503
509
|
email: string;
|
|
@@ -1662,6 +1668,35 @@ declare class OmniSyncClient {
|
|
|
1662
1668
|
forgotPassword(email: string): Promise<{
|
|
1663
1669
|
message: string;
|
|
1664
1670
|
}>;
|
|
1671
|
+
/**
|
|
1672
|
+
* Verify customer email with a verification code
|
|
1673
|
+
* Requires a customer token to be set via setCustomerToken()
|
|
1674
|
+
* Only available in vibe-coded mode
|
|
1675
|
+
*
|
|
1676
|
+
* @example
|
|
1677
|
+
* ```typescript
|
|
1678
|
+
* // After registration with requiresVerification: true
|
|
1679
|
+
* omni.setCustomerToken(auth.token);
|
|
1680
|
+
* const result = await omni.verifyEmail('123456');
|
|
1681
|
+
* console.log(result.verified); // true
|
|
1682
|
+
* ```
|
|
1683
|
+
*/
|
|
1684
|
+
verifyEmail(code: string): Promise<EmailVerificationResponse>;
|
|
1685
|
+
/**
|
|
1686
|
+
* Resend verification email
|
|
1687
|
+
* Requires a customer token to be set via setCustomerToken()
|
|
1688
|
+
* Only available in vibe-coded mode
|
|
1689
|
+
* Rate limited to 3 requests per hour
|
|
1690
|
+
*
|
|
1691
|
+
* @example
|
|
1692
|
+
* ```typescript
|
|
1693
|
+
* omni.setCustomerToken(auth.token);
|
|
1694
|
+
* await omni.resendVerificationEmail();
|
|
1695
|
+
* ```
|
|
1696
|
+
*/
|
|
1697
|
+
resendVerificationEmail(): Promise<{
|
|
1698
|
+
message: string;
|
|
1699
|
+
}>;
|
|
1665
1700
|
/**
|
|
1666
1701
|
* Get the current logged-in customer's profile
|
|
1667
1702
|
* Requires a customer token to be set via setCustomerToken()
|
|
@@ -2348,4 +2383,4 @@ declare function isWebhookEventType(event: WebhookEvent, type: WebhookEventType)
|
|
|
2348
2383
|
*/
|
|
2349
2384
|
declare function createWebhookHandler(handlers: Partial<Record<WebhookEventType, (event: WebhookEvent) => Promise<void>>>): (payload: unknown) => Promise<void>;
|
|
2350
2385
|
|
|
2351
|
-
export { type AddToCartDto, type AppliedDiscount, type ApplyCouponDto, type BulkInventoryResponse, type BulkSaveVariantsDto, type BulkSaveVariantsResponse, type BulkVariantInput, type Cart, type CartItem, type CartStatus, type CategorySuggestion, type Checkout, type CheckoutAddress, type CheckoutLineItem, type CheckoutStatus, type CompleteCheckoutResponse, type CompleteDraftDto, type ConnectorPlatform, type Coupon, type CouponCreateResponse, type CouponQueryParams, type CouponStatus, type CouponType, type CouponValidationWarning, type CreateAddressDto, type CreateCheckoutDto, type CreateCouponDto, type CreateCustomApiDto, type CreateCustomerDto, type CreateGuestOrderDto, type CreateOrderDto, type CreateProductDto, type CreateRefundDto, type CreateVariantDto, type CustomApiAuthType, type CustomApiConnectionStatus, type CustomApiCredentials, type CustomApiIntegration, type CustomApiSyncConfig, type CustomApiSyncDirection, type CustomApiTestResult, type Customer, type CustomerAddress, type CustomerAuthResponse, type CustomerProfile, type CustomerQueryParams, type DraftLineItem, type EditInventoryDto, type FulfillOrderDto, type GuestCheckoutStartResponse, type GuestOrderResponse, type InventoryInfo, type InventorySyncStatus, type LocalCart, type LocalCartItem, type MergeCartsDto, type OmniSyncApiError, OmniSyncClient, type OmniSyncClientOptions, OmniSyncError, type Order, type OrderAddress, type OrderCustomer, type OrderItem, type OrderQueryParams, type OrderStatus, type PaginatedResponse, type PlatformCouponCapabilities, type Product, type ProductAttributeInput, type ProductImage, type ProductQueryParams, type ProductSuggestion, type ProductVariant, type PublishProductResponse, type ReconcileInventoryResponse, type Refund, type RefundLineItem, type RefundLineItemResponse, type RefundType, type RegisterCustomerDto, type SearchSuggestions, type SelectShippingMethodDto, type SendInvoiceDto, type SetBillingAddressDto, type SetCheckoutCustomerDto, type SetShippingAddressDto, type SetShippingAddressResponse, type ShippingLine, type ShippingRate, type StoreInfo, type SyncJob, type UpdateAddressDto, type UpdateCartItemDto, type UpdateCouponDto, type UpdateCustomApiDto, type UpdateCustomerDto, type UpdateDraftDto, type UpdateInventoryDto, type UpdateOrderDto, type UpdateOrderShippingDto, type UpdateProductDto, type UpdateVariantDto, type UpdateVariantInventoryDto, type VariantInventoryResponse, type VariantPlatformOverlay, type VariantStatus, type WebhookEvent, type WebhookEventType, createWebhookHandler, isCouponApplicableToProduct, isWebhookEventType, parseWebhookEvent, verifyWebhook };
|
|
2386
|
+
export { type AddToCartDto, type AppliedDiscount, type ApplyCouponDto, type BulkInventoryResponse, type BulkSaveVariantsDto, type BulkSaveVariantsResponse, type BulkVariantInput, type Cart, type CartItem, type CartStatus, type CategorySuggestion, type Checkout, type CheckoutAddress, type CheckoutLineItem, type CheckoutStatus, type CompleteCheckoutResponse, type CompleteDraftDto, type ConnectorPlatform, type Coupon, type CouponCreateResponse, type CouponQueryParams, type CouponStatus, type CouponType, type CouponValidationWarning, type CreateAddressDto, type CreateCheckoutDto, type CreateCouponDto, type CreateCustomApiDto, type CreateCustomerDto, type CreateGuestOrderDto, type CreateOrderDto, type CreateProductDto, type CreateRefundDto, type CreateVariantDto, type CustomApiAuthType, type CustomApiConnectionStatus, type CustomApiCredentials, type CustomApiIntegration, type CustomApiSyncConfig, type CustomApiSyncDirection, type CustomApiTestResult, type Customer, type CustomerAddress, type CustomerAuthResponse, type CustomerProfile, type CustomerQueryParams, type DraftLineItem, type EditInventoryDto, type EmailVerificationResponse, type FulfillOrderDto, type GuestCheckoutStartResponse, type GuestOrderResponse, type InventoryInfo, type InventorySyncStatus, type LocalCart, type LocalCartItem, type MergeCartsDto, type OmniSyncApiError, OmniSyncClient, type OmniSyncClientOptions, OmniSyncError, type Order, type OrderAddress, type OrderCustomer, type OrderItem, type OrderQueryParams, type OrderStatus, type PaginatedResponse, type PlatformCouponCapabilities, type Product, type ProductAttributeInput, type ProductImage, type ProductQueryParams, type ProductSuggestion, type ProductVariant, type PublishProductResponse, type ReconcileInventoryResponse, type Refund, type RefundLineItem, type RefundLineItemResponse, type RefundType, type RegisterCustomerDto, type SearchSuggestions, type SelectShippingMethodDto, type SendInvoiceDto, type SetBillingAddressDto, type SetCheckoutCustomerDto, type SetShippingAddressDto, type SetShippingAddressResponse, type ShippingLine, type ShippingRate, type StoreInfo, type SyncJob, type UpdateAddressDto, type UpdateCartItemDto, type UpdateCouponDto, type UpdateCustomApiDto, type UpdateCustomerDto, type UpdateDraftDto, type UpdateInventoryDto, type UpdateOrderDto, type UpdateOrderShippingDto, type UpdateProductDto, type UpdateVariantDto, type UpdateVariantInventoryDto, type VariantInventoryResponse, type VariantPlatformOverlay, type VariantStatus, type WebhookEvent, type WebhookEventType, createWebhookHandler, isCouponApplicableToProduct, isWebhookEventType, parseWebhookEvent, verifyWebhook };
|
package/dist/index.d.ts
CHANGED
|
@@ -498,6 +498,12 @@ interface CustomerAuthResponse {
|
|
|
498
498
|
};
|
|
499
499
|
token: string;
|
|
500
500
|
expiresAt: string;
|
|
501
|
+
/** If true, customer needs to verify their email before proceeding */
|
|
502
|
+
requiresVerification?: boolean;
|
|
503
|
+
}
|
|
504
|
+
interface EmailVerificationResponse {
|
|
505
|
+
verified: boolean;
|
|
506
|
+
message: string;
|
|
501
507
|
}
|
|
502
508
|
interface RegisterCustomerDto {
|
|
503
509
|
email: string;
|
|
@@ -1662,6 +1668,35 @@ declare class OmniSyncClient {
|
|
|
1662
1668
|
forgotPassword(email: string): Promise<{
|
|
1663
1669
|
message: string;
|
|
1664
1670
|
}>;
|
|
1671
|
+
/**
|
|
1672
|
+
* Verify customer email with a verification code
|
|
1673
|
+
* Requires a customer token to be set via setCustomerToken()
|
|
1674
|
+
* Only available in vibe-coded mode
|
|
1675
|
+
*
|
|
1676
|
+
* @example
|
|
1677
|
+
* ```typescript
|
|
1678
|
+
* // After registration with requiresVerification: true
|
|
1679
|
+
* omni.setCustomerToken(auth.token);
|
|
1680
|
+
* const result = await omni.verifyEmail('123456');
|
|
1681
|
+
* console.log(result.verified); // true
|
|
1682
|
+
* ```
|
|
1683
|
+
*/
|
|
1684
|
+
verifyEmail(code: string): Promise<EmailVerificationResponse>;
|
|
1685
|
+
/**
|
|
1686
|
+
* Resend verification email
|
|
1687
|
+
* Requires a customer token to be set via setCustomerToken()
|
|
1688
|
+
* Only available in vibe-coded mode
|
|
1689
|
+
* Rate limited to 3 requests per hour
|
|
1690
|
+
*
|
|
1691
|
+
* @example
|
|
1692
|
+
* ```typescript
|
|
1693
|
+
* omni.setCustomerToken(auth.token);
|
|
1694
|
+
* await omni.resendVerificationEmail();
|
|
1695
|
+
* ```
|
|
1696
|
+
*/
|
|
1697
|
+
resendVerificationEmail(): Promise<{
|
|
1698
|
+
message: string;
|
|
1699
|
+
}>;
|
|
1665
1700
|
/**
|
|
1666
1701
|
* Get the current logged-in customer's profile
|
|
1667
1702
|
* Requires a customer token to be set via setCustomerToken()
|
|
@@ -2348,4 +2383,4 @@ declare function isWebhookEventType(event: WebhookEvent, type: WebhookEventType)
|
|
|
2348
2383
|
*/
|
|
2349
2384
|
declare function createWebhookHandler(handlers: Partial<Record<WebhookEventType, (event: WebhookEvent) => Promise<void>>>): (payload: unknown) => Promise<void>;
|
|
2350
2385
|
|
|
2351
|
-
export { type AddToCartDto, type AppliedDiscount, type ApplyCouponDto, type BulkInventoryResponse, type BulkSaveVariantsDto, type BulkSaveVariantsResponse, type BulkVariantInput, type Cart, type CartItem, type CartStatus, type CategorySuggestion, type Checkout, type CheckoutAddress, type CheckoutLineItem, type CheckoutStatus, type CompleteCheckoutResponse, type CompleteDraftDto, type ConnectorPlatform, type Coupon, type CouponCreateResponse, type CouponQueryParams, type CouponStatus, type CouponType, type CouponValidationWarning, type CreateAddressDto, type CreateCheckoutDto, type CreateCouponDto, type CreateCustomApiDto, type CreateCustomerDto, type CreateGuestOrderDto, type CreateOrderDto, type CreateProductDto, type CreateRefundDto, type CreateVariantDto, type CustomApiAuthType, type CustomApiConnectionStatus, type CustomApiCredentials, type CustomApiIntegration, type CustomApiSyncConfig, type CustomApiSyncDirection, type CustomApiTestResult, type Customer, type CustomerAddress, type CustomerAuthResponse, type CustomerProfile, type CustomerQueryParams, type DraftLineItem, type EditInventoryDto, type FulfillOrderDto, type GuestCheckoutStartResponse, type GuestOrderResponse, type InventoryInfo, type InventorySyncStatus, type LocalCart, type LocalCartItem, type MergeCartsDto, type OmniSyncApiError, OmniSyncClient, type OmniSyncClientOptions, OmniSyncError, type Order, type OrderAddress, type OrderCustomer, type OrderItem, type OrderQueryParams, type OrderStatus, type PaginatedResponse, type PlatformCouponCapabilities, type Product, type ProductAttributeInput, type ProductImage, type ProductQueryParams, type ProductSuggestion, type ProductVariant, type PublishProductResponse, type ReconcileInventoryResponse, type Refund, type RefundLineItem, type RefundLineItemResponse, type RefundType, type RegisterCustomerDto, type SearchSuggestions, type SelectShippingMethodDto, type SendInvoiceDto, type SetBillingAddressDto, type SetCheckoutCustomerDto, type SetShippingAddressDto, type SetShippingAddressResponse, type ShippingLine, type ShippingRate, type StoreInfo, type SyncJob, type UpdateAddressDto, type UpdateCartItemDto, type UpdateCouponDto, type UpdateCustomApiDto, type UpdateCustomerDto, type UpdateDraftDto, type UpdateInventoryDto, type UpdateOrderDto, type UpdateOrderShippingDto, type UpdateProductDto, type UpdateVariantDto, type UpdateVariantInventoryDto, type VariantInventoryResponse, type VariantPlatformOverlay, type VariantStatus, type WebhookEvent, type WebhookEventType, createWebhookHandler, isCouponApplicableToProduct, isWebhookEventType, parseWebhookEvent, verifyWebhook };
|
|
2386
|
+
export { type AddToCartDto, type AppliedDiscount, type ApplyCouponDto, type BulkInventoryResponse, type BulkSaveVariantsDto, type BulkSaveVariantsResponse, type BulkVariantInput, type Cart, type CartItem, type CartStatus, type CategorySuggestion, type Checkout, type CheckoutAddress, type CheckoutLineItem, type CheckoutStatus, type CompleteCheckoutResponse, type CompleteDraftDto, type ConnectorPlatform, type Coupon, type CouponCreateResponse, type CouponQueryParams, type CouponStatus, type CouponType, type CouponValidationWarning, type CreateAddressDto, type CreateCheckoutDto, type CreateCouponDto, type CreateCustomApiDto, type CreateCustomerDto, type CreateGuestOrderDto, type CreateOrderDto, type CreateProductDto, type CreateRefundDto, type CreateVariantDto, type CustomApiAuthType, type CustomApiConnectionStatus, type CustomApiCredentials, type CustomApiIntegration, type CustomApiSyncConfig, type CustomApiSyncDirection, type CustomApiTestResult, type Customer, type CustomerAddress, type CustomerAuthResponse, type CustomerProfile, type CustomerQueryParams, type DraftLineItem, type EditInventoryDto, type EmailVerificationResponse, type FulfillOrderDto, type GuestCheckoutStartResponse, type GuestOrderResponse, type InventoryInfo, type InventorySyncStatus, type LocalCart, type LocalCartItem, type MergeCartsDto, type OmniSyncApiError, OmniSyncClient, type OmniSyncClientOptions, OmniSyncError, type Order, type OrderAddress, type OrderCustomer, type OrderItem, type OrderQueryParams, type OrderStatus, type PaginatedResponse, type PlatformCouponCapabilities, type Product, type ProductAttributeInput, type ProductImage, type ProductQueryParams, type ProductSuggestion, type ProductVariant, type PublishProductResponse, type ReconcileInventoryResponse, type Refund, type RefundLineItem, type RefundLineItemResponse, type RefundType, type RegisterCustomerDto, type SearchSuggestions, type SelectShippingMethodDto, type SendInvoiceDto, type SetBillingAddressDto, type SetCheckoutCustomerDto, type SetShippingAddressDto, type SetShippingAddressResponse, type ShippingLine, type ShippingRate, type StoreInfo, type SyncJob, type UpdateAddressDto, type UpdateCartItemDto, type UpdateCouponDto, type UpdateCustomApiDto, type UpdateCustomerDto, type UpdateDraftDto, type UpdateInventoryDto, type UpdateOrderDto, type UpdateOrderShippingDto, type UpdateProductDto, type UpdateVariantDto, type UpdateVariantInventoryDto, type VariantInventoryResponse, type VariantPlatformOverlay, type VariantStatus, type WebhookEvent, type WebhookEventType, createWebhookHandler, isCouponApplicableToProduct, isWebhookEventType, parseWebhookEvent, verifyWebhook };
|
package/dist/index.js
CHANGED
|
@@ -1095,6 +1095,51 @@ var OmniSyncClient = class {
|
|
|
1095
1095
|
email
|
|
1096
1096
|
});
|
|
1097
1097
|
}
|
|
1098
|
+
/**
|
|
1099
|
+
* Verify customer email with a verification code
|
|
1100
|
+
* Requires a customer token to be set via setCustomerToken()
|
|
1101
|
+
* Only available in vibe-coded mode
|
|
1102
|
+
*
|
|
1103
|
+
* @example
|
|
1104
|
+
* ```typescript
|
|
1105
|
+
* // After registration with requiresVerification: true
|
|
1106
|
+
* omni.setCustomerToken(auth.token);
|
|
1107
|
+
* const result = await omni.verifyEmail('123456');
|
|
1108
|
+
* console.log(result.verified); // true
|
|
1109
|
+
* ```
|
|
1110
|
+
*/
|
|
1111
|
+
async verifyEmail(code) {
|
|
1112
|
+
if (!this.customerToken) {
|
|
1113
|
+
throw new OmniSyncError("Customer token is required. Call setCustomerToken() first.", 401);
|
|
1114
|
+
}
|
|
1115
|
+
if (this.isVibeCodedMode()) {
|
|
1116
|
+
return this.vibeCodedRequest("POST", "/customers/verify-email", {
|
|
1117
|
+
code
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
throw new OmniSyncError("verifyEmail is only available in vibe-coded mode", 400);
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
* Resend verification email
|
|
1124
|
+
* Requires a customer token to be set via setCustomerToken()
|
|
1125
|
+
* Only available in vibe-coded mode
|
|
1126
|
+
* Rate limited to 3 requests per hour
|
|
1127
|
+
*
|
|
1128
|
+
* @example
|
|
1129
|
+
* ```typescript
|
|
1130
|
+
* omni.setCustomerToken(auth.token);
|
|
1131
|
+
* await omni.resendVerificationEmail();
|
|
1132
|
+
* ```
|
|
1133
|
+
*/
|
|
1134
|
+
async resendVerificationEmail() {
|
|
1135
|
+
if (!this.customerToken) {
|
|
1136
|
+
throw new OmniSyncError("Customer token is required. Call setCustomerToken() first.", 401);
|
|
1137
|
+
}
|
|
1138
|
+
if (this.isVibeCodedMode()) {
|
|
1139
|
+
return this.vibeCodedRequest("POST", "/customers/resend-verification");
|
|
1140
|
+
}
|
|
1141
|
+
throw new OmniSyncError("resendVerificationEmail is only available in vibe-coded mode", 400);
|
|
1142
|
+
}
|
|
1098
1143
|
/**
|
|
1099
1144
|
* Get the current logged-in customer's profile
|
|
1100
1145
|
* Requires a customer token to be set via setCustomerToken()
|
package/dist/index.mjs
CHANGED
|
@@ -1070,6 +1070,51 @@ var OmniSyncClient = class {
|
|
|
1070
1070
|
email
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
|
+
/**
|
|
1074
|
+
* Verify customer email with a verification code
|
|
1075
|
+
* Requires a customer token to be set via setCustomerToken()
|
|
1076
|
+
* Only available in vibe-coded mode
|
|
1077
|
+
*
|
|
1078
|
+
* @example
|
|
1079
|
+
* ```typescript
|
|
1080
|
+
* // After registration with requiresVerification: true
|
|
1081
|
+
* omni.setCustomerToken(auth.token);
|
|
1082
|
+
* const result = await omni.verifyEmail('123456');
|
|
1083
|
+
* console.log(result.verified); // true
|
|
1084
|
+
* ```
|
|
1085
|
+
*/
|
|
1086
|
+
async verifyEmail(code) {
|
|
1087
|
+
if (!this.customerToken) {
|
|
1088
|
+
throw new OmniSyncError("Customer token is required. Call setCustomerToken() first.", 401);
|
|
1089
|
+
}
|
|
1090
|
+
if (this.isVibeCodedMode()) {
|
|
1091
|
+
return this.vibeCodedRequest("POST", "/customers/verify-email", {
|
|
1092
|
+
code
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
|
+
throw new OmniSyncError("verifyEmail is only available in vibe-coded mode", 400);
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Resend verification email
|
|
1099
|
+
* Requires a customer token to be set via setCustomerToken()
|
|
1100
|
+
* Only available in vibe-coded mode
|
|
1101
|
+
* Rate limited to 3 requests per hour
|
|
1102
|
+
*
|
|
1103
|
+
* @example
|
|
1104
|
+
* ```typescript
|
|
1105
|
+
* omni.setCustomerToken(auth.token);
|
|
1106
|
+
* await omni.resendVerificationEmail();
|
|
1107
|
+
* ```
|
|
1108
|
+
*/
|
|
1109
|
+
async resendVerificationEmail() {
|
|
1110
|
+
if (!this.customerToken) {
|
|
1111
|
+
throw new OmniSyncError("Customer token is required. Call setCustomerToken() first.", 401);
|
|
1112
|
+
}
|
|
1113
|
+
if (this.isVibeCodedMode()) {
|
|
1114
|
+
return this.vibeCodedRequest("POST", "/customers/resend-verification");
|
|
1115
|
+
}
|
|
1116
|
+
throw new OmniSyncError("resendVerificationEmail is only available in vibe-coded mode", 400);
|
|
1117
|
+
}
|
|
1073
1118
|
/**
|
|
1074
1119
|
* Get the current logged-in customer's profile
|
|
1075
1120
|
* Requires a customer token to be set via setCustomerToken()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-sync-sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"description": "Official SDK for building e-commerce storefronts with OmniSync Platform. Perfect for vibe-coded sites, AI-built stores (Cursor, Lovable, v0), and custom storefronts.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -16,14 +16,6 @@
|
|
|
16
16
|
"dist",
|
|
17
17
|
"README.md"
|
|
18
18
|
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
21
|
-
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
22
|
-
"lint": "eslint \"src/**/*.ts\"",
|
|
23
|
-
"test": "vitest run",
|
|
24
|
-
"test:watch": "vitest",
|
|
25
|
-
"prepublishOnly": "pnpm build"
|
|
26
|
-
},
|
|
27
19
|
"keywords": [
|
|
28
20
|
"omni-sync",
|
|
29
21
|
"e-commerce",
|
|
@@ -72,5 +64,12 @@
|
|
|
72
64
|
"typescript": {
|
|
73
65
|
"optional": true
|
|
74
66
|
}
|
|
67
|
+
},
|
|
68
|
+
"scripts": {
|
|
69
|
+
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
70
|
+
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
71
|
+
"lint": "eslint \"src/**/*.ts\"",
|
|
72
|
+
"test": "vitest run",
|
|
73
|
+
"test:watch": "vitest"
|
|
75
74
|
}
|
|
76
|
-
}
|
|
75
|
+
}
|