fix(shared): drop .js extensions in model-routing imports for Next.js
Webpack resolves workspace packages without Node ESM .js suffixes; extensionless paths match the rest of packages/shared and fix middleware build failures. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
dfe73b3647
commit
a6898617b5
3 changed files with 9 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
export {
|
||||
LEGACY_CURSOR_MODEL_ALIASES,
|
||||
PIPELINE_DEFAULT_ROLE_ROUTES,
|
||||
} from "./constants.js";
|
||||
} from "./constants";
|
||||
export {
|
||||
convoyModelPolicySchema,
|
||||
modelProviderSchema,
|
||||
|
|
@ -15,7 +15,7 @@ export {
|
|||
type ProviderType,
|
||||
type ResolvedModel,
|
||||
type RoleModelRoute,
|
||||
} from "./schemas.js";
|
||||
} from "./schemas";
|
||||
export {
|
||||
resolveModel,
|
||||
resolveModelErrorCodeSchema,
|
||||
|
|
@ -25,4 +25,4 @@ export {
|
|||
type ResolveModelInput,
|
||||
type ResolveModelResult,
|
||||
type ResolveModelSuccess,
|
||||
} from "./resolve-model.js";
|
||||
} from "./resolve-model";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { LEGACY_CURSOR_MODEL_ALIASES } from "./constants.js";
|
||||
import type { ModelProvider, RoleModelRoute } from "./schemas.js";
|
||||
import { resolveModel } from "./resolve-model.js";
|
||||
import { LEGACY_CURSOR_MODEL_ALIASES } from "./constants";
|
||||
import type { ModelProvider, RoleModelRoute } from "./schemas";
|
||||
import { resolveModel } from "./resolve-model";
|
||||
|
||||
const WORKSPACE_ID = "379ecb2f-6db9-4c53-93ad-72c594eb44a5";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
import {
|
||||
LEGACY_CURSOR_MODEL_ALIASES,
|
||||
PIPELINE_DEFAULT_ROLE_ROUTES,
|
||||
} from "./constants.js";
|
||||
} from "./constants";
|
||||
import type {
|
||||
ConvoyModelPolicy,
|
||||
ModelProvider,
|
||||
ModelTier,
|
||||
ResolvedModel,
|
||||
RoleModelRoute,
|
||||
} from "./schemas.js";
|
||||
import { resolvedModelSchema } from "./schemas.js";
|
||||
} from "./schemas";
|
||||
import { resolvedModelSchema } from "./schemas";
|
||||
|
||||
export const resolveModelErrorCodeSchema = [
|
||||
"ALIAS_NOT_RESOLVED",
|
||||
|
|
|
|||
Loading…
Reference in a new issue