Update import statements to include .js extension

This resolves unrecoverable errors downstream when using this package.
This commit is contained in:
Luke Hagar
2025-10-26 22:06:09 -05:00
committed by GitHub
parent c0f5a410ca
commit b1429b1992

View File

@@ -1,4 +1,4 @@
import "./polyfill";
import "./polyfill.js";
import { PolarCore } from "@polar-sh/sdk/core.js";
import { customersCreate } from "@polar-sh/sdk/funcs/customersCreate.js";
import { checkoutsCreate } from "@polar-sh/sdk/funcs/checkoutsCreate.js";
@@ -26,7 +26,7 @@ import {
} from "convex/server";
import { type Infer, v } from "convex/values";
import { mapValues } from "remeda";
import schema from "../component/schema";
import schema from "../component/schema.js";
import {
type ComponentApi,
type RunMutationCtx,
@@ -34,7 +34,7 @@ import {
convertToDatabaseProduct,
convertToDatabaseSubscription,
RunActionCtx,
} from "../component/util";
} from "../component/util.js";
export const subscriptionValidator = schema.tables.subscriptions.validator;
export type Subscription = Infer<typeof subscriptionValidator>;