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,6 +1,6 @@
|
||||
import type { ProfileBrief } from '../friends/index.js';
|
||||
import type { AppSupabaseClient } from '../supabase/client.js';
|
||||
import type { ConversationSummary } from './types.js';
|
||||
import type { ProfileBrief } from '../friends/index';
|
||||
import type { AppSupabaseClient } from '../supabase/client';
|
||||
import type { ConversationSummary } from './types';
|
||||
|
||||
const PROFILE_BRIEF_COLS = 'user_id, username, display_name, avatar_url, banner_url';
|
||||
|
||||
@@ -63,7 +63,7 @@ export async function listConversations(client: AppSupabaseClient): Promise<Conv
|
||||
.in('conversation_id', convIds);
|
||||
if (aErr) throw aErr;
|
||||
|
||||
// 4. Profiles for ALL distinct member user ids (including self — the
|
||||
// 4. Profiles for ALL distinct member user ids (including self — the
|
||||
// member list in GroupInfoPanel needs our own display name too).
|
||||
const memberIdsAll = Array.from(new Set((allMembers ?? []).map((m) => m.user_id)));
|
||||
const profileMap = new Map<string, ProfileBrief>();
|
||||
|
||||
Reference in New Issue
Block a user