Refactoring 3

This commit is contained in:
Darren Clarke 2024-04-30 13:13:49 +02:00
parent e4b78ceec2
commit d1fb9b4d06
20 changed files with 201 additions and 123 deletions

View file

@ -7,8 +7,9 @@ import type {
Insertable,
Updateable,
} from "kysely";
import { Pool, types } from "pg";
import pg from "pg";
import { KyselyAuth } from "@auth/kysely-adapter";
const { Pool, types } = pg;
type Timestamp = ColumnType<Date, Date | string>;

View file

@ -6,8 +6,7 @@
"author": "Darren Clarke <darren@redaranj.com>",
"license": "AGPL-3.0-or-later",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "NODE_OPTIONS=\"--loader ts-node/esm\" graphile-worker"
"build": "tsc -p tsconfig.json"
},
"dependencies": {
"@auth/kysely-adapter": "^1.0.0",

View file

@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"target": "esnext",
"lib": ["esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,

File diff suppressed because one or more lines are too long