File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1111 "tsc" : " tsc --noEmit" ,
1212 "test" : " vitest --passWithNoTests" ,
1313 "dbmigrate" : " tsx scripts/dbmigrate.ts" ,
14- "load-test" : " ts-node scripts/load-testing/musicbrainz-loader.ts"
14+ "load-test" : " tsx scripts/load-testing/musicbrainz-loader.ts"
1515 },
1616 "dependencies" : {
1717 "@ai-sdk/anthropic" : " ^1.1.8" ,
5858 "dotenv" : " ^16.4.7" ,
5959 "postcss" : " ^8.5.2" ,
6060 "tailwindcss" : " ^4.0.6" ,
61- "ts-node" : " ^10.9.2" ,
6261 "tsx" : " ^4.19.2"
6362 },
6463 "engines" : {
Original file line number Diff line number Diff line change 11/* eslint-disable no-process-env */
2- const { Client } = require ( 'pg' ) ;
3- const { setTimeout : sleep } = require ( 'timers/promises' ) ;
2+ import pg from 'pg' ;
3+ import { setTimeout as sleep } from 'timers/promises' ;
44
55interface QueryStats {
66 queryCount : number ;
@@ -10,7 +10,7 @@ interface QueryStats {
1010function createConnection ( ) : Promise < any > {
1111 console . log ( 'Connecting to database:' , process . env . DATABASE_URL ) ;
1212
13- const client = new Client ( {
13+ const client = new pg . Client ( {
1414 connectionString : process . env . DATABASE_URL ,
1515 ssl : {
1616 rejectUnauthorized : false // Allow self-signed certificates
You can’t perform that action at this time.
0 commit comments