From 8e7f8a3e0ed8409f483ad1eada4df5aeb3ea6fb6 Mon Sep 17 00:00:00 2001 From: dsiguero <26867647+dsiguero@users.noreply.github.com> Date: Thu, 30 Jan 2025 16:03:33 +0100 Subject: [PATCH] fix: ts extension madness with relative imports --- src/types/api/index.ts | 10 +++++----- src/types/api/reminder-config.ts | 2 +- src/types/api/responses.ts | 2 +- src/types/api/user.ts | 2 +- src/types/index.ts | 4 ++-- src/utils/index.ts | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/types/api/index.ts b/src/types/api/index.ts index a7ae82e..ce4271f 100644 --- a/src/types/api/index.ts +++ b/src/types/api/index.ts @@ -1,5 +1,5 @@ -export * from './authentication'; -export * from './calendar'; -export * from './reminder-config'; -export * from './responses'; -export * from './user'; +export * from './authentication.js'; +export * from './calendar.js'; +export * from './reminder-config.js'; +export * from './responses.js'; +export * from './user.js'; diff --git a/src/types/api/reminder-config.ts b/src/types/api/reminder-config.ts index e858afb..81439b8 100644 --- a/src/types/api/reminder-config.ts +++ b/src/types/api/reminder-config.ts @@ -1,5 +1,5 @@ import { z } from 'zod'; -import { calendarSchema } from './calendar'; +import { calendarSchema } from './calendar.js'; export const reminderConfigSchema = z.object({ calendars: z.array(calendarSchema).min(1), diff --git a/src/types/api/responses.ts b/src/types/api/responses.ts index 9e91866..4c6201f 100644 --- a/src/types/api/responses.ts +++ b/src/types/api/responses.ts @@ -1,4 +1,4 @@ -import { AuthenticationResponse } from './authentication'; +import { AuthenticationResponse } from './authentication.js'; // eslint-disable-next-line @typescript-eslint/no-explicit-any export type BodyContent = Record | Array; diff --git a/src/types/api/user.ts b/src/types/api/user.ts index 2134a3f..c829d56 100644 --- a/src/types/api/user.ts +++ b/src/types/api/user.ts @@ -1,4 +1,4 @@ -import { Email, IdpId, UnixTimestamp, UserId } from '../common'; +import { Email, IdpId, UnixTimestamp, UserId } from '../common.js'; // When time comes, append IdpName with | 'idpName2' export type IdpName = 'google.com'; diff --git a/src/types/index.ts b/src/types/index.ts index f449d51..bae4faf 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,2 +1,2 @@ -export * from './api/index'; -export * from './common'; +export * from './api/index.js'; +export * from './common.js'; diff --git a/src/utils/index.ts b/src/utils/index.ts index c00e34c..d55d545 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,3 +1,3 @@ -import sleep from './sleep'; +import sleep from './sleep.js'; export { sleep };