2023-12-08 22:35:15 +01:00
|
|
|
{
|
2024-01-02 14:18:37 +01:00
|
|
|
"name": "@homarr/db",
|
2023-12-08 22:35:15 +01:00
|
|
|
"version": "0.1.0",
|
2024-09-01 16:40:22 +03:00
|
|
|
"private": true,
|
2025-03-01 17:23:00 +01:00
|
|
|
"license": "Apache-2.0",
|
2024-03-03 21:07:27 +01:00
|
|
|
"type": "module",
|
2024-02-03 22:26:12 +01:00
|
|
|
"exports": {
|
|
|
|
|
".": "./index.ts",
|
|
|
|
|
"./client": "./client.ts",
|
2025-02-23 17:34:56 +01:00
|
|
|
"./collection": "./collection.ts",
|
2024-12-19 16:10:22 +01:00
|
|
|
"./schema": "./schema/index.ts",
|
2024-08-24 15:23:16 +02:00
|
|
|
"./test": "./test/index.ts",
|
2024-11-23 22:05:44 +01:00
|
|
|
"./queries": "./queries/index.ts",
|
2024-12-19 17:48:10 +01:00
|
|
|
"./validationSchemas": "./validationSchemas.ts",
|
2025-01-14 19:03:38 +01:00
|
|
|
"./env": "./env.ts"
|
2024-02-03 22:26:12 +01:00
|
|
|
},
|
2023-12-08 22:35:15 +01:00
|
|
|
"main": "./index.ts",
|
|
|
|
|
"types": "./index.ts",
|
|
|
|
|
"scripts": {
|
2024-05-10 23:46:01 +02:00
|
|
|
"build": "pnpm run build:sqlite && pnpm run build:mysql",
|
|
|
|
|
"build:mysql": "esbuild migrations/mysql/migrate.ts --bundle --platform=node --outfile=migrations/mysql/migrate.cjs",
|
2024-09-01 16:40:22 +03:00
|
|
|
"build:sqlite": "esbuild migrations/sqlite/migrate.ts --bundle --platform=node --outfile=migrations/sqlite/migrate.cjs",
|
2023-12-08 22:35:15 +01:00
|
|
|
"clean": "rm -rf .turbo node_modules",
|
|
|
|
|
"format": "prettier --check . --ignore-path ../../.gitignore",
|
2024-09-01 16:40:22 +03:00
|
|
|
"lint": "eslint",
|
2024-12-19 17:48:10 +01:00
|
|
|
"migration:mysql:drop": "pnpm with-env drizzle-kit drop --config ./configs/mysql.config.ts",
|
|
|
|
|
"migration:mysql:generate": "pnpm with-env drizzle-kit generate --config ./configs/mysql.config.ts",
|
|
|
|
|
"migration:mysql:run": "pnpm with-env drizzle-kit migrate --config ./configs/mysql.config.ts && pnpm run seed",
|
|
|
|
|
"migration:sqlite:drop": "pnpm with-env drizzle-kit drop --config ./configs/sqlite.config.ts",
|
|
|
|
|
"migration:sqlite:generate": "pnpm with-env drizzle-kit generate --config ./configs/sqlite.config.ts",
|
|
|
|
|
"migration:sqlite:run": "pnpm with-env drizzle-kit migrate --config ./configs/sqlite.config.ts && pnpm run seed",
|
|
|
|
|
"push:mysql": "pnpm with-env drizzle-kit push --config ./configs/mysql.config.ts",
|
|
|
|
|
"push:sqlite": "pnpm with-env drizzle-kit push --config ./configs/sqlite.config.ts",
|
2024-10-21 17:23:51 +02:00
|
|
|
"seed": "pnpm with-env tsx ./migrations/run-seed.ts",
|
2024-12-19 17:48:10 +01:00
|
|
|
"studio": "pnpm with-env drizzle-kit studio --config ./configs/sqlite.config.ts",
|
2024-10-21 17:23:51 +02:00
|
|
|
"typecheck": "tsc --noEmit",
|
|
|
|
|
"with-env": "dotenv -e ../../.env --"
|
2023-12-08 22:35:15 +01:00
|
|
|
},
|
2024-09-01 16:40:22 +03:00
|
|
|
"prettier": "@homarr/prettier-config",
|
2023-12-08 22:35:15 +01:00
|
|
|
"dependencies": {
|
2025-05-10 06:24:50 +00:00
|
|
|
"@auth/core": "^0.39.1",
|
2024-01-02 17:12:26 +01:00
|
|
|
"@homarr/common": "workspace:^0.1.0",
|
|
|
|
|
"@homarr/definitions": "workspace:^0.1.0",
|
2025-02-18 22:54:15 +01:00
|
|
|
"@homarr/env": "workspace:^0.1.0",
|
2024-05-06 20:14:51 +02:00
|
|
|
"@homarr/log": "workspace:^0.1.0",
|
2024-10-21 17:23:51 +02:00
|
|
|
"@homarr/server-settings": "workspace:^0.1.0",
|
2025-05-14 13:34:50 +00:00
|
|
|
"@mantine/core": "^8.0.1",
|
2023-12-10 17:12:20 +01:00
|
|
|
"@paralleldrive/cuid2": "^2.2.2",
|
2025-05-20 09:23:43 +00:00
|
|
|
"@testcontainers/mysql": "^10.27.0",
|
2025-05-08 04:25:27 +00:00
|
|
|
"better-sqlite3": "^11.10.0",
|
2025-04-10 22:39:51 +00:00
|
|
|
"dotenv": "^16.5.0",
|
2025-05-03 12:31:28 +00:00
|
|
|
"drizzle-kit": "^0.31.1",
|
2025-04-25 08:26:07 +00:00
|
|
|
"drizzle-orm": "^0.43.1",
|
2025-03-28 12:27:33 +00:00
|
|
|
"drizzle-zod": "^0.7.1",
|
2025-04-27 04:22:58 +00:00
|
|
|
"mysql2": "3.14.1"
|
2023-12-08 22:35:15 +01:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2024-01-02 14:18:37 +01:00
|
|
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
|
|
|
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
|
|
|
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
2025-04-04 18:46:53 +00:00
|
|
|
"@types/better-sqlite3": "7.6.13",
|
2024-12-23 20:14:01 +01:00
|
|
|
"dotenv-cli": "^8.0.0",
|
2025-05-17 20:04:05 +02:00
|
|
|
"esbuild": "^0.25.4",
|
2025-05-16 20:24:10 +00:00
|
|
|
"eslint": "^9.27.0",
|
2025-03-03 02:25:21 +00:00
|
|
|
"prettier": "^3.5.3",
|
2025-04-29 06:27:59 +00:00
|
|
|
"tsx": "4.19.4",
|
2025-04-05 08:39:48 +00:00
|
|
|
"typescript": "^5.8.3"
|
2024-09-01 16:40:22 +03:00
|
|
|
}
|
2024-04-06 15:54:41 +02:00
|
|
|
}
|