@mostajs/orm-cli 0.6.3 → 0.6.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.
Files changed (2) hide show
  1. package/bin/mostajs.sh +4 -1
  2. package/package.json +1 -1
package/bin/mostajs.sh CHANGED
@@ -246,10 +246,13 @@ detect_project() {
246
246
  JSON_SCHEMAS=()
247
247
  PKG_MANAGER=""
248
248
 
249
- # Prisma
249
+ # Prisma (check prisma/ subdir first, then root)
250
250
  if [[ -f "$PROJECT_ROOT/prisma/schema.prisma" ]]; then
251
251
  PRISMA_SCHEMA="$PROJECT_ROOT/prisma/schema.prisma"
252
252
  DETECTED_TYPES+=("prisma")
253
+ elif [[ -f "$PROJECT_ROOT/schema.prisma" ]]; then
254
+ PRISMA_SCHEMA="$PROJECT_ROOT/schema.prisma"
255
+ DETECTED_TYPES+=("prisma")
253
256
  fi
254
257
 
255
258
  # OpenAPI (common names)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mostajs/orm-cli",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Universal CLI to integrate @mostajs/orm into any project — one-shot `mostajs bootstrap` migrates a Prisma project (codemod + deps + schema convert + DDL) to 13 databases with zero code change.",
5
5
  "author": "Dr Hamid MADANI <drmdh@msn.com>",
6
6
  "license": "AGPL-3.0-or-later",