This repo demonstrates an issue using Drizzle. I cannot understand what is going on but here are the steps to reproduce the issue.
NOTE: This example requires Docker and Docker Compose support.
DATABASE_USERNAME=postgres
DATABASE_PASSWORD=postgres
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=test
npm i
This should start up a Postgres Docker image.
npm run start-services
Initialize the DB with the current schema.
npm run push
All tests should pass.
npm run test
The build should fail with several type errors.
npm run build
Open the file...
src/repositories/license/repository.ts
And change the name of the table to "widgets".
const TABLE_NAME = 'widgets';
npm run push
All tests should pass.
npm run test
The build should now succeed.
npm run build