Skip to content

Commit 2c5deed

Browse files
committed
fix: add missing .js extensions to all ESM imports
1 parent fe2d04e commit 2c5deed

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

apps/backend/src/routes/event.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { FastifyInstance, FastifyRequest, FastifyReply } from 'fastify';
2-
import { createEventSchema, joinEventSchema} from '../validations/event.validation';
2+
import { createEventSchema, joinEventSchema} from '../validations/event.validation.js';
33

4-
import {generateUniqueSlug} from '../utils/slug'
4+
import {generateUniqueSlug} from '../utils/slug.js'
55

66

77
type EventDetails = {

apps/backend/src/routes/profiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { FastifyInstance, FastifyRequest, FastifyReply } from 'fastify';
22
import { getProfileUrl } from '@devcard/shared';
33
import { updateProfileSchema, createLinkSchema, reorderLinksSchema } from '../utils/validators.js';
44
import { getErrorMessage } from '../utils/error.util.js';
5-
import * as profileService from '../services/profileService'
5+
import * as profileService from '../services/profileService.js'
66

77
// ── Response types ────────────────────────────────────────────────────────────
88
// Declared explicitly so the API contract is visible without tracing through

apps/backend/src/routes/public.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as publicService from '../services/publicService';
1+
import * as publicService from '../services/publicService.js';
22
import { generateQRBuffer, generateQRSvg } from '../utils/qr.js';
33

44
import type { FastifyContextConfig, FastifyInstance, FastifyRequest, FastifyReply } from 'fastify';

apps/backend/src/routes/team.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {Prisma, TeamRole } from '@prisma/client';
22
import QRCode from 'qrcode'
33

4-
import {generateUniqueSlug} from '../utils/slug'
5-
import { createTeamScehma,inviteMembers,updateTeam } from '../validations/team.validation';
4+
import {generateUniqueSlug} from '../utils/slug.js'
5+
import { createTeamScehma,inviteMembers,updateTeam } from '../validations/team.validation.js';
66

77
import type {PlatformLink, PublicProfile} from '@devcard/shared'
88
import type { FastifyInstance, FastifyRequest, FastifyReply } from 'fastify';

0 commit comments

Comments
 (0)