1
packages/compiled/.gitignore
vendored
Normal file
1
packages/compiled/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
dist
|
||||
8
packages/compiled/auth.ts
Normal file
8
packages/compiled/auth.ts
Normal 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'
|
||||
4
packages/compiled/index.ts
Normal file
4
packages/compiled/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export * as nanoid from 'nanoid'
|
||||
|
||||
export * as zx from 'zx'
|
||||
export * from 'zx'
|
||||
19
packages/compiled/package.json
Normal file
19
packages/compiled/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
37
packages/compiled/tsconfig.json
Normal file
37
packages/compiled/tsconfig.json
Normal 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/**"
|
||||
]
|
||||
}
|
||||
10
packages/compiled/tsup.config.ts
Normal file
10
packages/compiled/tsup.config.ts
Normal 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'],
|
||||
})
|
||||
4
packages/compiled/zx-global.cjs
Normal file
4
packages/compiled/zx-global.cjs
Normal 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
1
packages/compiled/zx-global.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/// <reference types="zx/globals" />
|
||||
Reference in New Issue
Block a user