diff --git a/packages/react-tweet/package.json b/packages/react-tweet/package.json index b71962f..91063d1 100644 --- a/packages/react-tweet/package.json +++ b/packages/react-tweet/package.json @@ -35,6 +35,9 @@ "index": [ "src/index" ], + "utils": [ + "src/utils" + ], "api": [ "src/api/index" ], @@ -48,6 +51,9 @@ "index": [ "dist/index.d.ts" ], + "utils": [ + "dist/utils.d.ts" + ], "api": [ "dist/api/index.d.ts" ], diff --git a/packages/react-tweet/src/utils.ts b/packages/react-tweet/src/utils.ts index 5814fe2..52f1565 100644 --- a/packages/react-tweet/src/utils.ts +++ b/packages/react-tweet/src/utils.ts @@ -13,6 +13,8 @@ import type { MediaVideo, } from './api/index.js' +export { formatDate } from './date-utils.js' + export type TweetCoreProps = { id: string onError?(error: any): any