test: remove prisma

This commit is contained in:
Andras Bacsai 2022-10-04 21:46:23 +02:00
parent 9d08421f01
commit 430d51866c
3 changed files with 9 additions and 26 deletions

View File

@ -11,7 +11,8 @@
"build": "rimraf build && esbuild `find src \\( -name '*.ts' \\)| grep -v client/` --minify=true --platform=node --outdir=build --format=cjs",
"format": "prettier --write 'src/**/*.{js,ts,json,md}'",
"lint": "prettier --check 'src/**/*.{js,ts,json,md}' && eslint --ignore-path .eslintignore .",
"start": "NODE_ENV=production npx -y prisma migrate deploy && npx prisma generate && npx prisma db seed && node index.js"
"predev": "npx -y prisma migrate deploy && npx prisma generate && npx prisma db seed",
"start": "NODE_ENV=production node index.js"
},
"dependencies": {
"@breejs/ts-worker": "2.0.0",

View File

@ -140,27 +140,9 @@ export const asyncExecShellStream = async ({
export const asyncSleep = (delay: number): Promise<unknown> =>
new Promise((resolve) => setTimeout(resolve, delay));
export const prisma = new PrismaClient({
errorFormat: 'minimal'
// log: [
// {
// emit: 'event',
// level: 'query',
// },
// {
// emit: 'stdout',
// level: 'error',
// },
// {
// emit: 'stdout',
// level: 'info',
// },
// {
// emit: 'stdout',
// level: 'warn',
// },
// ],
});
export const prisma = () => {
return null
}
// prisma.$on('query', (e) => {
// console.log({e})

View File

@ -18,10 +18,10 @@ const options: any = {
}
}
},
jobs: [
{ name: 'infrastructure' },
{ name: 'deployApplication' },
],
// jobs: [
// { name: 'infrastructure' },
// { name: 'deployApplication' },
// ],
};
if (isDev) options.root = path.join(__dirname, '../jobs');