Files
better-auth/packages/core/package.json
2026-04-14 12:04:31 +01:00

185 lines
4.9 KiB
JSON

{
"name": "@better-auth/core",
"version": "1.6.3",
"description": "The most comprehensive authentication framework for TypeScript.",
"type": "module",
"license": "MIT",
"homepage": "https://www.better-auth.com",
"repository": {
"type": "git",
"url": "git+https://github.com/better-auth/better-auth.git",
"directory": "packages/core"
},
"keywords": [
"auth",
"core",
"typescript",
"better-auth"
],
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"lint:package": "publint run --strict --pack false",
"lint:types": "attw --profile esm-only --pack .",
"typecheck": "tsc --project tsconfig.json",
"test": "vitest",
"coverage": "vitest run --coverage --coverage.provider=istanbul"
},
"files": [
"dist",
"src",
"!src/**/*.test.ts"
],
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"exports": {
".": {
"dev-source": "./src/index.ts",
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"./api": {
"dev-source": "./src/api/index.ts",
"types": "./dist/api/index.d.mts",
"default": "./dist/api/index.mjs"
},
"./async_hooks": {
"dev-source": "./src/async_hooks/index.ts",
"types": "./dist/async_hooks/index.d.mts",
"node": "./dist/async_hooks/index.mjs",
"deno": "./dist/async_hooks/index.mjs",
"bun": "./dist/async_hooks/index.mjs",
"edge": "./dist/async_hooks/pure.index.mjs",
"workerd": "./dist/async_hooks/index.mjs",
"browser": "./dist/async_hooks/pure.index.mjs",
"default": "./dist/async_hooks/index.mjs"
},
"./context": {
"dev-source": "./src/context/index.ts",
"types": "./dist/context/index.d.mts",
"default": "./dist/context/index.mjs"
},
"./env": {
"dev-source": "./src/env/index.ts",
"types": "./dist/env/index.d.mts",
"default": "./dist/env/index.mjs"
},
"./error": {
"dev-source": "./src/error/index.ts",
"types": "./dist/error/index.d.mts",
"default": "./dist/error/index.mjs"
},
"./utils/*": {
"dev-source": "./src/utils/*.ts",
"types": "./dist/utils/*.d.mts",
"default": "./dist/utils/*.mjs"
},
"./social-providers": {
"dev-source": "./src/social-providers/index.ts",
"types": "./dist/social-providers/index.d.mts",
"default": "./dist/social-providers/index.mjs"
},
"./db": {
"dev-source": "./src/db/index.ts",
"types": "./dist/db/index.d.mts",
"default": "./dist/db/index.mjs"
},
"./db/adapter": {
"dev-source": "./src/db/adapter/index.ts",
"types": "./dist/db/adapter/index.d.mts",
"default": "./dist/db/adapter/index.mjs"
},
"./oauth2": {
"dev-source": "./src/oauth2/index.ts",
"types": "./dist/oauth2/index.d.mts",
"default": "./dist/oauth2/index.mjs"
},
"./instrumentation": {
"dev-source": "./src/instrumentation/index.ts",
"types": "./dist/instrumentation/index.d.mts",
"default": "./dist/instrumentation/index.mjs"
}
},
"typesVersions": {
"*": {
".": [
"dist/index.d.mts"
],
"api": [
"dist/api/index.d.mts"
],
"async_hooks": [
"dist/async_hooks/index.d.mts"
],
"context": [
"dist/context/index.d.mts"
],
"env": [
"dist/env/index.d.mts"
],
"error": [
"dist/error/index.d.mts"
],
"utils": [
"dist/utils/index.d.mts"
],
"utils/*": [
"dist/utils/*.d.mts"
],
"social-providers": [
"dist/social-providers/index.d.mts"
],
"db": [
"dist/db/index.d.mts"
],
"db/adapter": [
"dist/db/adapter/index.d.mts"
],
"oauth2": [
"dist/oauth2/index.d.mts"
],
"instrumentation": [
"dist/instrumentation/index.d.mts"
]
}
},
"dependencies": {
"@opentelemetry/semantic-conventions": "^1.39.0",
"@standard-schema/spec": "^1.1.0",
"zod": "^4.3.6"
},
"devDependencies": {
"@better-auth/utils": "catalog:",
"@better-fetch/fetch": "catalog:",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/sdk-trace-base": "^1.30.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"better-call": "catalog:",
"@cloudflare/workers-types": "^4.20250121.0",
"jose": "^6.1.3",
"kysely": "^0.28.14",
"nanostores": "^1.1.1",
"tsdown": "catalog:"
},
"peerDependencies": {
"@better-auth/utils": "catalog:",
"@better-fetch/fetch": "catalog:",
"@opentelemetry/api": "^1.9.0",
"better-call": "catalog:",
"@cloudflare/workers-types": ">=4",
"jose": "^6.1.0",
"kysely": "^0.28.5",
"nanostores": "^1.0.1"
},
"peerDependenciesMeta": {
"@cloudflare/workers-types": {
"optional": true
}
}
}