mirror of
https://github.com/LukeHagar/polar.git
synced 2025-12-06 04:20:58 +00:00
Update import statements to include .js extension
This resolves unrecoverable errors downstream when using this package.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import "./polyfill";
|
import "./polyfill.js";
|
||||||
import { PolarCore } from "@polar-sh/sdk/core.js";
|
import { PolarCore } from "@polar-sh/sdk/core.js";
|
||||||
import { customersCreate } from "@polar-sh/sdk/funcs/customersCreate.js";
|
import { customersCreate } from "@polar-sh/sdk/funcs/customersCreate.js";
|
||||||
import { checkoutsCreate } from "@polar-sh/sdk/funcs/checkoutsCreate.js";
|
import { checkoutsCreate } from "@polar-sh/sdk/funcs/checkoutsCreate.js";
|
||||||
@@ -26,7 +26,7 @@ import {
|
|||||||
} from "convex/server";
|
} from "convex/server";
|
||||||
import { type Infer, v } from "convex/values";
|
import { type Infer, v } from "convex/values";
|
||||||
import { mapValues } from "remeda";
|
import { mapValues } from "remeda";
|
||||||
import schema from "../component/schema";
|
import schema from "../component/schema.js";
|
||||||
import {
|
import {
|
||||||
type ComponentApi,
|
type ComponentApi,
|
||||||
type RunMutationCtx,
|
type RunMutationCtx,
|
||||||
@@ -34,7 +34,7 @@ import {
|
|||||||
convertToDatabaseProduct,
|
convertToDatabaseProduct,
|
||||||
convertToDatabaseSubscription,
|
convertToDatabaseSubscription,
|
||||||
RunActionCtx,
|
RunActionCtx,
|
||||||
} from "../component/util";
|
} from "../component/util.js";
|
||||||
|
|
||||||
export const subscriptionValidator = schema.tables.subscriptions.validator;
|
export const subscriptionValidator = schema.tables.subscriptions.validator;
|
||||||
export type Subscription = Infer<typeof subscriptionValidator>;
|
export type Subscription = Infer<typeof subscriptionValidator>;
|
||||||
|
|||||||
Reference in New Issue
Block a user