Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Commit

Permalink
fix: remove pg dependency
Browse files Browse the repository at this point in the history
`pg-promise` has its own version constraint on `pg`, separate to the app. To avoid a mismatch, this removes `pg` in favour of using the typings of `pg-promise`.
  • Loading branch information
thewilkybarkid authored Apr 6, 2020
1 parent 8a20df9 commit 9fdf49f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
16 changes: 0 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"koa-compose": "^4.1.0",
"koa-logger": "^3.2.1",
"p-event": "^4.1.0",
"pg": "^7.18.2",
"pg-promise": "^10.4.4",
"rdf-dataset-ext": "^1.0.0",
"rdf-dataset-indexed": "^0.4.0",
Expand All @@ -41,7 +40,6 @@
"@types/koa__router": "^8.0.2",
"@types/node": "^12.12.34",
"@types/parse-link-header": "^1.0.0",
"@types/pg": "^7.14.3",
"@types/rdf-dataset-ext": "^1.0.0",
"@types/rdf-dataset-indexed": "^0.4.3",
"@types/rdf-js": "^2.0.11",
Expand Down
4 changes: 2 additions & 2 deletions src/db.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ConnectionConfig } from 'pg';
import { IConnectionParameters } from 'pg-promise/typescript/pg-subset';

const config: Readonly<ConnectionConfig> = {
const config: Readonly<IConnectionParameters> = {
user: process.env.DATABASE_USER,
password: process.env.DATABASE_PASSWORD,
database: process.env.DATABASE_NAME,
Expand Down

0 comments on commit 9fdf49f

Please sign in to comment.