@better-auth/core 1.4.0-beta.4 → 1.4.0-beta.5

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @better-auth/core@1.4.0-beta.4 build /home/runner/work/better-auth/better-auth/packages/core
2
+ > @better-auth/core@1.4.0-beta.5 build /home/runner/work/better-auth/better-auth/packages/core
3
3
  > unbuild --clean
4
4
 
5
5
  [info] Building core
@@ -7,11 +7,15 @@
7
7
  Generated an empty chunk: "index".
8
8
  Generated an empty chunk: "index".
9
9
  Generated an empty chunk: "index".
10
+ Generated an empty chunk: "index".
11
+ Generated an empty chunk: "index".
10
12
  [success] Build succeeded for core
13
+ [log] dist/index.cjs (total size: 15 B, chunk size: 15 B)
14
+
11
15
  [log] dist/index.mjs (total size: 1 B, chunk size: 1 B)
12
16
 
13
- Σ Total dist size (byte size): 27 B
17
+ Σ Total dist size (byte size): 55 B
14
18
  [log]
15
19
  [warn] Build is done with some warnings:
16
20
 
17
- - Potential missing package.json files: dist/index.js
21
+ - Potential missing package.json files: dist/index.d.cjs
package/build.config.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  import { defineBuildConfig } from "unbuild";
2
2
 
3
3
  export default defineBuildConfig({
4
+ rollup: {
5
+ emitCJS: true,
6
+ },
4
7
  declaration: true,
5
8
  outDir: "dist",
6
9
  clean: true,
package/dist/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,2 @@
1
+
2
+ export { };
package/package.json CHANGED
@@ -1,12 +1,27 @@
1
1
  {
2
2
  "name": "@better-auth/core",
3
- "version": "1.4.0-beta.4",
3
+ "version": "1.4.0-beta.5",
4
4
  "description": "The most comprehensive authentication library for TypeScript.",
5
5
  "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.mjs",
6
8
  "exports": {
7
9
  ".": {
8
- "types": "./dist/index.d.ts",
9
- "import": "./dist/index.js"
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.mjs"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.cjs",
16
+ "default": "./dist/index.cjs"
17
+ }
18
+ }
19
+ },
20
+ "typesVersions": {
21
+ "*": {
22
+ "index": [
23
+ "dist/index.d.ts"
24
+ ]
10
25
  }
11
26
  },
12
27
  "devDependencies": {