From 8f33432cb315d1b5da01b0c82d02b2de33be6dff Mon Sep 17 00:00:00 2001 From: Le Cong Date: Wed, 20 Mar 2024 16:00:33 -0400 Subject: [PATCH] workaround to exclude date-fns tests from being processed by bundler --- README.md | 2 ++ .../_lib => date-fns-tz/date-fns-v2-lib}/assign/index.ts | 0 .../_lib => date-fns-tz/date-fns-v2-lib}/cloneObject/index.ts | 0 src/date-fns-tz/formatInTimeZone/index.ts | 2 +- src/date-fns-tz/zonedTimeToUtc/index.ts | 2 +- src/date-fns/_lib/addLeadingZeros/{test.ts => test.mts} | 0 src/date-fns/_lib/getRoundingMethod/{test.ts => test.mts} | 0 .../_lib/getTimezoneOffsetInMilliseconds/{test.ts => test.mts} | 0 src/date-fns/add/{test.ts => test.mts} | 0 src/date-fns/addBusinessDays/{test.ts => test.mts} | 0 src/date-fns/addDays/{test.ts => test.mts} | 0 src/date-fns/addHours/{test.ts => test.mts} | 0 src/date-fns/addISOWeekYears/{test.ts => test.mts} | 0 src/date-fns/addMilliseconds/{test.ts => test.mts} | 0 src/date-fns/addMinutes/{test.ts => test.mts} | 0 src/date-fns/addMonths/{test.ts => test.mts} | 0 src/date-fns/addQuarters/{test.ts => test.mts} | 0 src/date-fns/addSeconds/{test.ts => test.mts} | 0 src/date-fns/addWeeks/{test.ts => test.mts} | 0 src/date-fns/addYears/{test.ts => test.mts} | 0 src/date-fns/areIntervalsOverlapping/{test.ts => test.mts} | 0 src/date-fns/clamp/{test.ts => test.mts} | 0 src/date-fns/closestIndexTo/{test.ts => test.mts} | 0 src/date-fns/closestTo/{test.ts => test.mts} | 0 src/date-fns/compareAsc/{test.ts => test.mts} | 0 src/date-fns/compareDesc/{test.ts => test.mts} | 0 src/date-fns/constructFrom/{test.ts => test.mts} | 0 src/date-fns/constructNow/{test.ts => test.mts} | 0 src/date-fns/daysToWeeks/{test.ts => test.mts} | 0 src/date-fns/differenceInBusinessDays/{test.ts => test.mts} | 0 src/date-fns/differenceInCalendarDays/{test.ts => test.mts} | 0 .../differenceInCalendarISOWeekYears/{test.ts => test.mts} | 0 src/date-fns/differenceInCalendarISOWeeks/{test.ts => test.mts} | 0 src/date-fns/differenceInCalendarMonths/{test.ts => test.mts} | 0 src/date-fns/differenceInCalendarQuarters/{test.ts => test.mts} | 0 src/date-fns/differenceInCalendarWeeks/{test.ts => test.mts} | 0 src/date-fns/differenceInCalendarYears/{test.ts => test.mts} | 0 src/date-fns/differenceInDays/{test.ts => test.mts} | 0 src/date-fns/differenceInHours/{test.ts => test.mts} | 0 src/date-fns/differenceInISOWeekYears/{test.ts => test.mts} | 0 src/date-fns/differenceInMilliseconds/{test.ts => test.mts} | 0 src/date-fns/differenceInMinutes/{test.ts => test.mts} | 0 src/date-fns/differenceInMonths/{test.ts => test.mts} | 0 src/date-fns/differenceInQuarters/{test.ts => test.mts} | 0 src/date-fns/differenceInSeconds/{test.ts => test.mts} | 0 src/date-fns/differenceInWeeks/{test.ts => test.mts} | 0 src/date-fns/differenceInYears/{test.ts => test.mts} | 0 src/date-fns/eachDayOfInterval/{test.ts => test.mts} | 0 src/date-fns/eachHourOfInterval/{test.ts => test.mts} | 0 src/date-fns/eachMinuteOfInterval/{test.ts => test.mts} | 0 src/date-fns/eachMonthOfInterval/{test.ts => test.mts} | 0 src/date-fns/eachQuarterOfInterval/{test.ts => test.mts} | 0 src/date-fns/eachWeekOfInterval/{test.ts => test.mts} | 0 src/date-fns/eachWeekendOfInterval/{test.ts => test.mts} | 0 src/date-fns/eachWeekendOfMonth/{test.ts => test.mts} | 0 src/date-fns/eachWeekendOfYear/{test.ts => test.mts} | 0 src/date-fns/eachYearOfInterval/{test.ts => test.mts} | 0 src/date-fns/endOfDay/{test.ts => test.mts} | 0 src/date-fns/endOfDecade/{test.ts => test.mts} | 0 src/date-fns/endOfHour/{test.ts => test.mts} | 0 src/date-fns/endOfISOWeek/{test.ts => test.mts} | 0 src/date-fns/endOfISOWeekYear/{test.ts => test.mts} | 0 src/date-fns/endOfMinute/{test.ts => test.mts} | 0 src/date-fns/endOfMonth/{test.ts => test.mts} | 0 src/date-fns/endOfQuarter/{test.ts => test.mts} | 0 src/date-fns/endOfSecond/{test.ts => test.mts} | 0 src/date-fns/endOfToday/{test.ts => test.mts} | 0 src/date-fns/endOfTomorrow/{test.ts => test.mts} | 0 src/date-fns/endOfWeek/{test.ts => test.mts} | 0 src/date-fns/endOfYear/{test.ts => test.mts} | 0 src/date-fns/endOfYesterday/{test.ts => test.mts} | 0 src/date-fns/format/{test.ts => test.mts} | 0 src/date-fns/formatDistance/{test.ts => test.mts} | 0 src/date-fns/formatDistanceStrict/{test.ts => test.mts} | 0 src/date-fns/formatDistanceToNow/{test.ts => test.mts} | 0 src/date-fns/formatDistanceToNowStrict/{test.ts => test.mts} | 0 src/date-fns/formatDuration/{test.ts => test.mts} | 0 src/date-fns/formatISO/{test.ts => test.mts} | 0 src/date-fns/formatISO9075/{test.ts => test.mts} | 0 src/date-fns/formatISODuration/{test.ts => test.mts} | 0 src/date-fns/formatRFC3339/{test.ts => test.mts} | 0 src/date-fns/formatRFC7231/{test.ts => test.mts} | 0 src/date-fns/formatRelative/{test.ts => test.mts} | 0 src/date-fns/fp/_lib/convertToFP/{test.ts => test.mts} | 0 src/date-fns/fromUnixTime/{test.ts => test.mts} | 0 src/date-fns/getDate/{test.ts => test.mts} | 0 src/date-fns/getDay/{test.ts => test.mts} | 0 src/date-fns/getDayOfYear/{test.ts => test.mts} | 0 src/date-fns/getDaysInMonth/{test.ts => test.mts} | 0 src/date-fns/getDaysInYear/{test.ts => test.mts} | 0 src/date-fns/getDecade/{test.ts => test.mts} | 0 src/date-fns/getDefaultOptions/{test.ts => test.mts} | 0 src/date-fns/getHours/{test.ts => test.mts} | 0 src/date-fns/getISODay/{test.ts => test.mts} | 0 src/date-fns/getISOWeek/{test.ts => test.mts} | 0 src/date-fns/getISOWeekYear/{test.ts => test.mts} | 0 src/date-fns/getISOWeeksInYear/{test.ts => test.mts} | 0 src/date-fns/getMilliseconds/{test.ts => test.mts} | 0 src/date-fns/getMinutes/{test.ts => test.mts} | 0 src/date-fns/getMonth/{test.ts => test.mts} | 0 .../getOverlappingDaysInIntervals/{test.ts => test.mts} | 0 src/date-fns/getQuarter/{test.ts => test.mts} | 0 src/date-fns/getSeconds/{test.ts => test.mts} | 0 src/date-fns/getTime/{test.ts => test.mts} | 0 src/date-fns/getUnixTime/{test.ts => test.mts} | 0 src/date-fns/getWeek/{test.ts => test.mts} | 0 src/date-fns/getWeekOfMonth/{test.ts => test.mts} | 0 src/date-fns/getWeekYear/{test.ts => test.mts} | 0 src/date-fns/getWeeksInMonth/{test.ts => test.mts} | 0 src/date-fns/getYear/{test.ts => test.mts} | 0 src/date-fns/hoursToMilliseconds/{test.ts => test.mts} | 0 src/date-fns/hoursToMinutes/{test.ts => test.mts} | 0 src/date-fns/hoursToSeconds/{test.ts => test.mts} | 0 src/date-fns/interval/{test.ts => test.mts} | 0 src/date-fns/intervalToDuration/{test.ts => test.mts} | 0 src/date-fns/intlFormat/{test.ts => test.mts} | 0 src/date-fns/intlFormatDistance/{test.ts => test.mts} | 0 src/date-fns/isAfter/{test.ts => test.mts} | 0 src/date-fns/isBefore/{test.ts => test.mts} | 0 src/date-fns/isDate/{test.ts => test.mts} | 0 src/date-fns/isEqual/{test.ts => test.mts} | 0 src/date-fns/isExists/{test.ts => test.mts} | 0 src/date-fns/isFirstDayOfMonth/{test.ts => test.mts} | 0 src/date-fns/isFriday/{test.ts => test.mts} | 0 src/date-fns/isFuture/{test.ts => test.mts} | 0 src/date-fns/isLastDayOfMonth/{test.ts => test.mts} | 0 src/date-fns/isLeapYear/{test.ts => test.mts} | 0 src/date-fns/isMatch/{test.ts => test.mts} | 0 src/date-fns/isMonday/{test.ts => test.mts} | 0 src/date-fns/isPast/{test.ts => test.mts} | 0 src/date-fns/isSameDay/{test.ts => test.mts} | 0 src/date-fns/isSameHour/{test.ts => test.mts} | 0 src/date-fns/isSameISOWeek/{test.ts => test.mts} | 0 src/date-fns/isSameISOWeekYear/{test.ts => test.mts} | 0 src/date-fns/isSameMinute/{test.ts => test.mts} | 0 src/date-fns/isSameMonth/{test.ts => test.mts} | 0 src/date-fns/isSameQuarter/{test.ts => test.mts} | 0 src/date-fns/isSameSecond/{test.ts => test.mts} | 0 src/date-fns/isSameWeek/{test.ts => test.mts} | 0 src/date-fns/isSameYear/{test.ts => test.mts} | 0 src/date-fns/isSaturday/{test.ts => test.mts} | 0 src/date-fns/isSunday/{test.ts => test.mts} | 0 src/date-fns/isThisHour/{test.ts => test.mts} | 0 src/date-fns/isThisISOWeek/{test.ts => test.mts} | 0 src/date-fns/isThisMinute/{test.ts => test.mts} | 0 src/date-fns/isThisMonth/{test.ts => test.mts} | 0 src/date-fns/isThisQuarter/{test.ts => test.mts} | 0 src/date-fns/isThisSecond/{test.ts => test.mts} | 0 src/date-fns/isThisWeek/{test.ts => test.mts} | 0 src/date-fns/isThisYear/{test.ts => test.mts} | 0 src/date-fns/isThursday/{test.ts => test.mts} | 0 src/date-fns/isToday/{test.ts => test.mts} | 0 src/date-fns/isTomorrow/{test.ts => test.mts} | 0 src/date-fns/isTuesday/{test.ts => test.mts} | 0 src/date-fns/isValid/{test.ts => test.mts} | 0 src/date-fns/isWednesday/{test.ts => test.mts} | 0 src/date-fns/isWeekend/{test.ts => test.mts} | 0 src/date-fns/isWithinInterval/{test.ts => test.mts} | 0 src/date-fns/isYesterday/{test.ts => test.mts} | 0 src/date-fns/lastDayOfDecade/{test.ts => test.mts} | 0 src/date-fns/lastDayOfISOWeek/{test.ts => test.mts} | 0 src/date-fns/lastDayOfISOWeekYear/{test.ts => test.mts} | 0 src/date-fns/lastDayOfMonth/{test.ts => test.mts} | 0 src/date-fns/lastDayOfQuarter/{test.ts => test.mts} | 0 src/date-fns/lastDayOfWeek/{test.ts => test.mts} | 0 src/date-fns/lastDayOfYear/{test.ts => test.mts} | 0 src/date-fns/lightFormat/{test.ts => test.mts} | 0 src/date-fns/max/{test.ts => test.mts} | 0 src/date-fns/milliseconds/{test.ts => test.mts} | 0 src/date-fns/millisecondsToHours/{test.ts => test.mts} | 0 src/date-fns/millisecondsToMinutes/{test.ts => test.mts} | 0 src/date-fns/millisecondsToSeconds/{test.ts => test.mts} | 0 src/date-fns/min/{test.ts => test.mts} | 0 src/date-fns/minutesToHours/{test.ts => test.mts} | 0 src/date-fns/minutesToMilliseconds/{test.ts => test.mts} | 0 src/date-fns/minutesToSeconds/{test.ts => test.mts} | 0 src/date-fns/monthsToQuarters/{test.ts => test.mts} | 0 src/date-fns/monthsToYears/{test.ts => test.mts} | 0 src/date-fns/nextDay/{test.ts => test.mts} | 0 src/date-fns/nextFriday/{test.ts => test.mts} | 0 src/date-fns/nextMonday/{test.ts => test.mts} | 0 src/date-fns/nextSaturday/{test.ts => test.mts} | 0 src/date-fns/nextSunday/{test.ts => test.mts} | 0 src/date-fns/nextThursday/{test.ts => test.mts} | 0 src/date-fns/nextTuesday/{test.ts => test.mts} | 0 src/date-fns/nextWednesday/{test.ts => test.mts} | 0 src/date-fns/parse/{test.ts => test.mts} | 0 src/date-fns/parseISO/{test.ts => test.mts} | 0 src/date-fns/parseJSON/{test.ts => test.mts} | 0 src/date-fns/previousDay/{test.ts => test.mts} | 0 src/date-fns/previousFriday/{test.ts => test.mts} | 0 src/date-fns/previousMonday/{test.ts => test.mts} | 0 src/date-fns/previousSaturday/{test.ts => test.mts} | 0 src/date-fns/previousSunday/{test.ts => test.mts} | 0 src/date-fns/previousThursday/{test.ts => test.mts} | 0 src/date-fns/previousTuesday/{test.ts => test.mts} | 0 src/date-fns/previousWednesday/{test.ts => test.mts} | 0 src/date-fns/quartersToMonths/{test.ts => test.mts} | 0 src/date-fns/quartersToYears/{test.ts => test.mts} | 0 src/date-fns/roundToNearestHours/{test.ts => test.mts} | 0 src/date-fns/roundToNearestMinutes/{test.ts => test.mts} | 0 src/date-fns/secondsToHours/{test.ts => test.mts} | 0 src/date-fns/secondsToMilliseconds/{test.ts => test.mts} | 0 src/date-fns/secondsToMinutes/{test.ts => test.mts} | 0 src/date-fns/set/{test.ts => test.mts} | 0 src/date-fns/setDate/{test.ts => test.mts} | 0 src/date-fns/setDay/{test.ts => test.mts} | 0 src/date-fns/setDayOfYear/{test.ts => test.mts} | 0 src/date-fns/setDefaultOptions/{test.ts => test.mts} | 0 src/date-fns/setHours/{test.ts => test.mts} | 0 src/date-fns/setISODay/{test.ts => test.mts} | 0 src/date-fns/setISOWeek/{test.ts => test.mts} | 0 src/date-fns/setISOWeekYear/{test.ts => test.mts} | 0 src/date-fns/setMilliseconds/{test.ts => test.mts} | 0 src/date-fns/setMinutes/{test.ts => test.mts} | 0 src/date-fns/setMonth/{test.ts => test.mts} | 0 src/date-fns/setQuarter/{test.ts => test.mts} | 0 src/date-fns/setSeconds/{test.ts => test.mts} | 0 src/date-fns/setWeek/{test.ts => test.mts} | 0 src/date-fns/setWeekYear/{test.ts => test.mts} | 0 src/date-fns/setYear/{test.ts => test.mts} | 0 src/date-fns/startOfDay/{test.ts => test.mts} | 0 src/date-fns/startOfDecade/{test.ts => test.mts} | 0 src/date-fns/startOfHour/{test.ts => test.mts} | 0 src/date-fns/startOfISOWeek/{test.ts => test.mts} | 0 src/date-fns/startOfISOWeekYear/{test.ts => test.mts} | 0 src/date-fns/startOfMinute/{test.ts => test.mts} | 0 src/date-fns/startOfMonth/{test.ts => test.mts} | 0 src/date-fns/startOfQuarter/{test.ts => test.mts} | 0 src/date-fns/startOfSecond/{test.ts => test.mts} | 0 src/date-fns/startOfToday/{test.ts => test.mts} | 0 src/date-fns/startOfTomorrow/{test.ts => test.mts} | 0 src/date-fns/startOfWeek/{test.ts => test.mts} | 0 src/date-fns/startOfWeekYear/{test.ts => test.mts} | 0 src/date-fns/startOfYear/{test.ts => test.mts} | 0 src/date-fns/startOfYesterday/{test.ts => test.mts} | 0 src/date-fns/sub/{test.ts => test.mts} | 0 src/date-fns/subBusinessDays/{test.ts => test.mts} | 0 src/date-fns/subDays/{test.ts => test.mts} | 0 src/date-fns/subHours/{test.ts => test.mts} | 0 src/date-fns/subISOWeekYears/{test.ts => test.mts} | 0 src/date-fns/subMilliseconds/{test.ts => test.mts} | 0 src/date-fns/subMinutes/{test.ts => test.mts} | 0 src/date-fns/subMonths/{test.ts => test.mts} | 0 src/date-fns/subQuarters/{test.ts => test.mts} | 0 src/date-fns/subSeconds/{test.ts => test.mts} | 0 src/date-fns/subWeeks/{test.ts => test.mts} | 0 src/date-fns/subYears/{test.ts => test.mts} | 0 src/date-fns/toDate/{test.ts => test.mts} | 0 src/date-fns/weeksToDays/{test.ts => test.mts} | 0 src/date-fns/yearsToDays/{test.ts => test.mts} | 0 src/date-fns/yearsToMonths/{test.ts => test.mts} | 0 src/date-fns/yearsToQuarters/{test.ts => test.mts} | 0 tsconfig.json | 2 +- vitest.config.test.ts | 2 +- 255 files changed, 6 insertions(+), 4 deletions(-) rename src/{date-fns/_lib => date-fns-tz/date-fns-v2-lib}/assign/index.ts (100%) rename src/{date-fns/_lib => date-fns-tz/date-fns-v2-lib}/cloneObject/index.ts (100%) rename src/date-fns/_lib/addLeadingZeros/{test.ts => test.mts} (100%) rename src/date-fns/_lib/getRoundingMethod/{test.ts => test.mts} (100%) rename src/date-fns/_lib/getTimezoneOffsetInMilliseconds/{test.ts => test.mts} (100%) rename src/date-fns/add/{test.ts => test.mts} (100%) rename src/date-fns/addBusinessDays/{test.ts => test.mts} (100%) rename src/date-fns/addDays/{test.ts => test.mts} (100%) rename src/date-fns/addHours/{test.ts => test.mts} (100%) rename src/date-fns/addISOWeekYears/{test.ts => test.mts} (100%) rename src/date-fns/addMilliseconds/{test.ts => test.mts} (100%) rename src/date-fns/addMinutes/{test.ts => test.mts} (100%) rename src/date-fns/addMonths/{test.ts => test.mts} (100%) rename src/date-fns/addQuarters/{test.ts => test.mts} (100%) rename src/date-fns/addSeconds/{test.ts => test.mts} (100%) rename src/date-fns/addWeeks/{test.ts => test.mts} (100%) rename src/date-fns/addYears/{test.ts => test.mts} (100%) rename src/date-fns/areIntervalsOverlapping/{test.ts => test.mts} (100%) rename src/date-fns/clamp/{test.ts => test.mts} (100%) rename src/date-fns/closestIndexTo/{test.ts => test.mts} (100%) rename src/date-fns/closestTo/{test.ts => test.mts} (100%) rename src/date-fns/compareAsc/{test.ts => test.mts} (100%) rename src/date-fns/compareDesc/{test.ts => test.mts} (100%) rename src/date-fns/constructFrom/{test.ts => test.mts} (100%) rename src/date-fns/constructNow/{test.ts => test.mts} (100%) rename src/date-fns/daysToWeeks/{test.ts => test.mts} (100%) rename src/date-fns/differenceInBusinessDays/{test.ts => test.mts} (100%) rename src/date-fns/differenceInCalendarDays/{test.ts => test.mts} (100%) rename src/date-fns/differenceInCalendarISOWeekYears/{test.ts => test.mts} (100%) rename src/date-fns/differenceInCalendarISOWeeks/{test.ts => test.mts} (100%) rename src/date-fns/differenceInCalendarMonths/{test.ts => test.mts} (100%) rename src/date-fns/differenceInCalendarQuarters/{test.ts => test.mts} (100%) rename src/date-fns/differenceInCalendarWeeks/{test.ts => test.mts} (100%) rename src/date-fns/differenceInCalendarYears/{test.ts => test.mts} (100%) rename src/date-fns/differenceInDays/{test.ts => test.mts} (100%) rename src/date-fns/differenceInHours/{test.ts => test.mts} (100%) rename src/date-fns/differenceInISOWeekYears/{test.ts => test.mts} (100%) rename src/date-fns/differenceInMilliseconds/{test.ts => test.mts} (100%) rename src/date-fns/differenceInMinutes/{test.ts => test.mts} (100%) rename src/date-fns/differenceInMonths/{test.ts => test.mts} (100%) rename src/date-fns/differenceInQuarters/{test.ts => test.mts} (100%) rename src/date-fns/differenceInSeconds/{test.ts => test.mts} (100%) rename src/date-fns/differenceInWeeks/{test.ts => test.mts} (100%) rename src/date-fns/differenceInYears/{test.ts => test.mts} (100%) rename src/date-fns/eachDayOfInterval/{test.ts => test.mts} (100%) rename src/date-fns/eachHourOfInterval/{test.ts => test.mts} (100%) rename src/date-fns/eachMinuteOfInterval/{test.ts => test.mts} (100%) rename src/date-fns/eachMonthOfInterval/{test.ts => test.mts} (100%) rename src/date-fns/eachQuarterOfInterval/{test.ts => test.mts} (100%) rename src/date-fns/eachWeekOfInterval/{test.ts => test.mts} (100%) rename src/date-fns/eachWeekendOfInterval/{test.ts => test.mts} (100%) rename src/date-fns/eachWeekendOfMonth/{test.ts => test.mts} (100%) rename src/date-fns/eachWeekendOfYear/{test.ts => test.mts} (100%) rename src/date-fns/eachYearOfInterval/{test.ts => test.mts} (100%) rename src/date-fns/endOfDay/{test.ts => test.mts} (100%) rename src/date-fns/endOfDecade/{test.ts => test.mts} (100%) rename src/date-fns/endOfHour/{test.ts => test.mts} (100%) rename src/date-fns/endOfISOWeek/{test.ts => test.mts} (100%) rename src/date-fns/endOfISOWeekYear/{test.ts => test.mts} (100%) rename src/date-fns/endOfMinute/{test.ts => test.mts} (100%) rename src/date-fns/endOfMonth/{test.ts => test.mts} (100%) rename src/date-fns/endOfQuarter/{test.ts => test.mts} (100%) rename src/date-fns/endOfSecond/{test.ts => test.mts} (100%) rename src/date-fns/endOfToday/{test.ts => test.mts} (100%) rename src/date-fns/endOfTomorrow/{test.ts => test.mts} (100%) rename src/date-fns/endOfWeek/{test.ts => test.mts} (100%) rename src/date-fns/endOfYear/{test.ts => test.mts} (100%) rename src/date-fns/endOfYesterday/{test.ts => test.mts} (100%) rename src/date-fns/format/{test.ts => test.mts} (100%) rename src/date-fns/formatDistance/{test.ts => test.mts} (100%) rename src/date-fns/formatDistanceStrict/{test.ts => test.mts} (100%) rename src/date-fns/formatDistanceToNow/{test.ts => test.mts} (100%) rename src/date-fns/formatDistanceToNowStrict/{test.ts => test.mts} (100%) rename src/date-fns/formatDuration/{test.ts => test.mts} (100%) rename src/date-fns/formatISO/{test.ts => test.mts} (100%) rename src/date-fns/formatISO9075/{test.ts => test.mts} (100%) rename src/date-fns/formatISODuration/{test.ts => test.mts} (100%) rename src/date-fns/formatRFC3339/{test.ts => test.mts} (100%) rename src/date-fns/formatRFC7231/{test.ts => test.mts} (100%) rename src/date-fns/formatRelative/{test.ts => test.mts} (100%) rename src/date-fns/fp/_lib/convertToFP/{test.ts => test.mts} (100%) rename src/date-fns/fromUnixTime/{test.ts => test.mts} (100%) rename src/date-fns/getDate/{test.ts => test.mts} (100%) rename src/date-fns/getDay/{test.ts => test.mts} (100%) rename src/date-fns/getDayOfYear/{test.ts => test.mts} (100%) rename src/date-fns/getDaysInMonth/{test.ts => test.mts} (100%) rename src/date-fns/getDaysInYear/{test.ts => test.mts} (100%) rename src/date-fns/getDecade/{test.ts => test.mts} (100%) rename src/date-fns/getDefaultOptions/{test.ts => test.mts} (100%) rename src/date-fns/getHours/{test.ts => test.mts} (100%) rename src/date-fns/getISODay/{test.ts => test.mts} (100%) rename src/date-fns/getISOWeek/{test.ts => test.mts} (100%) rename src/date-fns/getISOWeekYear/{test.ts => test.mts} (100%) rename src/date-fns/getISOWeeksInYear/{test.ts => test.mts} (100%) rename src/date-fns/getMilliseconds/{test.ts => test.mts} (100%) rename src/date-fns/getMinutes/{test.ts => test.mts} (100%) rename src/date-fns/getMonth/{test.ts => test.mts} (100%) rename src/date-fns/getOverlappingDaysInIntervals/{test.ts => test.mts} (100%) rename src/date-fns/getQuarter/{test.ts => test.mts} (100%) rename src/date-fns/getSeconds/{test.ts => test.mts} (100%) rename src/date-fns/getTime/{test.ts => test.mts} (100%) rename src/date-fns/getUnixTime/{test.ts => test.mts} (100%) rename src/date-fns/getWeek/{test.ts => test.mts} (100%) rename src/date-fns/getWeekOfMonth/{test.ts => test.mts} (100%) rename src/date-fns/getWeekYear/{test.ts => test.mts} (100%) rename src/date-fns/getWeeksInMonth/{test.ts => test.mts} (100%) rename src/date-fns/getYear/{test.ts => test.mts} (100%) rename src/date-fns/hoursToMilliseconds/{test.ts => test.mts} (100%) rename src/date-fns/hoursToMinutes/{test.ts => test.mts} (100%) rename src/date-fns/hoursToSeconds/{test.ts => test.mts} (100%) rename src/date-fns/interval/{test.ts => test.mts} (100%) rename src/date-fns/intervalToDuration/{test.ts => test.mts} (100%) rename src/date-fns/intlFormat/{test.ts => test.mts} (100%) rename src/date-fns/intlFormatDistance/{test.ts => test.mts} (100%) rename src/date-fns/isAfter/{test.ts => test.mts} (100%) rename src/date-fns/isBefore/{test.ts => test.mts} (100%) rename src/date-fns/isDate/{test.ts => test.mts} (100%) rename src/date-fns/isEqual/{test.ts => test.mts} (100%) rename src/date-fns/isExists/{test.ts => test.mts} (100%) rename src/date-fns/isFirstDayOfMonth/{test.ts => test.mts} (100%) rename src/date-fns/isFriday/{test.ts => test.mts} (100%) rename src/date-fns/isFuture/{test.ts => test.mts} (100%) rename src/date-fns/isLastDayOfMonth/{test.ts => test.mts} (100%) rename src/date-fns/isLeapYear/{test.ts => test.mts} (100%) rename src/date-fns/isMatch/{test.ts => test.mts} (100%) rename src/date-fns/isMonday/{test.ts => test.mts} (100%) rename src/date-fns/isPast/{test.ts => test.mts} (100%) rename src/date-fns/isSameDay/{test.ts => test.mts} (100%) rename src/date-fns/isSameHour/{test.ts => test.mts} (100%) rename src/date-fns/isSameISOWeek/{test.ts => test.mts} (100%) rename src/date-fns/isSameISOWeekYear/{test.ts => test.mts} (100%) rename src/date-fns/isSameMinute/{test.ts => test.mts} (100%) rename src/date-fns/isSameMonth/{test.ts => test.mts} (100%) rename src/date-fns/isSameQuarter/{test.ts => test.mts} (100%) rename src/date-fns/isSameSecond/{test.ts => test.mts} (100%) rename src/date-fns/isSameWeek/{test.ts => test.mts} (100%) rename src/date-fns/isSameYear/{test.ts => test.mts} (100%) rename src/date-fns/isSaturday/{test.ts => test.mts} (100%) rename src/date-fns/isSunday/{test.ts => test.mts} (100%) rename src/date-fns/isThisHour/{test.ts => test.mts} (100%) rename src/date-fns/isThisISOWeek/{test.ts => test.mts} (100%) rename src/date-fns/isThisMinute/{test.ts => test.mts} (100%) rename src/date-fns/isThisMonth/{test.ts => test.mts} (100%) rename src/date-fns/isThisQuarter/{test.ts => test.mts} (100%) rename src/date-fns/isThisSecond/{test.ts => test.mts} (100%) rename src/date-fns/isThisWeek/{test.ts => test.mts} (100%) rename src/date-fns/isThisYear/{test.ts => test.mts} (100%) rename src/date-fns/isThursday/{test.ts => test.mts} (100%) rename src/date-fns/isToday/{test.ts => test.mts} (100%) rename src/date-fns/isTomorrow/{test.ts => test.mts} (100%) rename src/date-fns/isTuesday/{test.ts => test.mts} (100%) rename src/date-fns/isValid/{test.ts => test.mts} (100%) rename src/date-fns/isWednesday/{test.ts => test.mts} (100%) rename src/date-fns/isWeekend/{test.ts => test.mts} (100%) rename src/date-fns/isWithinInterval/{test.ts => test.mts} (100%) rename src/date-fns/isYesterday/{test.ts => test.mts} (100%) rename src/date-fns/lastDayOfDecade/{test.ts => test.mts} (100%) rename src/date-fns/lastDayOfISOWeek/{test.ts => test.mts} (100%) rename src/date-fns/lastDayOfISOWeekYear/{test.ts => test.mts} (100%) rename src/date-fns/lastDayOfMonth/{test.ts => test.mts} (100%) rename src/date-fns/lastDayOfQuarter/{test.ts => test.mts} (100%) rename src/date-fns/lastDayOfWeek/{test.ts => test.mts} (100%) rename src/date-fns/lastDayOfYear/{test.ts => test.mts} (100%) rename src/date-fns/lightFormat/{test.ts => test.mts} (100%) rename src/date-fns/max/{test.ts => test.mts} (100%) rename src/date-fns/milliseconds/{test.ts => test.mts} (100%) rename src/date-fns/millisecondsToHours/{test.ts => test.mts} (100%) rename src/date-fns/millisecondsToMinutes/{test.ts => test.mts} (100%) rename src/date-fns/millisecondsToSeconds/{test.ts => test.mts} (100%) rename src/date-fns/min/{test.ts => test.mts} (100%) rename src/date-fns/minutesToHours/{test.ts => test.mts} (100%) rename src/date-fns/minutesToMilliseconds/{test.ts => test.mts} (100%) rename src/date-fns/minutesToSeconds/{test.ts => test.mts} (100%) rename src/date-fns/monthsToQuarters/{test.ts => test.mts} (100%) rename src/date-fns/monthsToYears/{test.ts => test.mts} (100%) rename src/date-fns/nextDay/{test.ts => test.mts} (100%) rename src/date-fns/nextFriday/{test.ts => test.mts} (100%) rename src/date-fns/nextMonday/{test.ts => test.mts} (100%) rename src/date-fns/nextSaturday/{test.ts => test.mts} (100%) rename src/date-fns/nextSunday/{test.ts => test.mts} (100%) rename src/date-fns/nextThursday/{test.ts => test.mts} (100%) rename src/date-fns/nextTuesday/{test.ts => test.mts} (100%) rename src/date-fns/nextWednesday/{test.ts => test.mts} (100%) rename src/date-fns/parse/{test.ts => test.mts} (100%) rename src/date-fns/parseISO/{test.ts => test.mts} (100%) rename src/date-fns/parseJSON/{test.ts => test.mts} (100%) rename src/date-fns/previousDay/{test.ts => test.mts} (100%) rename src/date-fns/previousFriday/{test.ts => test.mts} (100%) rename src/date-fns/previousMonday/{test.ts => test.mts} (100%) rename src/date-fns/previousSaturday/{test.ts => test.mts} (100%) rename src/date-fns/previousSunday/{test.ts => test.mts} (100%) rename src/date-fns/previousThursday/{test.ts => test.mts} (100%) rename src/date-fns/previousTuesday/{test.ts => test.mts} (100%) rename src/date-fns/previousWednesday/{test.ts => test.mts} (100%) rename src/date-fns/quartersToMonths/{test.ts => test.mts} (100%) rename src/date-fns/quartersToYears/{test.ts => test.mts} (100%) rename src/date-fns/roundToNearestHours/{test.ts => test.mts} (100%) rename src/date-fns/roundToNearestMinutes/{test.ts => test.mts} (100%) rename src/date-fns/secondsToHours/{test.ts => test.mts} (100%) rename src/date-fns/secondsToMilliseconds/{test.ts => test.mts} (100%) rename src/date-fns/secondsToMinutes/{test.ts => test.mts} (100%) rename src/date-fns/set/{test.ts => test.mts} (100%) rename src/date-fns/setDate/{test.ts => test.mts} (100%) rename src/date-fns/setDay/{test.ts => test.mts} (100%) rename src/date-fns/setDayOfYear/{test.ts => test.mts} (100%) rename src/date-fns/setDefaultOptions/{test.ts => test.mts} (100%) rename src/date-fns/setHours/{test.ts => test.mts} (100%) rename src/date-fns/setISODay/{test.ts => test.mts} (100%) rename src/date-fns/setISOWeek/{test.ts => test.mts} (100%) rename src/date-fns/setISOWeekYear/{test.ts => test.mts} (100%) rename src/date-fns/setMilliseconds/{test.ts => test.mts} (100%) rename src/date-fns/setMinutes/{test.ts => test.mts} (100%) rename src/date-fns/setMonth/{test.ts => test.mts} (100%) rename src/date-fns/setQuarter/{test.ts => test.mts} (100%) rename src/date-fns/setSeconds/{test.ts => test.mts} (100%) rename src/date-fns/setWeek/{test.ts => test.mts} (100%) rename src/date-fns/setWeekYear/{test.ts => test.mts} (100%) rename src/date-fns/setYear/{test.ts => test.mts} (100%) rename src/date-fns/startOfDay/{test.ts => test.mts} (100%) rename src/date-fns/startOfDecade/{test.ts => test.mts} (100%) rename src/date-fns/startOfHour/{test.ts => test.mts} (100%) rename src/date-fns/startOfISOWeek/{test.ts => test.mts} (100%) rename src/date-fns/startOfISOWeekYear/{test.ts => test.mts} (100%) rename src/date-fns/startOfMinute/{test.ts => test.mts} (100%) rename src/date-fns/startOfMonth/{test.ts => test.mts} (100%) rename src/date-fns/startOfQuarter/{test.ts => test.mts} (100%) rename src/date-fns/startOfSecond/{test.ts => test.mts} (100%) rename src/date-fns/startOfToday/{test.ts => test.mts} (100%) rename src/date-fns/startOfTomorrow/{test.ts => test.mts} (100%) rename src/date-fns/startOfWeek/{test.ts => test.mts} (100%) rename src/date-fns/startOfWeekYear/{test.ts => test.mts} (100%) rename src/date-fns/startOfYear/{test.ts => test.mts} (100%) rename src/date-fns/startOfYesterday/{test.ts => test.mts} (100%) rename src/date-fns/sub/{test.ts => test.mts} (100%) rename src/date-fns/subBusinessDays/{test.ts => test.mts} (100%) rename src/date-fns/subDays/{test.ts => test.mts} (100%) rename src/date-fns/subHours/{test.ts => test.mts} (100%) rename src/date-fns/subISOWeekYears/{test.ts => test.mts} (100%) rename src/date-fns/subMilliseconds/{test.ts => test.mts} (100%) rename src/date-fns/subMinutes/{test.ts => test.mts} (100%) rename src/date-fns/subMonths/{test.ts => test.mts} (100%) rename src/date-fns/subQuarters/{test.ts => test.mts} (100%) rename src/date-fns/subSeconds/{test.ts => test.mts} (100%) rename src/date-fns/subWeeks/{test.ts => test.mts} (100%) rename src/date-fns/subYears/{test.ts => test.mts} (100%) rename src/date-fns/toDate/{test.ts => test.mts} (100%) rename src/date-fns/weeksToDays/{test.ts => test.mts} (100%) rename src/date-fns/yearsToDays/{test.ts => test.mts} (100%) rename src/date-fns/yearsToMonths/{test.ts => test.mts} (100%) rename src/date-fns/yearsToQuarters/{test.ts => test.mts} (100%) diff --git a/README.md b/README.md index 7d2196a..e30efc5 100644 --- a/README.md +++ b/README.md @@ -85,3 +85,5 @@ When update the latest code from the original repositories, except making all th - nanosecond support please search for `[PATCH:]` in the existing codebase. + +The date-fns tests files are renamed from `test.ts` to `test.mts` so that they can be excluded from being processed by builder bundling. It's a workaround until better approach is available to have a unified control over both regular compilation and bundling. diff --git a/src/date-fns/_lib/assign/index.ts b/src/date-fns-tz/date-fns-v2-lib/assign/index.ts similarity index 100% rename from src/date-fns/_lib/assign/index.ts rename to src/date-fns-tz/date-fns-v2-lib/assign/index.ts diff --git a/src/date-fns/_lib/cloneObject/index.ts b/src/date-fns-tz/date-fns-v2-lib/cloneObject/index.ts similarity index 100% rename from src/date-fns/_lib/cloneObject/index.ts rename to src/date-fns-tz/date-fns-v2-lib/cloneObject/index.ts diff --git a/src/date-fns-tz/formatInTimeZone/index.ts b/src/date-fns-tz/formatInTimeZone/index.ts index ebcb604..64080b5 100644 --- a/src/date-fns-tz/formatInTimeZone/index.ts +++ b/src/date-fns-tz/formatInTimeZone/index.ts @@ -1,4 +1,4 @@ -import cloneObject from '../../date-fns/_lib/cloneObject'; +import cloneObject from '../date-fns-v2-lib/cloneObject'; import format from '../format'; import type { OptionsWithTZ } from '../types'; import utcToZonedTime from '../utcToZonedTime'; diff --git a/src/date-fns-tz/zonedTimeToUtc/index.ts b/src/date-fns-tz/zonedTimeToUtc/index.ts index 9bee9e7..09a04c4 100644 --- a/src/date-fns-tz/zonedTimeToUtc/index.ts +++ b/src/date-fns-tz/zonedTimeToUtc/index.ts @@ -1,4 +1,4 @@ -import cloneObject from '../../date-fns/_lib/cloneObject'; +import cloneObject from '../date-fns-v2-lib/cloneObject'; import toDate from '../toDate'; import tzPattern from '../_lib/tzPattern'; import tzParseTimezone from '../_lib/tzParseTimezone'; diff --git a/src/date-fns/_lib/addLeadingZeros/test.ts b/src/date-fns/_lib/addLeadingZeros/test.mts similarity index 100% rename from src/date-fns/_lib/addLeadingZeros/test.ts rename to src/date-fns/_lib/addLeadingZeros/test.mts diff --git a/src/date-fns/_lib/getRoundingMethod/test.ts b/src/date-fns/_lib/getRoundingMethod/test.mts similarity index 100% rename from src/date-fns/_lib/getRoundingMethod/test.ts rename to src/date-fns/_lib/getRoundingMethod/test.mts diff --git a/src/date-fns/_lib/getTimezoneOffsetInMilliseconds/test.ts b/src/date-fns/_lib/getTimezoneOffsetInMilliseconds/test.mts similarity index 100% rename from src/date-fns/_lib/getTimezoneOffsetInMilliseconds/test.ts rename to src/date-fns/_lib/getTimezoneOffsetInMilliseconds/test.mts diff --git a/src/date-fns/add/test.ts b/src/date-fns/add/test.mts similarity index 100% rename from src/date-fns/add/test.ts rename to src/date-fns/add/test.mts diff --git a/src/date-fns/addBusinessDays/test.ts b/src/date-fns/addBusinessDays/test.mts similarity index 100% rename from src/date-fns/addBusinessDays/test.ts rename to src/date-fns/addBusinessDays/test.mts diff --git a/src/date-fns/addDays/test.ts b/src/date-fns/addDays/test.mts similarity index 100% rename from src/date-fns/addDays/test.ts rename to src/date-fns/addDays/test.mts diff --git a/src/date-fns/addHours/test.ts b/src/date-fns/addHours/test.mts similarity index 100% rename from src/date-fns/addHours/test.ts rename to src/date-fns/addHours/test.mts diff --git a/src/date-fns/addISOWeekYears/test.ts b/src/date-fns/addISOWeekYears/test.mts similarity index 100% rename from src/date-fns/addISOWeekYears/test.ts rename to src/date-fns/addISOWeekYears/test.mts diff --git a/src/date-fns/addMilliseconds/test.ts b/src/date-fns/addMilliseconds/test.mts similarity index 100% rename from src/date-fns/addMilliseconds/test.ts rename to src/date-fns/addMilliseconds/test.mts diff --git a/src/date-fns/addMinutes/test.ts b/src/date-fns/addMinutes/test.mts similarity index 100% rename from src/date-fns/addMinutes/test.ts rename to src/date-fns/addMinutes/test.mts diff --git a/src/date-fns/addMonths/test.ts b/src/date-fns/addMonths/test.mts similarity index 100% rename from src/date-fns/addMonths/test.ts rename to src/date-fns/addMonths/test.mts diff --git a/src/date-fns/addQuarters/test.ts b/src/date-fns/addQuarters/test.mts similarity index 100% rename from src/date-fns/addQuarters/test.ts rename to src/date-fns/addQuarters/test.mts diff --git a/src/date-fns/addSeconds/test.ts b/src/date-fns/addSeconds/test.mts similarity index 100% rename from src/date-fns/addSeconds/test.ts rename to src/date-fns/addSeconds/test.mts diff --git a/src/date-fns/addWeeks/test.ts b/src/date-fns/addWeeks/test.mts similarity index 100% rename from src/date-fns/addWeeks/test.ts rename to src/date-fns/addWeeks/test.mts diff --git a/src/date-fns/addYears/test.ts b/src/date-fns/addYears/test.mts similarity index 100% rename from src/date-fns/addYears/test.ts rename to src/date-fns/addYears/test.mts diff --git a/src/date-fns/areIntervalsOverlapping/test.ts b/src/date-fns/areIntervalsOverlapping/test.mts similarity index 100% rename from src/date-fns/areIntervalsOverlapping/test.ts rename to src/date-fns/areIntervalsOverlapping/test.mts diff --git a/src/date-fns/clamp/test.ts b/src/date-fns/clamp/test.mts similarity index 100% rename from src/date-fns/clamp/test.ts rename to src/date-fns/clamp/test.mts diff --git a/src/date-fns/closestIndexTo/test.ts b/src/date-fns/closestIndexTo/test.mts similarity index 100% rename from src/date-fns/closestIndexTo/test.ts rename to src/date-fns/closestIndexTo/test.mts diff --git a/src/date-fns/closestTo/test.ts b/src/date-fns/closestTo/test.mts similarity index 100% rename from src/date-fns/closestTo/test.ts rename to src/date-fns/closestTo/test.mts diff --git a/src/date-fns/compareAsc/test.ts b/src/date-fns/compareAsc/test.mts similarity index 100% rename from src/date-fns/compareAsc/test.ts rename to src/date-fns/compareAsc/test.mts diff --git a/src/date-fns/compareDesc/test.ts b/src/date-fns/compareDesc/test.mts similarity index 100% rename from src/date-fns/compareDesc/test.ts rename to src/date-fns/compareDesc/test.mts diff --git a/src/date-fns/constructFrom/test.ts b/src/date-fns/constructFrom/test.mts similarity index 100% rename from src/date-fns/constructFrom/test.ts rename to src/date-fns/constructFrom/test.mts diff --git a/src/date-fns/constructNow/test.ts b/src/date-fns/constructNow/test.mts similarity index 100% rename from src/date-fns/constructNow/test.ts rename to src/date-fns/constructNow/test.mts diff --git a/src/date-fns/daysToWeeks/test.ts b/src/date-fns/daysToWeeks/test.mts similarity index 100% rename from src/date-fns/daysToWeeks/test.ts rename to src/date-fns/daysToWeeks/test.mts diff --git a/src/date-fns/differenceInBusinessDays/test.ts b/src/date-fns/differenceInBusinessDays/test.mts similarity index 100% rename from src/date-fns/differenceInBusinessDays/test.ts rename to src/date-fns/differenceInBusinessDays/test.mts diff --git a/src/date-fns/differenceInCalendarDays/test.ts b/src/date-fns/differenceInCalendarDays/test.mts similarity index 100% rename from src/date-fns/differenceInCalendarDays/test.ts rename to src/date-fns/differenceInCalendarDays/test.mts diff --git a/src/date-fns/differenceInCalendarISOWeekYears/test.ts b/src/date-fns/differenceInCalendarISOWeekYears/test.mts similarity index 100% rename from src/date-fns/differenceInCalendarISOWeekYears/test.ts rename to src/date-fns/differenceInCalendarISOWeekYears/test.mts diff --git a/src/date-fns/differenceInCalendarISOWeeks/test.ts b/src/date-fns/differenceInCalendarISOWeeks/test.mts similarity index 100% rename from src/date-fns/differenceInCalendarISOWeeks/test.ts rename to src/date-fns/differenceInCalendarISOWeeks/test.mts diff --git a/src/date-fns/differenceInCalendarMonths/test.ts b/src/date-fns/differenceInCalendarMonths/test.mts similarity index 100% rename from src/date-fns/differenceInCalendarMonths/test.ts rename to src/date-fns/differenceInCalendarMonths/test.mts diff --git a/src/date-fns/differenceInCalendarQuarters/test.ts b/src/date-fns/differenceInCalendarQuarters/test.mts similarity index 100% rename from src/date-fns/differenceInCalendarQuarters/test.ts rename to src/date-fns/differenceInCalendarQuarters/test.mts diff --git a/src/date-fns/differenceInCalendarWeeks/test.ts b/src/date-fns/differenceInCalendarWeeks/test.mts similarity index 100% rename from src/date-fns/differenceInCalendarWeeks/test.ts rename to src/date-fns/differenceInCalendarWeeks/test.mts diff --git a/src/date-fns/differenceInCalendarYears/test.ts b/src/date-fns/differenceInCalendarYears/test.mts similarity index 100% rename from src/date-fns/differenceInCalendarYears/test.ts rename to src/date-fns/differenceInCalendarYears/test.mts diff --git a/src/date-fns/differenceInDays/test.ts b/src/date-fns/differenceInDays/test.mts similarity index 100% rename from src/date-fns/differenceInDays/test.ts rename to src/date-fns/differenceInDays/test.mts diff --git a/src/date-fns/differenceInHours/test.ts b/src/date-fns/differenceInHours/test.mts similarity index 100% rename from src/date-fns/differenceInHours/test.ts rename to src/date-fns/differenceInHours/test.mts diff --git a/src/date-fns/differenceInISOWeekYears/test.ts b/src/date-fns/differenceInISOWeekYears/test.mts similarity index 100% rename from src/date-fns/differenceInISOWeekYears/test.ts rename to src/date-fns/differenceInISOWeekYears/test.mts diff --git a/src/date-fns/differenceInMilliseconds/test.ts b/src/date-fns/differenceInMilliseconds/test.mts similarity index 100% rename from src/date-fns/differenceInMilliseconds/test.ts rename to src/date-fns/differenceInMilliseconds/test.mts diff --git a/src/date-fns/differenceInMinutes/test.ts b/src/date-fns/differenceInMinutes/test.mts similarity index 100% rename from src/date-fns/differenceInMinutes/test.ts rename to src/date-fns/differenceInMinutes/test.mts diff --git a/src/date-fns/differenceInMonths/test.ts b/src/date-fns/differenceInMonths/test.mts similarity index 100% rename from src/date-fns/differenceInMonths/test.ts rename to src/date-fns/differenceInMonths/test.mts diff --git a/src/date-fns/differenceInQuarters/test.ts b/src/date-fns/differenceInQuarters/test.mts similarity index 100% rename from src/date-fns/differenceInQuarters/test.ts rename to src/date-fns/differenceInQuarters/test.mts diff --git a/src/date-fns/differenceInSeconds/test.ts b/src/date-fns/differenceInSeconds/test.mts similarity index 100% rename from src/date-fns/differenceInSeconds/test.ts rename to src/date-fns/differenceInSeconds/test.mts diff --git a/src/date-fns/differenceInWeeks/test.ts b/src/date-fns/differenceInWeeks/test.mts similarity index 100% rename from src/date-fns/differenceInWeeks/test.ts rename to src/date-fns/differenceInWeeks/test.mts diff --git a/src/date-fns/differenceInYears/test.ts b/src/date-fns/differenceInYears/test.mts similarity index 100% rename from src/date-fns/differenceInYears/test.ts rename to src/date-fns/differenceInYears/test.mts diff --git a/src/date-fns/eachDayOfInterval/test.ts b/src/date-fns/eachDayOfInterval/test.mts similarity index 100% rename from src/date-fns/eachDayOfInterval/test.ts rename to src/date-fns/eachDayOfInterval/test.mts diff --git a/src/date-fns/eachHourOfInterval/test.ts b/src/date-fns/eachHourOfInterval/test.mts similarity index 100% rename from src/date-fns/eachHourOfInterval/test.ts rename to src/date-fns/eachHourOfInterval/test.mts diff --git a/src/date-fns/eachMinuteOfInterval/test.ts b/src/date-fns/eachMinuteOfInterval/test.mts similarity index 100% rename from src/date-fns/eachMinuteOfInterval/test.ts rename to src/date-fns/eachMinuteOfInterval/test.mts diff --git a/src/date-fns/eachMonthOfInterval/test.ts b/src/date-fns/eachMonthOfInterval/test.mts similarity index 100% rename from src/date-fns/eachMonthOfInterval/test.ts rename to src/date-fns/eachMonthOfInterval/test.mts diff --git a/src/date-fns/eachQuarterOfInterval/test.ts b/src/date-fns/eachQuarterOfInterval/test.mts similarity index 100% rename from src/date-fns/eachQuarterOfInterval/test.ts rename to src/date-fns/eachQuarterOfInterval/test.mts diff --git a/src/date-fns/eachWeekOfInterval/test.ts b/src/date-fns/eachWeekOfInterval/test.mts similarity index 100% rename from src/date-fns/eachWeekOfInterval/test.ts rename to src/date-fns/eachWeekOfInterval/test.mts diff --git a/src/date-fns/eachWeekendOfInterval/test.ts b/src/date-fns/eachWeekendOfInterval/test.mts similarity index 100% rename from src/date-fns/eachWeekendOfInterval/test.ts rename to src/date-fns/eachWeekendOfInterval/test.mts diff --git a/src/date-fns/eachWeekendOfMonth/test.ts b/src/date-fns/eachWeekendOfMonth/test.mts similarity index 100% rename from src/date-fns/eachWeekendOfMonth/test.ts rename to src/date-fns/eachWeekendOfMonth/test.mts diff --git a/src/date-fns/eachWeekendOfYear/test.ts b/src/date-fns/eachWeekendOfYear/test.mts similarity index 100% rename from src/date-fns/eachWeekendOfYear/test.ts rename to src/date-fns/eachWeekendOfYear/test.mts diff --git a/src/date-fns/eachYearOfInterval/test.ts b/src/date-fns/eachYearOfInterval/test.mts similarity index 100% rename from src/date-fns/eachYearOfInterval/test.ts rename to src/date-fns/eachYearOfInterval/test.mts diff --git a/src/date-fns/endOfDay/test.ts b/src/date-fns/endOfDay/test.mts similarity index 100% rename from src/date-fns/endOfDay/test.ts rename to src/date-fns/endOfDay/test.mts diff --git a/src/date-fns/endOfDecade/test.ts b/src/date-fns/endOfDecade/test.mts similarity index 100% rename from src/date-fns/endOfDecade/test.ts rename to src/date-fns/endOfDecade/test.mts diff --git a/src/date-fns/endOfHour/test.ts b/src/date-fns/endOfHour/test.mts similarity index 100% rename from src/date-fns/endOfHour/test.ts rename to src/date-fns/endOfHour/test.mts diff --git a/src/date-fns/endOfISOWeek/test.ts b/src/date-fns/endOfISOWeek/test.mts similarity index 100% rename from src/date-fns/endOfISOWeek/test.ts rename to src/date-fns/endOfISOWeek/test.mts diff --git a/src/date-fns/endOfISOWeekYear/test.ts b/src/date-fns/endOfISOWeekYear/test.mts similarity index 100% rename from src/date-fns/endOfISOWeekYear/test.ts rename to src/date-fns/endOfISOWeekYear/test.mts diff --git a/src/date-fns/endOfMinute/test.ts b/src/date-fns/endOfMinute/test.mts similarity index 100% rename from src/date-fns/endOfMinute/test.ts rename to src/date-fns/endOfMinute/test.mts diff --git a/src/date-fns/endOfMonth/test.ts b/src/date-fns/endOfMonth/test.mts similarity index 100% rename from src/date-fns/endOfMonth/test.ts rename to src/date-fns/endOfMonth/test.mts diff --git a/src/date-fns/endOfQuarter/test.ts b/src/date-fns/endOfQuarter/test.mts similarity index 100% rename from src/date-fns/endOfQuarter/test.ts rename to src/date-fns/endOfQuarter/test.mts diff --git a/src/date-fns/endOfSecond/test.ts b/src/date-fns/endOfSecond/test.mts similarity index 100% rename from src/date-fns/endOfSecond/test.ts rename to src/date-fns/endOfSecond/test.mts diff --git a/src/date-fns/endOfToday/test.ts b/src/date-fns/endOfToday/test.mts similarity index 100% rename from src/date-fns/endOfToday/test.ts rename to src/date-fns/endOfToday/test.mts diff --git a/src/date-fns/endOfTomorrow/test.ts b/src/date-fns/endOfTomorrow/test.mts similarity index 100% rename from src/date-fns/endOfTomorrow/test.ts rename to src/date-fns/endOfTomorrow/test.mts diff --git a/src/date-fns/endOfWeek/test.ts b/src/date-fns/endOfWeek/test.mts similarity index 100% rename from src/date-fns/endOfWeek/test.ts rename to src/date-fns/endOfWeek/test.mts diff --git a/src/date-fns/endOfYear/test.ts b/src/date-fns/endOfYear/test.mts similarity index 100% rename from src/date-fns/endOfYear/test.ts rename to src/date-fns/endOfYear/test.mts diff --git a/src/date-fns/endOfYesterday/test.ts b/src/date-fns/endOfYesterday/test.mts similarity index 100% rename from src/date-fns/endOfYesterday/test.ts rename to src/date-fns/endOfYesterday/test.mts diff --git a/src/date-fns/format/test.ts b/src/date-fns/format/test.mts similarity index 100% rename from src/date-fns/format/test.ts rename to src/date-fns/format/test.mts diff --git a/src/date-fns/formatDistance/test.ts b/src/date-fns/formatDistance/test.mts similarity index 100% rename from src/date-fns/formatDistance/test.ts rename to src/date-fns/formatDistance/test.mts diff --git a/src/date-fns/formatDistanceStrict/test.ts b/src/date-fns/formatDistanceStrict/test.mts similarity index 100% rename from src/date-fns/formatDistanceStrict/test.ts rename to src/date-fns/formatDistanceStrict/test.mts diff --git a/src/date-fns/formatDistanceToNow/test.ts b/src/date-fns/formatDistanceToNow/test.mts similarity index 100% rename from src/date-fns/formatDistanceToNow/test.ts rename to src/date-fns/formatDistanceToNow/test.mts diff --git a/src/date-fns/formatDistanceToNowStrict/test.ts b/src/date-fns/formatDistanceToNowStrict/test.mts similarity index 100% rename from src/date-fns/formatDistanceToNowStrict/test.ts rename to src/date-fns/formatDistanceToNowStrict/test.mts diff --git a/src/date-fns/formatDuration/test.ts b/src/date-fns/formatDuration/test.mts similarity index 100% rename from src/date-fns/formatDuration/test.ts rename to src/date-fns/formatDuration/test.mts diff --git a/src/date-fns/formatISO/test.ts b/src/date-fns/formatISO/test.mts similarity index 100% rename from src/date-fns/formatISO/test.ts rename to src/date-fns/formatISO/test.mts diff --git a/src/date-fns/formatISO9075/test.ts b/src/date-fns/formatISO9075/test.mts similarity index 100% rename from src/date-fns/formatISO9075/test.ts rename to src/date-fns/formatISO9075/test.mts diff --git a/src/date-fns/formatISODuration/test.ts b/src/date-fns/formatISODuration/test.mts similarity index 100% rename from src/date-fns/formatISODuration/test.ts rename to src/date-fns/formatISODuration/test.mts diff --git a/src/date-fns/formatRFC3339/test.ts b/src/date-fns/formatRFC3339/test.mts similarity index 100% rename from src/date-fns/formatRFC3339/test.ts rename to src/date-fns/formatRFC3339/test.mts diff --git a/src/date-fns/formatRFC7231/test.ts b/src/date-fns/formatRFC7231/test.mts similarity index 100% rename from src/date-fns/formatRFC7231/test.ts rename to src/date-fns/formatRFC7231/test.mts diff --git a/src/date-fns/formatRelative/test.ts b/src/date-fns/formatRelative/test.mts similarity index 100% rename from src/date-fns/formatRelative/test.ts rename to src/date-fns/formatRelative/test.mts diff --git a/src/date-fns/fp/_lib/convertToFP/test.ts b/src/date-fns/fp/_lib/convertToFP/test.mts similarity index 100% rename from src/date-fns/fp/_lib/convertToFP/test.ts rename to src/date-fns/fp/_lib/convertToFP/test.mts diff --git a/src/date-fns/fromUnixTime/test.ts b/src/date-fns/fromUnixTime/test.mts similarity index 100% rename from src/date-fns/fromUnixTime/test.ts rename to src/date-fns/fromUnixTime/test.mts diff --git a/src/date-fns/getDate/test.ts b/src/date-fns/getDate/test.mts similarity index 100% rename from src/date-fns/getDate/test.ts rename to src/date-fns/getDate/test.mts diff --git a/src/date-fns/getDay/test.ts b/src/date-fns/getDay/test.mts similarity index 100% rename from src/date-fns/getDay/test.ts rename to src/date-fns/getDay/test.mts diff --git a/src/date-fns/getDayOfYear/test.ts b/src/date-fns/getDayOfYear/test.mts similarity index 100% rename from src/date-fns/getDayOfYear/test.ts rename to src/date-fns/getDayOfYear/test.mts diff --git a/src/date-fns/getDaysInMonth/test.ts b/src/date-fns/getDaysInMonth/test.mts similarity index 100% rename from src/date-fns/getDaysInMonth/test.ts rename to src/date-fns/getDaysInMonth/test.mts diff --git a/src/date-fns/getDaysInYear/test.ts b/src/date-fns/getDaysInYear/test.mts similarity index 100% rename from src/date-fns/getDaysInYear/test.ts rename to src/date-fns/getDaysInYear/test.mts diff --git a/src/date-fns/getDecade/test.ts b/src/date-fns/getDecade/test.mts similarity index 100% rename from src/date-fns/getDecade/test.ts rename to src/date-fns/getDecade/test.mts diff --git a/src/date-fns/getDefaultOptions/test.ts b/src/date-fns/getDefaultOptions/test.mts similarity index 100% rename from src/date-fns/getDefaultOptions/test.ts rename to src/date-fns/getDefaultOptions/test.mts diff --git a/src/date-fns/getHours/test.ts b/src/date-fns/getHours/test.mts similarity index 100% rename from src/date-fns/getHours/test.ts rename to src/date-fns/getHours/test.mts diff --git a/src/date-fns/getISODay/test.ts b/src/date-fns/getISODay/test.mts similarity index 100% rename from src/date-fns/getISODay/test.ts rename to src/date-fns/getISODay/test.mts diff --git a/src/date-fns/getISOWeek/test.ts b/src/date-fns/getISOWeek/test.mts similarity index 100% rename from src/date-fns/getISOWeek/test.ts rename to src/date-fns/getISOWeek/test.mts diff --git a/src/date-fns/getISOWeekYear/test.ts b/src/date-fns/getISOWeekYear/test.mts similarity index 100% rename from src/date-fns/getISOWeekYear/test.ts rename to src/date-fns/getISOWeekYear/test.mts diff --git a/src/date-fns/getISOWeeksInYear/test.ts b/src/date-fns/getISOWeeksInYear/test.mts similarity index 100% rename from src/date-fns/getISOWeeksInYear/test.ts rename to src/date-fns/getISOWeeksInYear/test.mts diff --git a/src/date-fns/getMilliseconds/test.ts b/src/date-fns/getMilliseconds/test.mts similarity index 100% rename from src/date-fns/getMilliseconds/test.ts rename to src/date-fns/getMilliseconds/test.mts diff --git a/src/date-fns/getMinutes/test.ts b/src/date-fns/getMinutes/test.mts similarity index 100% rename from src/date-fns/getMinutes/test.ts rename to src/date-fns/getMinutes/test.mts diff --git a/src/date-fns/getMonth/test.ts b/src/date-fns/getMonth/test.mts similarity index 100% rename from src/date-fns/getMonth/test.ts rename to src/date-fns/getMonth/test.mts diff --git a/src/date-fns/getOverlappingDaysInIntervals/test.ts b/src/date-fns/getOverlappingDaysInIntervals/test.mts similarity index 100% rename from src/date-fns/getOverlappingDaysInIntervals/test.ts rename to src/date-fns/getOverlappingDaysInIntervals/test.mts diff --git a/src/date-fns/getQuarter/test.ts b/src/date-fns/getQuarter/test.mts similarity index 100% rename from src/date-fns/getQuarter/test.ts rename to src/date-fns/getQuarter/test.mts diff --git a/src/date-fns/getSeconds/test.ts b/src/date-fns/getSeconds/test.mts similarity index 100% rename from src/date-fns/getSeconds/test.ts rename to src/date-fns/getSeconds/test.mts diff --git a/src/date-fns/getTime/test.ts b/src/date-fns/getTime/test.mts similarity index 100% rename from src/date-fns/getTime/test.ts rename to src/date-fns/getTime/test.mts diff --git a/src/date-fns/getUnixTime/test.ts b/src/date-fns/getUnixTime/test.mts similarity index 100% rename from src/date-fns/getUnixTime/test.ts rename to src/date-fns/getUnixTime/test.mts diff --git a/src/date-fns/getWeek/test.ts b/src/date-fns/getWeek/test.mts similarity index 100% rename from src/date-fns/getWeek/test.ts rename to src/date-fns/getWeek/test.mts diff --git a/src/date-fns/getWeekOfMonth/test.ts b/src/date-fns/getWeekOfMonth/test.mts similarity index 100% rename from src/date-fns/getWeekOfMonth/test.ts rename to src/date-fns/getWeekOfMonth/test.mts diff --git a/src/date-fns/getWeekYear/test.ts b/src/date-fns/getWeekYear/test.mts similarity index 100% rename from src/date-fns/getWeekYear/test.ts rename to src/date-fns/getWeekYear/test.mts diff --git a/src/date-fns/getWeeksInMonth/test.ts b/src/date-fns/getWeeksInMonth/test.mts similarity index 100% rename from src/date-fns/getWeeksInMonth/test.ts rename to src/date-fns/getWeeksInMonth/test.mts diff --git a/src/date-fns/getYear/test.ts b/src/date-fns/getYear/test.mts similarity index 100% rename from src/date-fns/getYear/test.ts rename to src/date-fns/getYear/test.mts diff --git a/src/date-fns/hoursToMilliseconds/test.ts b/src/date-fns/hoursToMilliseconds/test.mts similarity index 100% rename from src/date-fns/hoursToMilliseconds/test.ts rename to src/date-fns/hoursToMilliseconds/test.mts diff --git a/src/date-fns/hoursToMinutes/test.ts b/src/date-fns/hoursToMinutes/test.mts similarity index 100% rename from src/date-fns/hoursToMinutes/test.ts rename to src/date-fns/hoursToMinutes/test.mts diff --git a/src/date-fns/hoursToSeconds/test.ts b/src/date-fns/hoursToSeconds/test.mts similarity index 100% rename from src/date-fns/hoursToSeconds/test.ts rename to src/date-fns/hoursToSeconds/test.mts diff --git a/src/date-fns/interval/test.ts b/src/date-fns/interval/test.mts similarity index 100% rename from src/date-fns/interval/test.ts rename to src/date-fns/interval/test.mts diff --git a/src/date-fns/intervalToDuration/test.ts b/src/date-fns/intervalToDuration/test.mts similarity index 100% rename from src/date-fns/intervalToDuration/test.ts rename to src/date-fns/intervalToDuration/test.mts diff --git a/src/date-fns/intlFormat/test.ts b/src/date-fns/intlFormat/test.mts similarity index 100% rename from src/date-fns/intlFormat/test.ts rename to src/date-fns/intlFormat/test.mts diff --git a/src/date-fns/intlFormatDistance/test.ts b/src/date-fns/intlFormatDistance/test.mts similarity index 100% rename from src/date-fns/intlFormatDistance/test.ts rename to src/date-fns/intlFormatDistance/test.mts diff --git a/src/date-fns/isAfter/test.ts b/src/date-fns/isAfter/test.mts similarity index 100% rename from src/date-fns/isAfter/test.ts rename to src/date-fns/isAfter/test.mts diff --git a/src/date-fns/isBefore/test.ts b/src/date-fns/isBefore/test.mts similarity index 100% rename from src/date-fns/isBefore/test.ts rename to src/date-fns/isBefore/test.mts diff --git a/src/date-fns/isDate/test.ts b/src/date-fns/isDate/test.mts similarity index 100% rename from src/date-fns/isDate/test.ts rename to src/date-fns/isDate/test.mts diff --git a/src/date-fns/isEqual/test.ts b/src/date-fns/isEqual/test.mts similarity index 100% rename from src/date-fns/isEqual/test.ts rename to src/date-fns/isEqual/test.mts diff --git a/src/date-fns/isExists/test.ts b/src/date-fns/isExists/test.mts similarity index 100% rename from src/date-fns/isExists/test.ts rename to src/date-fns/isExists/test.mts diff --git a/src/date-fns/isFirstDayOfMonth/test.ts b/src/date-fns/isFirstDayOfMonth/test.mts similarity index 100% rename from src/date-fns/isFirstDayOfMonth/test.ts rename to src/date-fns/isFirstDayOfMonth/test.mts diff --git a/src/date-fns/isFriday/test.ts b/src/date-fns/isFriday/test.mts similarity index 100% rename from src/date-fns/isFriday/test.ts rename to src/date-fns/isFriday/test.mts diff --git a/src/date-fns/isFuture/test.ts b/src/date-fns/isFuture/test.mts similarity index 100% rename from src/date-fns/isFuture/test.ts rename to src/date-fns/isFuture/test.mts diff --git a/src/date-fns/isLastDayOfMonth/test.ts b/src/date-fns/isLastDayOfMonth/test.mts similarity index 100% rename from src/date-fns/isLastDayOfMonth/test.ts rename to src/date-fns/isLastDayOfMonth/test.mts diff --git a/src/date-fns/isLeapYear/test.ts b/src/date-fns/isLeapYear/test.mts similarity index 100% rename from src/date-fns/isLeapYear/test.ts rename to src/date-fns/isLeapYear/test.mts diff --git a/src/date-fns/isMatch/test.ts b/src/date-fns/isMatch/test.mts similarity index 100% rename from src/date-fns/isMatch/test.ts rename to src/date-fns/isMatch/test.mts diff --git a/src/date-fns/isMonday/test.ts b/src/date-fns/isMonday/test.mts similarity index 100% rename from src/date-fns/isMonday/test.ts rename to src/date-fns/isMonday/test.mts diff --git a/src/date-fns/isPast/test.ts b/src/date-fns/isPast/test.mts similarity index 100% rename from src/date-fns/isPast/test.ts rename to src/date-fns/isPast/test.mts diff --git a/src/date-fns/isSameDay/test.ts b/src/date-fns/isSameDay/test.mts similarity index 100% rename from src/date-fns/isSameDay/test.ts rename to src/date-fns/isSameDay/test.mts diff --git a/src/date-fns/isSameHour/test.ts b/src/date-fns/isSameHour/test.mts similarity index 100% rename from src/date-fns/isSameHour/test.ts rename to src/date-fns/isSameHour/test.mts diff --git a/src/date-fns/isSameISOWeek/test.ts b/src/date-fns/isSameISOWeek/test.mts similarity index 100% rename from src/date-fns/isSameISOWeek/test.ts rename to src/date-fns/isSameISOWeek/test.mts diff --git a/src/date-fns/isSameISOWeekYear/test.ts b/src/date-fns/isSameISOWeekYear/test.mts similarity index 100% rename from src/date-fns/isSameISOWeekYear/test.ts rename to src/date-fns/isSameISOWeekYear/test.mts diff --git a/src/date-fns/isSameMinute/test.ts b/src/date-fns/isSameMinute/test.mts similarity index 100% rename from src/date-fns/isSameMinute/test.ts rename to src/date-fns/isSameMinute/test.mts diff --git a/src/date-fns/isSameMonth/test.ts b/src/date-fns/isSameMonth/test.mts similarity index 100% rename from src/date-fns/isSameMonth/test.ts rename to src/date-fns/isSameMonth/test.mts diff --git a/src/date-fns/isSameQuarter/test.ts b/src/date-fns/isSameQuarter/test.mts similarity index 100% rename from src/date-fns/isSameQuarter/test.ts rename to src/date-fns/isSameQuarter/test.mts diff --git a/src/date-fns/isSameSecond/test.ts b/src/date-fns/isSameSecond/test.mts similarity index 100% rename from src/date-fns/isSameSecond/test.ts rename to src/date-fns/isSameSecond/test.mts diff --git a/src/date-fns/isSameWeek/test.ts b/src/date-fns/isSameWeek/test.mts similarity index 100% rename from src/date-fns/isSameWeek/test.ts rename to src/date-fns/isSameWeek/test.mts diff --git a/src/date-fns/isSameYear/test.ts b/src/date-fns/isSameYear/test.mts similarity index 100% rename from src/date-fns/isSameYear/test.ts rename to src/date-fns/isSameYear/test.mts diff --git a/src/date-fns/isSaturday/test.ts b/src/date-fns/isSaturday/test.mts similarity index 100% rename from src/date-fns/isSaturday/test.ts rename to src/date-fns/isSaturday/test.mts diff --git a/src/date-fns/isSunday/test.ts b/src/date-fns/isSunday/test.mts similarity index 100% rename from src/date-fns/isSunday/test.ts rename to src/date-fns/isSunday/test.mts diff --git a/src/date-fns/isThisHour/test.ts b/src/date-fns/isThisHour/test.mts similarity index 100% rename from src/date-fns/isThisHour/test.ts rename to src/date-fns/isThisHour/test.mts diff --git a/src/date-fns/isThisISOWeek/test.ts b/src/date-fns/isThisISOWeek/test.mts similarity index 100% rename from src/date-fns/isThisISOWeek/test.ts rename to src/date-fns/isThisISOWeek/test.mts diff --git a/src/date-fns/isThisMinute/test.ts b/src/date-fns/isThisMinute/test.mts similarity index 100% rename from src/date-fns/isThisMinute/test.ts rename to src/date-fns/isThisMinute/test.mts diff --git a/src/date-fns/isThisMonth/test.ts b/src/date-fns/isThisMonth/test.mts similarity index 100% rename from src/date-fns/isThisMonth/test.ts rename to src/date-fns/isThisMonth/test.mts diff --git a/src/date-fns/isThisQuarter/test.ts b/src/date-fns/isThisQuarter/test.mts similarity index 100% rename from src/date-fns/isThisQuarter/test.ts rename to src/date-fns/isThisQuarter/test.mts diff --git a/src/date-fns/isThisSecond/test.ts b/src/date-fns/isThisSecond/test.mts similarity index 100% rename from src/date-fns/isThisSecond/test.ts rename to src/date-fns/isThisSecond/test.mts diff --git a/src/date-fns/isThisWeek/test.ts b/src/date-fns/isThisWeek/test.mts similarity index 100% rename from src/date-fns/isThisWeek/test.ts rename to src/date-fns/isThisWeek/test.mts diff --git a/src/date-fns/isThisYear/test.ts b/src/date-fns/isThisYear/test.mts similarity index 100% rename from src/date-fns/isThisYear/test.ts rename to src/date-fns/isThisYear/test.mts diff --git a/src/date-fns/isThursday/test.ts b/src/date-fns/isThursday/test.mts similarity index 100% rename from src/date-fns/isThursday/test.ts rename to src/date-fns/isThursday/test.mts diff --git a/src/date-fns/isToday/test.ts b/src/date-fns/isToday/test.mts similarity index 100% rename from src/date-fns/isToday/test.ts rename to src/date-fns/isToday/test.mts diff --git a/src/date-fns/isTomorrow/test.ts b/src/date-fns/isTomorrow/test.mts similarity index 100% rename from src/date-fns/isTomorrow/test.ts rename to src/date-fns/isTomorrow/test.mts diff --git a/src/date-fns/isTuesday/test.ts b/src/date-fns/isTuesday/test.mts similarity index 100% rename from src/date-fns/isTuesday/test.ts rename to src/date-fns/isTuesday/test.mts diff --git a/src/date-fns/isValid/test.ts b/src/date-fns/isValid/test.mts similarity index 100% rename from src/date-fns/isValid/test.ts rename to src/date-fns/isValid/test.mts diff --git a/src/date-fns/isWednesday/test.ts b/src/date-fns/isWednesday/test.mts similarity index 100% rename from src/date-fns/isWednesday/test.ts rename to src/date-fns/isWednesday/test.mts diff --git a/src/date-fns/isWeekend/test.ts b/src/date-fns/isWeekend/test.mts similarity index 100% rename from src/date-fns/isWeekend/test.ts rename to src/date-fns/isWeekend/test.mts diff --git a/src/date-fns/isWithinInterval/test.ts b/src/date-fns/isWithinInterval/test.mts similarity index 100% rename from src/date-fns/isWithinInterval/test.ts rename to src/date-fns/isWithinInterval/test.mts diff --git a/src/date-fns/isYesterday/test.ts b/src/date-fns/isYesterday/test.mts similarity index 100% rename from src/date-fns/isYesterday/test.ts rename to src/date-fns/isYesterday/test.mts diff --git a/src/date-fns/lastDayOfDecade/test.ts b/src/date-fns/lastDayOfDecade/test.mts similarity index 100% rename from src/date-fns/lastDayOfDecade/test.ts rename to src/date-fns/lastDayOfDecade/test.mts diff --git a/src/date-fns/lastDayOfISOWeek/test.ts b/src/date-fns/lastDayOfISOWeek/test.mts similarity index 100% rename from src/date-fns/lastDayOfISOWeek/test.ts rename to src/date-fns/lastDayOfISOWeek/test.mts diff --git a/src/date-fns/lastDayOfISOWeekYear/test.ts b/src/date-fns/lastDayOfISOWeekYear/test.mts similarity index 100% rename from src/date-fns/lastDayOfISOWeekYear/test.ts rename to src/date-fns/lastDayOfISOWeekYear/test.mts diff --git a/src/date-fns/lastDayOfMonth/test.ts b/src/date-fns/lastDayOfMonth/test.mts similarity index 100% rename from src/date-fns/lastDayOfMonth/test.ts rename to src/date-fns/lastDayOfMonth/test.mts diff --git a/src/date-fns/lastDayOfQuarter/test.ts b/src/date-fns/lastDayOfQuarter/test.mts similarity index 100% rename from src/date-fns/lastDayOfQuarter/test.ts rename to src/date-fns/lastDayOfQuarter/test.mts diff --git a/src/date-fns/lastDayOfWeek/test.ts b/src/date-fns/lastDayOfWeek/test.mts similarity index 100% rename from src/date-fns/lastDayOfWeek/test.ts rename to src/date-fns/lastDayOfWeek/test.mts diff --git a/src/date-fns/lastDayOfYear/test.ts b/src/date-fns/lastDayOfYear/test.mts similarity index 100% rename from src/date-fns/lastDayOfYear/test.ts rename to src/date-fns/lastDayOfYear/test.mts diff --git a/src/date-fns/lightFormat/test.ts b/src/date-fns/lightFormat/test.mts similarity index 100% rename from src/date-fns/lightFormat/test.ts rename to src/date-fns/lightFormat/test.mts diff --git a/src/date-fns/max/test.ts b/src/date-fns/max/test.mts similarity index 100% rename from src/date-fns/max/test.ts rename to src/date-fns/max/test.mts diff --git a/src/date-fns/milliseconds/test.ts b/src/date-fns/milliseconds/test.mts similarity index 100% rename from src/date-fns/milliseconds/test.ts rename to src/date-fns/milliseconds/test.mts diff --git a/src/date-fns/millisecondsToHours/test.ts b/src/date-fns/millisecondsToHours/test.mts similarity index 100% rename from src/date-fns/millisecondsToHours/test.ts rename to src/date-fns/millisecondsToHours/test.mts diff --git a/src/date-fns/millisecondsToMinutes/test.ts b/src/date-fns/millisecondsToMinutes/test.mts similarity index 100% rename from src/date-fns/millisecondsToMinutes/test.ts rename to src/date-fns/millisecondsToMinutes/test.mts diff --git a/src/date-fns/millisecondsToSeconds/test.ts b/src/date-fns/millisecondsToSeconds/test.mts similarity index 100% rename from src/date-fns/millisecondsToSeconds/test.ts rename to src/date-fns/millisecondsToSeconds/test.mts diff --git a/src/date-fns/min/test.ts b/src/date-fns/min/test.mts similarity index 100% rename from src/date-fns/min/test.ts rename to src/date-fns/min/test.mts diff --git a/src/date-fns/minutesToHours/test.ts b/src/date-fns/minutesToHours/test.mts similarity index 100% rename from src/date-fns/minutesToHours/test.ts rename to src/date-fns/minutesToHours/test.mts diff --git a/src/date-fns/minutesToMilliseconds/test.ts b/src/date-fns/minutesToMilliseconds/test.mts similarity index 100% rename from src/date-fns/minutesToMilliseconds/test.ts rename to src/date-fns/minutesToMilliseconds/test.mts diff --git a/src/date-fns/minutesToSeconds/test.ts b/src/date-fns/minutesToSeconds/test.mts similarity index 100% rename from src/date-fns/minutesToSeconds/test.ts rename to src/date-fns/minutesToSeconds/test.mts diff --git a/src/date-fns/monthsToQuarters/test.ts b/src/date-fns/monthsToQuarters/test.mts similarity index 100% rename from src/date-fns/monthsToQuarters/test.ts rename to src/date-fns/monthsToQuarters/test.mts diff --git a/src/date-fns/monthsToYears/test.ts b/src/date-fns/monthsToYears/test.mts similarity index 100% rename from src/date-fns/monthsToYears/test.ts rename to src/date-fns/monthsToYears/test.mts diff --git a/src/date-fns/nextDay/test.ts b/src/date-fns/nextDay/test.mts similarity index 100% rename from src/date-fns/nextDay/test.ts rename to src/date-fns/nextDay/test.mts diff --git a/src/date-fns/nextFriday/test.ts b/src/date-fns/nextFriday/test.mts similarity index 100% rename from src/date-fns/nextFriday/test.ts rename to src/date-fns/nextFriday/test.mts diff --git a/src/date-fns/nextMonday/test.ts b/src/date-fns/nextMonday/test.mts similarity index 100% rename from src/date-fns/nextMonday/test.ts rename to src/date-fns/nextMonday/test.mts diff --git a/src/date-fns/nextSaturday/test.ts b/src/date-fns/nextSaturday/test.mts similarity index 100% rename from src/date-fns/nextSaturday/test.ts rename to src/date-fns/nextSaturday/test.mts diff --git a/src/date-fns/nextSunday/test.ts b/src/date-fns/nextSunday/test.mts similarity index 100% rename from src/date-fns/nextSunday/test.ts rename to src/date-fns/nextSunday/test.mts diff --git a/src/date-fns/nextThursday/test.ts b/src/date-fns/nextThursday/test.mts similarity index 100% rename from src/date-fns/nextThursday/test.ts rename to src/date-fns/nextThursday/test.mts diff --git a/src/date-fns/nextTuesday/test.ts b/src/date-fns/nextTuesday/test.mts similarity index 100% rename from src/date-fns/nextTuesday/test.ts rename to src/date-fns/nextTuesday/test.mts diff --git a/src/date-fns/nextWednesday/test.ts b/src/date-fns/nextWednesday/test.mts similarity index 100% rename from src/date-fns/nextWednesday/test.ts rename to src/date-fns/nextWednesday/test.mts diff --git a/src/date-fns/parse/test.ts b/src/date-fns/parse/test.mts similarity index 100% rename from src/date-fns/parse/test.ts rename to src/date-fns/parse/test.mts diff --git a/src/date-fns/parseISO/test.ts b/src/date-fns/parseISO/test.mts similarity index 100% rename from src/date-fns/parseISO/test.ts rename to src/date-fns/parseISO/test.mts diff --git a/src/date-fns/parseJSON/test.ts b/src/date-fns/parseJSON/test.mts similarity index 100% rename from src/date-fns/parseJSON/test.ts rename to src/date-fns/parseJSON/test.mts diff --git a/src/date-fns/previousDay/test.ts b/src/date-fns/previousDay/test.mts similarity index 100% rename from src/date-fns/previousDay/test.ts rename to src/date-fns/previousDay/test.mts diff --git a/src/date-fns/previousFriday/test.ts b/src/date-fns/previousFriday/test.mts similarity index 100% rename from src/date-fns/previousFriday/test.ts rename to src/date-fns/previousFriday/test.mts diff --git a/src/date-fns/previousMonday/test.ts b/src/date-fns/previousMonday/test.mts similarity index 100% rename from src/date-fns/previousMonday/test.ts rename to src/date-fns/previousMonday/test.mts diff --git a/src/date-fns/previousSaturday/test.ts b/src/date-fns/previousSaturday/test.mts similarity index 100% rename from src/date-fns/previousSaturday/test.ts rename to src/date-fns/previousSaturday/test.mts diff --git a/src/date-fns/previousSunday/test.ts b/src/date-fns/previousSunday/test.mts similarity index 100% rename from src/date-fns/previousSunday/test.ts rename to src/date-fns/previousSunday/test.mts diff --git a/src/date-fns/previousThursday/test.ts b/src/date-fns/previousThursday/test.mts similarity index 100% rename from src/date-fns/previousThursday/test.ts rename to src/date-fns/previousThursday/test.mts diff --git a/src/date-fns/previousTuesday/test.ts b/src/date-fns/previousTuesday/test.mts similarity index 100% rename from src/date-fns/previousTuesday/test.ts rename to src/date-fns/previousTuesday/test.mts diff --git a/src/date-fns/previousWednesday/test.ts b/src/date-fns/previousWednesday/test.mts similarity index 100% rename from src/date-fns/previousWednesday/test.ts rename to src/date-fns/previousWednesday/test.mts diff --git a/src/date-fns/quartersToMonths/test.ts b/src/date-fns/quartersToMonths/test.mts similarity index 100% rename from src/date-fns/quartersToMonths/test.ts rename to src/date-fns/quartersToMonths/test.mts diff --git a/src/date-fns/quartersToYears/test.ts b/src/date-fns/quartersToYears/test.mts similarity index 100% rename from src/date-fns/quartersToYears/test.ts rename to src/date-fns/quartersToYears/test.mts diff --git a/src/date-fns/roundToNearestHours/test.ts b/src/date-fns/roundToNearestHours/test.mts similarity index 100% rename from src/date-fns/roundToNearestHours/test.ts rename to src/date-fns/roundToNearestHours/test.mts diff --git a/src/date-fns/roundToNearestMinutes/test.ts b/src/date-fns/roundToNearestMinutes/test.mts similarity index 100% rename from src/date-fns/roundToNearestMinutes/test.ts rename to src/date-fns/roundToNearestMinutes/test.mts diff --git a/src/date-fns/secondsToHours/test.ts b/src/date-fns/secondsToHours/test.mts similarity index 100% rename from src/date-fns/secondsToHours/test.ts rename to src/date-fns/secondsToHours/test.mts diff --git a/src/date-fns/secondsToMilliseconds/test.ts b/src/date-fns/secondsToMilliseconds/test.mts similarity index 100% rename from src/date-fns/secondsToMilliseconds/test.ts rename to src/date-fns/secondsToMilliseconds/test.mts diff --git a/src/date-fns/secondsToMinutes/test.ts b/src/date-fns/secondsToMinutes/test.mts similarity index 100% rename from src/date-fns/secondsToMinutes/test.ts rename to src/date-fns/secondsToMinutes/test.mts diff --git a/src/date-fns/set/test.ts b/src/date-fns/set/test.mts similarity index 100% rename from src/date-fns/set/test.ts rename to src/date-fns/set/test.mts diff --git a/src/date-fns/setDate/test.ts b/src/date-fns/setDate/test.mts similarity index 100% rename from src/date-fns/setDate/test.ts rename to src/date-fns/setDate/test.mts diff --git a/src/date-fns/setDay/test.ts b/src/date-fns/setDay/test.mts similarity index 100% rename from src/date-fns/setDay/test.ts rename to src/date-fns/setDay/test.mts diff --git a/src/date-fns/setDayOfYear/test.ts b/src/date-fns/setDayOfYear/test.mts similarity index 100% rename from src/date-fns/setDayOfYear/test.ts rename to src/date-fns/setDayOfYear/test.mts diff --git a/src/date-fns/setDefaultOptions/test.ts b/src/date-fns/setDefaultOptions/test.mts similarity index 100% rename from src/date-fns/setDefaultOptions/test.ts rename to src/date-fns/setDefaultOptions/test.mts diff --git a/src/date-fns/setHours/test.ts b/src/date-fns/setHours/test.mts similarity index 100% rename from src/date-fns/setHours/test.ts rename to src/date-fns/setHours/test.mts diff --git a/src/date-fns/setISODay/test.ts b/src/date-fns/setISODay/test.mts similarity index 100% rename from src/date-fns/setISODay/test.ts rename to src/date-fns/setISODay/test.mts diff --git a/src/date-fns/setISOWeek/test.ts b/src/date-fns/setISOWeek/test.mts similarity index 100% rename from src/date-fns/setISOWeek/test.ts rename to src/date-fns/setISOWeek/test.mts diff --git a/src/date-fns/setISOWeekYear/test.ts b/src/date-fns/setISOWeekYear/test.mts similarity index 100% rename from src/date-fns/setISOWeekYear/test.ts rename to src/date-fns/setISOWeekYear/test.mts diff --git a/src/date-fns/setMilliseconds/test.ts b/src/date-fns/setMilliseconds/test.mts similarity index 100% rename from src/date-fns/setMilliseconds/test.ts rename to src/date-fns/setMilliseconds/test.mts diff --git a/src/date-fns/setMinutes/test.ts b/src/date-fns/setMinutes/test.mts similarity index 100% rename from src/date-fns/setMinutes/test.ts rename to src/date-fns/setMinutes/test.mts diff --git a/src/date-fns/setMonth/test.ts b/src/date-fns/setMonth/test.mts similarity index 100% rename from src/date-fns/setMonth/test.ts rename to src/date-fns/setMonth/test.mts diff --git a/src/date-fns/setQuarter/test.ts b/src/date-fns/setQuarter/test.mts similarity index 100% rename from src/date-fns/setQuarter/test.ts rename to src/date-fns/setQuarter/test.mts diff --git a/src/date-fns/setSeconds/test.ts b/src/date-fns/setSeconds/test.mts similarity index 100% rename from src/date-fns/setSeconds/test.ts rename to src/date-fns/setSeconds/test.mts diff --git a/src/date-fns/setWeek/test.ts b/src/date-fns/setWeek/test.mts similarity index 100% rename from src/date-fns/setWeek/test.ts rename to src/date-fns/setWeek/test.mts diff --git a/src/date-fns/setWeekYear/test.ts b/src/date-fns/setWeekYear/test.mts similarity index 100% rename from src/date-fns/setWeekYear/test.ts rename to src/date-fns/setWeekYear/test.mts diff --git a/src/date-fns/setYear/test.ts b/src/date-fns/setYear/test.mts similarity index 100% rename from src/date-fns/setYear/test.ts rename to src/date-fns/setYear/test.mts diff --git a/src/date-fns/startOfDay/test.ts b/src/date-fns/startOfDay/test.mts similarity index 100% rename from src/date-fns/startOfDay/test.ts rename to src/date-fns/startOfDay/test.mts diff --git a/src/date-fns/startOfDecade/test.ts b/src/date-fns/startOfDecade/test.mts similarity index 100% rename from src/date-fns/startOfDecade/test.ts rename to src/date-fns/startOfDecade/test.mts diff --git a/src/date-fns/startOfHour/test.ts b/src/date-fns/startOfHour/test.mts similarity index 100% rename from src/date-fns/startOfHour/test.ts rename to src/date-fns/startOfHour/test.mts diff --git a/src/date-fns/startOfISOWeek/test.ts b/src/date-fns/startOfISOWeek/test.mts similarity index 100% rename from src/date-fns/startOfISOWeek/test.ts rename to src/date-fns/startOfISOWeek/test.mts diff --git a/src/date-fns/startOfISOWeekYear/test.ts b/src/date-fns/startOfISOWeekYear/test.mts similarity index 100% rename from src/date-fns/startOfISOWeekYear/test.ts rename to src/date-fns/startOfISOWeekYear/test.mts diff --git a/src/date-fns/startOfMinute/test.ts b/src/date-fns/startOfMinute/test.mts similarity index 100% rename from src/date-fns/startOfMinute/test.ts rename to src/date-fns/startOfMinute/test.mts diff --git a/src/date-fns/startOfMonth/test.ts b/src/date-fns/startOfMonth/test.mts similarity index 100% rename from src/date-fns/startOfMonth/test.ts rename to src/date-fns/startOfMonth/test.mts diff --git a/src/date-fns/startOfQuarter/test.ts b/src/date-fns/startOfQuarter/test.mts similarity index 100% rename from src/date-fns/startOfQuarter/test.ts rename to src/date-fns/startOfQuarter/test.mts diff --git a/src/date-fns/startOfSecond/test.ts b/src/date-fns/startOfSecond/test.mts similarity index 100% rename from src/date-fns/startOfSecond/test.ts rename to src/date-fns/startOfSecond/test.mts diff --git a/src/date-fns/startOfToday/test.ts b/src/date-fns/startOfToday/test.mts similarity index 100% rename from src/date-fns/startOfToday/test.ts rename to src/date-fns/startOfToday/test.mts diff --git a/src/date-fns/startOfTomorrow/test.ts b/src/date-fns/startOfTomorrow/test.mts similarity index 100% rename from src/date-fns/startOfTomorrow/test.ts rename to src/date-fns/startOfTomorrow/test.mts diff --git a/src/date-fns/startOfWeek/test.ts b/src/date-fns/startOfWeek/test.mts similarity index 100% rename from src/date-fns/startOfWeek/test.ts rename to src/date-fns/startOfWeek/test.mts diff --git a/src/date-fns/startOfWeekYear/test.ts b/src/date-fns/startOfWeekYear/test.mts similarity index 100% rename from src/date-fns/startOfWeekYear/test.ts rename to src/date-fns/startOfWeekYear/test.mts diff --git a/src/date-fns/startOfYear/test.ts b/src/date-fns/startOfYear/test.mts similarity index 100% rename from src/date-fns/startOfYear/test.ts rename to src/date-fns/startOfYear/test.mts diff --git a/src/date-fns/startOfYesterday/test.ts b/src/date-fns/startOfYesterday/test.mts similarity index 100% rename from src/date-fns/startOfYesterday/test.ts rename to src/date-fns/startOfYesterday/test.mts diff --git a/src/date-fns/sub/test.ts b/src/date-fns/sub/test.mts similarity index 100% rename from src/date-fns/sub/test.ts rename to src/date-fns/sub/test.mts diff --git a/src/date-fns/subBusinessDays/test.ts b/src/date-fns/subBusinessDays/test.mts similarity index 100% rename from src/date-fns/subBusinessDays/test.ts rename to src/date-fns/subBusinessDays/test.mts diff --git a/src/date-fns/subDays/test.ts b/src/date-fns/subDays/test.mts similarity index 100% rename from src/date-fns/subDays/test.ts rename to src/date-fns/subDays/test.mts diff --git a/src/date-fns/subHours/test.ts b/src/date-fns/subHours/test.mts similarity index 100% rename from src/date-fns/subHours/test.ts rename to src/date-fns/subHours/test.mts diff --git a/src/date-fns/subISOWeekYears/test.ts b/src/date-fns/subISOWeekYears/test.mts similarity index 100% rename from src/date-fns/subISOWeekYears/test.ts rename to src/date-fns/subISOWeekYears/test.mts diff --git a/src/date-fns/subMilliseconds/test.ts b/src/date-fns/subMilliseconds/test.mts similarity index 100% rename from src/date-fns/subMilliseconds/test.ts rename to src/date-fns/subMilliseconds/test.mts diff --git a/src/date-fns/subMinutes/test.ts b/src/date-fns/subMinutes/test.mts similarity index 100% rename from src/date-fns/subMinutes/test.ts rename to src/date-fns/subMinutes/test.mts diff --git a/src/date-fns/subMonths/test.ts b/src/date-fns/subMonths/test.mts similarity index 100% rename from src/date-fns/subMonths/test.ts rename to src/date-fns/subMonths/test.mts diff --git a/src/date-fns/subQuarters/test.ts b/src/date-fns/subQuarters/test.mts similarity index 100% rename from src/date-fns/subQuarters/test.ts rename to src/date-fns/subQuarters/test.mts diff --git a/src/date-fns/subSeconds/test.ts b/src/date-fns/subSeconds/test.mts similarity index 100% rename from src/date-fns/subSeconds/test.ts rename to src/date-fns/subSeconds/test.mts diff --git a/src/date-fns/subWeeks/test.ts b/src/date-fns/subWeeks/test.mts similarity index 100% rename from src/date-fns/subWeeks/test.ts rename to src/date-fns/subWeeks/test.mts diff --git a/src/date-fns/subYears/test.ts b/src/date-fns/subYears/test.mts similarity index 100% rename from src/date-fns/subYears/test.ts rename to src/date-fns/subYears/test.mts diff --git a/src/date-fns/toDate/test.ts b/src/date-fns/toDate/test.mts similarity index 100% rename from src/date-fns/toDate/test.ts rename to src/date-fns/toDate/test.mts diff --git a/src/date-fns/weeksToDays/test.ts b/src/date-fns/weeksToDays/test.mts similarity index 100% rename from src/date-fns/weeksToDays/test.ts rename to src/date-fns/weeksToDays/test.mts diff --git a/src/date-fns/yearsToDays/test.ts b/src/date-fns/yearsToDays/test.mts similarity index 100% rename from src/date-fns/yearsToDays/test.ts rename to src/date-fns/yearsToDays/test.mts diff --git a/src/date-fns/yearsToMonths/test.ts b/src/date-fns/yearsToMonths/test.mts similarity index 100% rename from src/date-fns/yearsToMonths/test.ts rename to src/date-fns/yearsToMonths/test.mts diff --git a/src/date-fns/yearsToQuarters/test.ts b/src/date-fns/yearsToQuarters/test.mts similarity index 100% rename from src/date-fns/yearsToQuarters/test.ts rename to src/date-fns/yearsToQuarters/test.mts diff --git a/tsconfig.json b/tsconfig.json index 46eec37..99f7a4d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "@checkdigit/typescript-config", - "exclude": ["src/date-fns/**/test.ts"] + "exclude": ["src/date-fns/**/test.mts"] } diff --git a/vitest.config.test.ts b/vitest.config.test.ts index cbd8130..66068dc 100644 --- a/vitest.config.test.ts +++ b/vitest.config.test.ts @@ -2,7 +2,7 @@ import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { - include: ['src/**/test.ts'], + include: ['src/**/test.mts'], // Speed up tests, but also it's a workaround for the browser issue: // https://github.com/vitest-dev/vitest/issues/5382 isolate: false,