zenstack-kit 0.1.9 → 0.1.11
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.
|
@@ -248,7 +248,7 @@ export async function applyPrismaMigrations(options) {
|
|
|
248
248
|
// Read migration folders
|
|
249
249
|
const entries = await fs.readdir(options.migrationsFolder, { withFileTypes: true });
|
|
250
250
|
const migrationFolders = entries
|
|
251
|
-
.filter((e) => e.isDirectory() && /^\d{14}_
|
|
251
|
+
.filter((e) => e.isDirectory() && /^\d{14}(?:_.+)?$/.test(e.name))
|
|
252
252
|
.map((e) => e.name)
|
|
253
253
|
.sort();
|
|
254
254
|
const migrationFoldersWithSql = [];
|
|
@@ -352,7 +352,7 @@ export async function previewPrismaMigrations(options) {
|
|
|
352
352
|
// Read migration folders
|
|
353
353
|
const entries = await fs.readdir(options.migrationsFolder, { withFileTypes: true });
|
|
354
354
|
const migrationFolders = entries
|
|
355
|
-
.filter((e) => e.isDirectory() && /^\d{14}_
|
|
355
|
+
.filter((e) => e.isDirectory() && /^\d{14}(?:_.+)?$/.test(e.name))
|
|
356
356
|
.map((e) => e.name)
|
|
357
357
|
.sort();
|
|
358
358
|
const result = {
|
|
@@ -76,7 +76,7 @@ export async function scanMigrationFolders(outputPath) {
|
|
|
76
76
|
try {
|
|
77
77
|
const dirEntries = await fs.readdir(outputPath, { withFileTypes: true });
|
|
78
78
|
const migrationFolders = dirEntries
|
|
79
|
-
.filter((e) => e.isDirectory() && /^\d{14}_
|
|
79
|
+
.filter((e) => e.isDirectory() && /^\d{14}(?:_.+)?$/.test(e.name))
|
|
80
80
|
.map((e) => e.name)
|
|
81
81
|
.sort();
|
|
82
82
|
for (const folderName of migrationFolders) {
|