@miriad-systems/nuum 0.1.3 → 0.1.4
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.
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22818,8 +22818,13 @@ var Log;
|
|
|
22818
22818
|
var log = Log.create({ service: "migrate" });
|
|
22819
22819
|
function getMigrationsDir() {
|
|
22820
22820
|
const currentDir = dirname(new URL(import.meta.url).pathname);
|
|
22821
|
-
if (currentDir.includes("/
|
|
22822
|
-
|
|
22821
|
+
if (currentDir.includes("node_modules/@miriad-systems/nuum")) {
|
|
22822
|
+
const packageRoot = currentDir.split("node_modules/@miriad-systems/nuum")[0] + "node_modules/@miriad-systems/nuum";
|
|
22823
|
+
return join(packageRoot, "src/storage/migrations");
|
|
22824
|
+
}
|
|
22825
|
+
if (currentDir.includes("/dist")) {
|
|
22826
|
+
const projectRoot = currentDir.replace(/\/dist.*$/, "");
|
|
22827
|
+
return join(projectRoot, "src/storage/migrations");
|
|
22823
22828
|
}
|
|
22824
22829
|
return join(currentDir, "migrations");
|
|
22825
22830
|
}
|