@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.
Files changed (2) hide show
  1. package/cli.ts +2 -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(), "Sol", "schema.prisma"),
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(), "Sol", "schema.prisma");
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`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenathlan/getry",
3
- "version": "2.0.158",
3
+ "version": "2.0.159",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/wenathlan/devthink"