@better-auth/sso 1.3.27 → 1.4.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@better-auth/sso",
3
3
  "author": "Bereket Engida",
4
- "version": "1.3.27",
5
- "main": "dist/index.cjs",
4
+ "version": "1.4.0-beta.10",
5
+ "type": "module",
6
+ "main": "dist/index.js",
6
7
  "license": "MIT",
7
8
  "keywords": [
8
9
  "sso",
@@ -19,17 +20,17 @@
19
20
  "publishConfig": {
20
21
  "access": "public"
21
22
  },
22
- "module": "dist/index.mjs",
23
+ "module": "dist/index.js",
23
24
  "description": "SSO plugin for Better Auth",
24
25
  "exports": {
25
26
  ".": {
26
27
  "types": "./dist/index.d.ts",
27
- "import": "./dist/index.mjs",
28
+ "import": "./dist/index.js",
28
29
  "require": "./dist/index.cjs"
29
30
  },
30
31
  "./client": {
31
32
  "types": "./dist/client.d.ts",
32
- "import": "./dist/client.mjs",
33
+ "import": "./dist/client.js",
33
34
  "require": "./dist/client.cjs"
34
35
  }
35
36
  },
@@ -57,16 +58,16 @@
57
58
  "better-call": "1.0.19",
58
59
  "body-parser": "^2.2.0",
59
60
  "express": "^5.1.0",
60
- "unbuild": "3.6.1",
61
- "better-auth": "^1.3.27"
61
+ "tsdown": "^0.15.6",
62
+ "better-auth": "^1.4.0-beta.10"
62
63
  },
63
64
  "peerDependencies": {
64
- "better-auth": "1.3.27"
65
+ "better-auth": "1.4.0-beta.10"
65
66
  },
66
67
  "scripts": {
67
68
  "test": "vitest",
68
- "build": "unbuild",
69
- "dev": "unbuild --watch",
69
+ "build": "tsdown",
70
+ "dev": "tsdown --watch",
70
71
  "typecheck": "tsc --project tsconfig.json"
71
72
  }
72
73
  }
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from "tsdown";
2
+
3
+ export default defineConfig({
4
+ dts: true,
5
+ format: ["esm", "cjs"],
6
+ entry: ["./src/index.ts", "./src/client.ts"],
7
+ external: ["better-auth", "better-call", "@better-fetch/fetch", "stripe"],
8
+ });
package/build.config.ts DELETED
@@ -1,12 +0,0 @@
1
- import { defineBuildConfig } from "unbuild";
2
-
3
- export default defineBuildConfig({
4
- declaration: true,
5
- rollup: {
6
- emitCJS: true,
7
- },
8
- outDir: "dist",
9
- clean: false,
10
- failOnWarn: false,
11
- externals: ["better-auth", "better-call", "@better-fetch/fetch", "stripe"],
12
- });
package/dist/client.d.mts DELETED
@@ -1,11 +0,0 @@
1
- import { sso } from './index.mjs';
2
- import 'better-call';
3
- import 'better-auth';
4
- import 'zod/v4';
5
-
6
- declare const ssoClient: () => {
7
- id: "sso-client";
8
- $InferServerPlugin: ReturnType<typeof sso>;
9
- };
10
-
11
- export { ssoClient };
package/dist/client.mjs DELETED
@@ -1,8 +0,0 @@
1
- const ssoClient = () => {
2
- return {
3
- id: "sso-client",
4
- $InferServerPlugin: {}
5
- };
6
- };
7
-
8
- export { ssoClient };