Skip to content

Commit

Permalink
Fix imports for auth-* packages
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Mar 11, 2024
1 parent 7ae60db commit 8c9ecbe
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions packages/auth-core/package.json
Expand Up @@ -15,9 +15,9 @@
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./webauthn": {
"types": "./dist/webauthn.d.ts",
"default": "./dist/webauthn.js"
"./*": {
"types": "./dist/*.d.ts",
"default": "./dist/*.js"
}
},
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/auth-nextjs/src/pages/client.ts
Expand Up @@ -4,9 +4,9 @@ import {
NextAuthHelpers,
type NextAuthOptions,
} from "../shared.client";
import { errorMapping } from "@edgedb/auth-core/dist/utils";
import { errorMapping } from "@edgedb/auth-core/utils";

export * from "@edgedb/auth-core/dist/errors";
export * from "@edgedb/auth-core/errors";
export { type NextAuthOptions, type BuiltinProviderNames };

export default function createNextPagesClientAuth(options: NextAuthOptions) {
Expand Down
3 changes: 1 addition & 2 deletions packages/auth-nextjs/tsconfig.json
Expand Up @@ -6,8 +6,7 @@
"ESNext"
],
"target": "ESNext",
"module": "CommonJS",
"moduleResolution": "node",
"module": "Node16",
"declaration": true,
"strict": true,
"downlevelIteration": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-remix/src/server.ts
Expand Up @@ -17,7 +17,7 @@ import {
} from "@edgedb/auth-core";
import { type RemixAuthOptions, RemixClientAuth } from "./client.js";

export * from "@edgedb/auth-core/dist/errors.js";
export * from "@edgedb/auth-core/errors";
export type { TokenData, RemixAuthOptions };

export type BuiltinProviderNames =
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-sveltekit/src/server.ts
Expand Up @@ -25,7 +25,7 @@ import {
type AuthOptions,
} from "./client.js";

export * from "@edgedb/auth-core/dist/errors.js";
export * from "@edgedb/auth-core/errors";
export type { TokenData, AuthOptions, Client };

export type BuiltinProviderNames =
Expand Down

0 comments on commit 8c9ecbe

Please sign in to comment.