diff --git a/packages/tanstack-start/errors/package.json b/packages/tanstack-start/errors/package.json new file mode 100644 index 0000000000..30a0e4b152 --- /dev/null +++ b/packages/tanstack-start/errors/package.json @@ -0,0 +1,4 @@ +{ + "main": "../dist/errors.js", + "types": "../dist/errors.d.ts" +} diff --git a/packages/tanstack-start/package.json b/packages/tanstack-start/package.json index cb21a7ffa1..50ce581f44 100644 --- a/packages/tanstack-start/package.json +++ b/packages/tanstack-start/package.json @@ -34,12 +34,17 @@ "types": "./dist/server/index.d.ts", "default": "./dist/server/index.js" }, + "./errors": { + "types": "./dist/errors.d.ts", + "default": "./dist/errors.js" + }, "./package.json": "./package.json" }, "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist", + "errors", "server" ], "scripts": { diff --git a/packages/tanstack-start/src/errors.ts b/packages/tanstack-start/src/errors.ts new file mode 100644 index 0000000000..1417d89517 --- /dev/null +++ b/packages/tanstack-start/src/errors.ts @@ -0,0 +1,7 @@ +export { + isClerkAPIResponseError, + isEmailLinkError, + isKnownError, + isMetamaskError, + EmailLinkErrorCode, + } from '@clerk/clerk-react/errors'; \ No newline at end of file