fix(shared): drop .js extensions from relative imports for Metro
packages/shared/src/index.ts and all sub-modules used .js extensions on relative imports (e.g. './admin/index.js') pointing at .ts source files. TypeScript with moduleResolution: "Bundler" doesn't need them, and Metro's eager exporter (used for preview / production builds) reads them literally and fails — only the dev-server Metro fell back to .ts. Workspace typecheck remains 8/8 green; Vite and TS Bundler resolution already accept both styles, so desktop is unaffected.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { AppSupabaseClient } from '../supabase/client.js';
|
||||
import type { FriendshipStatus } from '../supabase/types.js';
|
||||
import type { AppSupabaseClient } from '../supabase/client';
|
||||
import type { FriendshipStatus } from '../supabase/types';
|
||||
|
||||
export interface ProfileBrief {
|
||||
userId: string;
|
||||
@@ -147,7 +147,7 @@ export async function acceptFriendRequest(
|
||||
if (error) throw error;
|
||||
}
|
||||
|
||||
// Used for both "decline incoming" and "cancel outgoing" — semantically a
|
||||
// Used for both "decline incoming" and "cancel outgoing" — semantically a
|
||||
// bilateral break.
|
||||
export async function removeFriendship(
|
||||
client: AppSupabaseClient,
|
||||
|
||||
Reference in New Issue
Block a user