@prisma-psm/core 1.0.11 → 1.0.12

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/publish.sh +11 -1
  2. package/package.json +1 -1
package/bin/publish.sh CHANGED
@@ -11,7 +11,7 @@ abort() {
11
11
  }
12
12
 
13
13
  check_deps() {
14
- for cmd in jq npm; do
14
+ for cmd in jq npm tsc; do
15
15
  command -v "$cmd" >/dev/null 2>&1 || abort "Dependência não encontrada: $cmd"
16
16
  done
17
17
  }
@@ -41,6 +41,12 @@ update_version() {
41
41
  && mv "$dir/package.json.tmp" "$dir/package.json"
42
42
  }
43
43
 
44
+ build_pkg() {
45
+ local dir="$1"
46
+ echo "🔨 Compilando TypeScript em $dir"
47
+ (cd "$dir" && tsc --build)
48
+ }
49
+
44
50
  publish_pkg() {
45
51
  local dir="$1"
46
52
  echo "🚀 Publicando $dir"
@@ -74,6 +80,10 @@ read -rp "Confirmar publicação? (y/N) " resp
74
80
  update_version "$ROOT_DIR"
75
81
  update_version "$PG_DIR"
76
82
 
83
+ # Compilar antes de publicar
84
+ build_pkg "$ROOT_DIR"
85
+ build_pkg "$PG_DIR"
86
+
77
87
  # Publicar nos dois projetos
78
88
  publish_pkg "$ROOT_DIR"
79
89
  publish_pkg "$PG_DIR"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma-psm/core",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "PSM - Prisma SAFE MIGRATE: ferramenta CLI para migração segura de bancos Prisma com suporte avançado.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {