Skip to content

Commit

Permalink
Bun format root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hansaskov committed Dec 25, 2024
1 parent 8ba44c7 commit 98f233e
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 86 deletions.
22 changes: 11 additions & 11 deletions services/backend/drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { defineConfig } from 'drizzle-kit';
import { defineConfig } from "drizzle-kit";

if(!process.env.DATABASE_URL) {
throw Error("No Database url found in environment")
if (!process.env.DATABASE_URL) {
throw Error("No Database url found in environment");
}

export default defineConfig({
out: './src/db/migrations',
schema: './src/db/collections/index.ts',
dialect: 'postgresql',
dbCredentials: {
url: process.env.DATABASE_URL,
},
});
out: "./src/db/migrations",
schema: "./src/db/collections/index.ts",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL,
},
});
88 changes: 44 additions & 44 deletions services/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
{
"name": "backend",
"main": "./src/index.ts",
"module": "src/index.ts",
"type": "module",
"scripts": {
"dev": "bun --watch src/index.ts",
"build": "bun build src/index.ts --target bun --outdir ./dist",
"compile": "bun build src/index.ts --compile --minify --sourcemap --target bun --outfile backend",
"check": "bun x tsc --noEmit",
"preview": "NODE_ENV=production bun dist/index.js",
"format": "bun x @biomejs/biome format --write src",
"lint": "bun x @biomejs/biome check src",
"lint:fix": "bun x @biomejs/biome check src --write",
"db:generate": "bun x drizzle-kit generate",
"db:push": "bun x drizzle-kit push --verbose --strict",
"db:migrate": "bun x drizzle-kit migrate",
"db:check": "bun x drizzle-kit check",
"db:studio": "bun x --bun drizzle-kit studio"
},
"dependencies": {
"@bogeychan/elysia-logger": "^0.1.6",
"@elysiajs/eden": "^1.1.3",
"@elysiajs/swagger": "^1.1.6",
"@oslojs/crypto": "^1.0.1",
"@oslojs/encoding": "^1.1.0",
"@sinclair/typebox": "0.32.34",
"arctic": "^2.3.3",
"drizzle-orm": "^0.38.2",
"drizzle-typebox": "0.1.1",
"elysia": "^1.1.26",
"nanoid": "^5.0.9",
"postgres": "^3.4.5"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@types/bun": "^1.1.14",
"@types/node": "^22.10.2",
"drizzle-kit": "^0.30.1",
"typescript": "^5.7.2"
},
"overrides": {
"@sinclair/typebox": "0.32.34"
}
}
"name": "backend",
"main": "./src/index.ts",
"module": "src/index.ts",
"type": "module",
"scripts": {
"dev": "bun --watch src/index.ts",
"build": "bun build src/index.ts --target bun --outdir ./dist",
"compile": "bun build src/index.ts --compile --minify --sourcemap --target bun --outfile backend",
"check": "bun x tsc --noEmit",
"preview": "NODE_ENV=production bun dist/index.js",
"format": "bun x @biomejs/biome format --write src",
"lint": "bun x @biomejs/biome check src",
"lint:fix": "bun x @biomejs/biome check src --write",
"db:generate": "bun x drizzle-kit generate",
"db:push": "bun x drizzle-kit push --verbose --strict",
"db:migrate": "bun x drizzle-kit migrate",
"db:check": "bun x drizzle-kit check",
"db:studio": "bun x --bun drizzle-kit studio"
},
"dependencies": {
"@bogeychan/elysia-logger": "^0.1.6",
"@elysiajs/eden": "^1.1.3",
"@elysiajs/swagger": "^1.1.6",
"@oslojs/crypto": "^1.0.1",
"@oslojs/encoding": "^1.1.0",
"@sinclair/typebox": "0.32.34",
"arctic": "^2.3.3",
"drizzle-orm": "^0.38.2",
"drizzle-typebox": "0.1.1",
"elysia": "^1.1.26",
"nanoid": "^5.0.9",
"postgres": "^3.4.5"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@types/bun": "^1.1.14",
"@types/node": "^22.10.2",
"drizzle-kit": "^0.30.1",
"typescript": "^5.7.2"
},
"overrides": {
"@sinclair/typebox": "0.32.34"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"associatedApplications": [
{
"applicationId": "d947007a-bd3d-41fa-a027-f63346796c51"
}
]
}
"associatedApplications": [
{
"applicationId": "d947007a-bd3d-41fa-a027-f63346796c51"
}
]
}
46 changes: 21 additions & 25 deletions services/backend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
{
"compilerOptions": {
"lib": [
"ESNext"
],
"module": "ESNext",
"target": "ESNext",
"moduleResolution": "Bundler",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"rootDir": "./src",
"noEmit": true,
"paths": {
"$auth/*": [ "./src/auth/*" ],
"$config/*": [ "./src/config/*" ],
"$db/*": [ "./src/db/*" ],
"$types/*": [ "./src/types/*" ],
"$utils/*": [ "./src/utils/*" ],
}
},
"include": [
"src"
]
}
"compilerOptions": {
"lib": ["ESNext"],
"module": "ESNext",
"target": "ESNext",
"moduleResolution": "Bundler",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"rootDir": "./src",
"noEmit": true,
"paths": {
"$auth/*": ["./src/auth/*"],
"$config/*": ["./src/config/*"],
"$db/*": ["./src/db/*"],
"$types/*": ["./src/types/*"],
"$utils/*": ["./src/utils/*"]
}
},
"include": ["src"]
}

0 comments on commit 98f233e

Please sign in to comment.