@wenathlan/getry 2.0.158 → 2.0.159
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/cli.ts +2 -2
- package/package.json +1 -1
package/cli.ts
CHANGED
|
@@ -377,7 +377,7 @@ import { defineConfig } from "prisma/config";
|
|
|
377
377
|
function resolveschemapath(): string {
|
|
378
378
|
const candidates = [
|
|
379
379
|
path.resolve(process.cwd(), "schema.prisma"),
|
|
380
|
-
path.resolve(process.cwd(), "
|
|
380
|
+
path.resolve(process.cwd(), "sol", "schema.prisma"),
|
|
381
381
|
path.resolve(process.cwd(), "prisma", "schema.prisma"),
|
|
382
382
|
];
|
|
383
383
|
for (const candidate of candidates) {
|
|
@@ -812,7 +812,7 @@ async function cmdexport(dirarg: string | undefined): Promise<void> {
|
|
|
812
812
|
console.log(`${colors.green}exported${colors.reset} ${name}`);
|
|
813
813
|
}
|
|
814
814
|
const schemaroot = resolve(process.cwd(), "schema.prisma");
|
|
815
|
-
const schemapath = existsSync(schemaroot) ? schemaroot : resolve(process.cwd(), "
|
|
815
|
+
const schemapath = existsSync(schemaroot) ? schemaroot : resolve(process.cwd(), "sol", "schema.prisma");
|
|
816
816
|
if (existsSync(schemapath)) {
|
|
817
817
|
writeFileSync(join(target, "schema.prisma"), readFileSync(schemapath, "utf8"));
|
|
818
818
|
console.log(`${colors.green}exported${colors.reset} schema.prisma`);
|