@mtg-tracker/common 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,6 +29,11 @@ function runMigrations(pool, migrationsDir, service) {
29
29
  executed_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
30
30
  )
31
31
  `);
32
+ // Check if migrations directory exists
33
+ if (!fs_1.default.existsSync(migrationsDir)) {
34
+ console.log(`No migrations directory found at ${migrationsDir}, skipping migrations...`);
35
+ return;
36
+ }
32
37
  // Get all migration files from the provided directory
33
38
  const files = fs_1.default.readdirSync(migrationsDir)
34
39
  .filter(file => file.endsWith('_up.sql'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtg-tracker/common",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",