Add Prettier and ESLint tooling (Refs #77)
This commit is contained in:
@@ -26,8 +26,10 @@ export function migrationStep<T>(name: string, work: () => T): T {
|
||||
console.info(`[database] migration starting: ${name}`);
|
||||
try {
|
||||
const result = work();
|
||||
console.info(`[database] migration finished: ${name}`, { elapsedMs: Date.now() - started,
|
||||
rssMiB: Math.round(process.memoryUsage().rss / 1048576) });
|
||||
console.info(`[database] migration finished: ${name}`, {
|
||||
elapsedMs: Date.now() - started,
|
||||
rssMiB: Math.round(process.memoryUsage().rss / 1048576)
|
||||
});
|
||||
return result;
|
||||
} catch (error) {
|
||||
console.error(`[database] migration failed: ${name}`, error);
|
||||
|
||||
Reference in New Issue
Block a user