From 55556cc3056253a082c3ce1f50982bd39eea657e Mon Sep 17 00:00:00 2001 From: liam-tait Date: Tue, 23 Jul 2024 02:08:14 +1200 Subject: [PATCH] file extensions --- src/index.ts | 6 +++--- src/iso.ts | 4 ++-- src/nextDay.ts | 4 ++-- src/yold.ts | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/index.ts b/src/index.ts index 07ac582..b694a83 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,3 @@ -export { fromISODate, toISOString } from "./iso"; -export { fromYMD, getYearMonthDay } from "./yold"; -export { nextDay } from "./nextDay"; +export { fromISODate, toISOString } from "./iso.js"; +export { fromYMD, getYearMonthDay } from "./yold.js"; +export { nextDay } from "./nextDay.js"; diff --git a/src/iso.ts b/src/iso.ts index ac547ec..86b23d4 100644 --- a/src/iso.ts +++ b/src/iso.ts @@ -1,5 +1,5 @@ -import { fromYMD } from "./yold"; -import { getYearMonthDay } from "./yold"; +import { fromYMD } from "./yold.js"; +import { getYearMonthDay } from "./yold.js"; /** * Convert an ISO date string to a YOLD date. diff --git a/src/nextDay.ts b/src/nextDay.ts index a15ba7a..267e3ca 100644 --- a/src/nextDay.ts +++ b/src/nextDay.ts @@ -1,11 +1,11 @@ -import { isLeapYear } from "./isLeapYear"; +import { isLeapYear } from "./isLeapYear.js"; import { extractDayOfWeekOfDayBefore, extractLeapYear, extractOrdinal, extractYear, mask, -} from "./yold"; +} from "./yold.js"; /** * Get the next day diff --git a/src/yold.ts b/src/yold.ts index b276ca0..96b7496 100644 --- a/src/yold.ts +++ b/src/yold.ts @@ -1,5 +1,5 @@ -import { getLastDayOfYearDayOfWeek } from "./getLastDayOfYearDayOfWeek"; -import { isLeapYear } from "./isLeapYear"; +import { getLastDayOfYearDayOfWeek } from "./getLastDayOfYearDayOfWeek.js"; +import { isLeapYear } from "./isLeapYear.js"; /** * Mask a year, ordinal, leap year, and day of week into a single number.