omni-rest 0.2.4 → 0.2.5
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/cli.js +8 -3
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +8 -3
- package/dist/cli.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -554,9 +554,14 @@ Please check that the path is correct and the file is readable.`
|
|
|
554
554
|
}
|
|
555
555
|
let current = path__namespace.resolve(startDir);
|
|
556
556
|
while (true) {
|
|
557
|
-
const
|
|
558
|
-
|
|
559
|
-
|
|
557
|
+
const candidates = [
|
|
558
|
+
path__namespace.join(current, "prisma", "schema.prisma"),
|
|
559
|
+
path__namespace.join(current, "schema.prisma")
|
|
560
|
+
];
|
|
561
|
+
for (const candidate of candidates) {
|
|
562
|
+
if (fs3__namespace.existsSync(candidate)) {
|
|
563
|
+
return candidate;
|
|
564
|
+
}
|
|
560
565
|
}
|
|
561
566
|
const parent = path__namespace.dirname(current);
|
|
562
567
|
if (parent === current) {
|