add uncommitted stuff

This commit is contained in:
Pablo Fernandez
2023-12-01 16:39:09 +00:00
parent 6aece8a46c
commit 9ffeb2311f
2 changed files with 19 additions and 1 deletions

2
.gitignore vendored
View File

@@ -1,5 +1,5 @@
node_modules node_modules
**/*.js src/*.js
dist dist
**/*.d.ts **/*.d.ts
**/*.d.ts.map **/*.d.ts.map

18
scripts/start.js Normal file
View File

@@ -0,0 +1,18 @@
const { execSync, spawn } = require('child_process');
try {
console.log(`Running migrations`);
execSync('npm run prisma:migrate');
} catch (error) {
console.log(error);
// Handle any potential migration errors here
}
const args = process.argv.slice(2);
const childProcess = spawn('node', ['./dist/index.js', ...args], {
stdio: 'inherit',
});
childProcess.on('exit', (code) => {
process.exit(code);
});