mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: logs
This commit is contained in:
1 parent
2993ada2e5
commit
849bd356c0
4 files changed
+31
-9
No files matched your search
+10
-1
@@ -1,8 +1,9 @@
|
||||
import { exec } from 'child_process';
|
||||
import { build } from 'esbuild';
|
||||
import { cp, readdir } from 'fs/promises';
|
||||
import { argv } from 'process';
|
||||
|
||||
const isDev = argv.includes('--dev');
|
||||
const isProduction = argv.includes('--production');
|
||||
|
||||
readdir('src/workers').then((workers) => {
|
||||
const files = [
|
||||
@@ -46,3 +47,11 @@ readdir('node_modules/prisma').then((files) =>
|
||||
.filter((file) => file.endsWith('.node'))
|
||||
.map((file) => cp(`node_modules/prisma/${file}`, `dist/bot/${file}`)),
|
||||
);
|
||||
|
||||
if (isProduction) {
|
||||
// install fixed sharp
|
||||
console.log('Installing fixed sharp...');
|
||||
exec('yarn init -y && yarn add [email protected] --ignore-engines', {
|
||||
cwd: 'dist/bot',
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user