Pure-JS bcrypt for password hashing. Avoids the native-build pain of node-bcrypt in our Alpine Docker images. Login is a rare event so the perf gap is irrelevant for our scale.
42 lines
994 B
JSON
42 lines
994 B
JSON
{
|
|
"name": "@cmbot/db",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./schema": {
|
|
"types": "./dist/schema.d.ts",
|
|
"default": "./dist/schema.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json",
|
|
"test": "echo 'no unit tests'",
|
|
"lint": "echo 'lint placeholder'",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"generate": "drizzle-kit generate",
|
|
"migrate": "tsx src/migrate.ts",
|
|
"studio": "drizzle-kit studio --host 0.0.0.0",
|
|
"seed": "tsx src/seed.ts"
|
|
},
|
|
"dependencies": {
|
|
"bcryptjs": "^3.0.3",
|
|
"drizzle-orm": "^0.36.0",
|
|
"pg": "^8.13.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bcryptjs": "^3.0.0",
|
|
"@types/node": "^22.7.0",
|
|
"@types/pg": "^8.11.10",
|
|
"drizzle-kit": "^0.28.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.5.0"
|
|
}
|
|
}
|