test: remove prisma
This commit is contained in:
parent
9d08421f01
commit
430d51866c
@ -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",
|
||||
|
@ -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})
|
||||
|
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user