Deployment Script, Postgres migration, UX improvements

This commit is contained in:
2026-05-08 23:07:01 +12:00
parent 9afc3170ff
commit cfc193b713
37 changed files with 4390 additions and 2715 deletions
@@ -0,0 +1,46 @@
const childProcess = require('node:child_process');
const originalExec = childProcess.exec;
childProcess.exec = function patchedExec(command, options, callback) {
const normalizedCommand = typeof command === 'string' ? command.trim().toLowerCase() : '';
try {
return originalExec.call(this, command, options, callback);
} catch (error) {
if (normalizedCommand === 'net use' && error && error.code === 'EPERM') {
const cb =
typeof options === 'function'
? options
: typeof callback === 'function'
? callback
: null;
if (cb) {
process.nextTick(() => cb(error, '', ''));
}
return {
pid: undefined,
killed: false,
kill() {
return false;
},
on() {
return this;
},
once() {
return this;
},
emit() {
return false;
},
removeListener() {
return this;
}
};
}
throw error;
}
};