Skip to content

Commit

Permalink
Fix imports for auth-* packages (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh authored Mar 11, 2024
1 parent 7ae60db commit 45fb70a
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions packages/auth-core/package.json
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion packages/auth-nextjs/src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
_extractParams,
} from "../shared";

export * from "@edgedb/auth-core/dist/errors";
export * from "@edgedb/auth-core/errors";
export {
NextAuthSession,
type NextAuthOptions,
Expand Down
4 changes: 2 additions & 2 deletions packages/auth-nextjs/src/pages/client.ts
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion packages/auth-nextjs/src/pages/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
NextAuthSession,
} from "../shared";

export * from "@edgedb/auth-core/dist/errors";
export * from "@edgedb/auth-core/errors";
export {
NextAuthSession,
type NextAuthOptions,
Expand Down
3 changes: 1 addition & 2 deletions packages/auth-nextjs/tsconfig.json
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 45fb70a

Please sign in to comment.