chore: fix typo #2266

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2024-12-19 14:17:08 +08:00
parent 20a1eef0b9
commit f60c1c23b3
21 changed files with 23 additions and 23 deletions

1
packages/compiled/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
dist

View File

@@ -0,0 +1,8 @@
export { betterAuth } from 'better-auth'
export { APIError } from 'better-auth/api'
export { mongodbAdapter } from 'better-auth/adapters/mongodb'
export { fromNodeHeaders, toNodeHandler } from 'better-auth/node'
export { bearer, jwt } from 'better-auth/plugins'
export type * from 'better-auth'

View File

@@ -0,0 +1,4 @@
export * as nanoid from 'nanoid'
export * as zx from 'zx'
export * from 'zx'

View File

@@ -0,0 +1,19 @@
{
"name": "@mx-space/compiled",
"private": true,
"type": "module",
"main": "dist/index.cjs",
"exports": {
".": "./dist/index.cjs",
"./zx-global": "./zx-global.cjs",
"./auth": "./dist/auth.cjs"
},
"scripts": {
"build": "tsup"
},
"devDependencies": {
"better-auth": "1.0.10",
"nanoid": "5.0.9",
"zx": "7.2.3"
}
}

View File

@@ -0,0 +1,37 @@
{
"compilerOptions": {
"declaration": true,
"outDir": "./esm",
"baseUrl": ".",
"jsx": "react",
"target": "es2020",
"lib": [
"ESNext",
"DOM",
"DOM.Iterable"
],
"module": "ESNext",
"moduleResolution": "node",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"sourceMap": true,
"paths": {
"~/*": [
"*"
],
"@core/*": [
"../../apps/core/src/*"
],
}
},
"exclude": [
"esm/*",
"build/*",
"node_modules/*",
"lib/*",
"dist/**"
]
}

View File

@@ -0,0 +1,10 @@
import { defineConfig } from 'tsup'
export default defineConfig({
clean: true,
target: 'es2020',
entry: ['index.ts', 'auth.ts'],
dts: true,
external: ['mongodb'],
format: ['cjs'],
})

View File

@@ -0,0 +1,4 @@
// import zx from './dist/index.cjs'
const zx = require('./dist/index.cjs').zx
Object.assign(global, zx)

1
packages/compiled/zx-global.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
/// <reference types="zx/globals" />