chore: use type: module by default (#5260)

This commit is contained in:
Alex Yang
2025-10-12 17:05:01 -07:00
committed by GitHub
parent d382d1cbc8
commit 00706f30fb
7 changed files with 10 additions and 6 deletions

View File

@@ -29,7 +29,7 @@
"prepare": "prisma generate --schema ./src/adapters/prisma-adapter/test/base.prisma",
"typecheck": "tsc --project tsconfig.json"
},
"main": "./dist/index.cjs",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"exports": {
".": {

View File

@@ -1,6 +1,7 @@
{
"name": "@better-auth/cli",
"version": "1.4.0-beta.9",
"type": "module",
"description": "The CLI for Better Auth",
"module": "dist/index.mjs",
"repository": {

View File

@@ -3,7 +3,7 @@
"version": "1.4.0-beta.9",
"description": "The most comprehensive authentication library for TypeScript.",
"type": "module",
"main": "./dist/index.cjs",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"exports": {
".": {

View File

@@ -1,8 +1,9 @@
{
"name": "@better-auth/expo",
"version": "1.4.0-beta.9",
"type": "module",
"description": "",
"main": "dist/index.cjs",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"repository": {
"type": "git",

View File

@@ -2,7 +2,8 @@
"name": "@better-auth/sso",
"author": "Bereket Engida",
"version": "1.4.0-beta.9",
"main": "dist/index.cjs",
"type": "module",
"main": "dist/index.mjs",
"license": "MIT",
"keywords": [
"sso",

View File

@@ -2,7 +2,8 @@
"name": "@better-auth/stripe",
"author": "Bereket Engida",
"version": "1.4.0-beta.9",
"main": "dist/index.cjs",
"type": "module",
"main": "dist/index.mjs",
"license": "MIT",
"keywords": [
"stripe",

View File

@@ -3,7 +3,7 @@
"version": "1.4.0-beta.9",
"description": "Telemetry package for Better Auth",
"type": "module",
"main": "./dist/index.cjs",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"exports": {
".": {