elasticsearch-index-migrator
Advanced tools
Comparing version 0.0.4-alpha to 0.0.5-alpha
{ | ||
"name": "elasticsearch-index-migrator", | ||
"version": "0.0.4-alpha", | ||
"version": "0.0.5-alpha", | ||
"main": "cli.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -18,3 +18,3 @@ "use strict"; | ||
: '.ts'; | ||
const migrationFileName = `${currentDate.getTime()}-${(0, node_path_1.resolve)(options.migrationsDir, options.migrationName)}${ext}`; | ||
const migrationFileName = `${(0, node_path_1.resolve)(options.migrationsDir, `${currentDate.getTime()}-${options.migrationName}`)}${ext}`; | ||
if ((await (0, isFileExists_1.isFileExists)(migrationFileName)) === true) { | ||
@@ -21,0 +21,0 @@ throw new Error(`"A migration file named "${migrationFileName}" already exists.`); |
33496