spine-framework 0.1.30 → 0.1.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spine-framework",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "private": false,
5
5
  "description": "Spine — enterprise application framework built on Supabase + Netlify + React",
6
6
  "type": "module",
@@ -17,7 +17,7 @@
17
17
  set -euo pipefail
18
18
 
19
19
  SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
20
- PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
20
+ PROJECT_ROOT="${PROJECT_ROOT:-$(dirname "$SCRIPT_DIR")}"
21
21
 
22
22
  CORE_SRC_DIR="$PROJECT_ROOT/.framework/src"
23
23
  CUSTOM_SRC_DIR="$PROJECT_ROOT/custom/apps"
@@ -18,7 +18,7 @@
18
18
  set -euo pipefail
19
19
 
20
20
  SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
21
- PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
21
+ PROJECT_ROOT="${PROJECT_ROOT:-$(dirname "$SCRIPT_DIR")}"
22
22
 
23
23
  CORE_DIR="$PROJECT_ROOT/.framework/functions"
24
24
  CUSTOM_DIR="$PROJECT_ROOT/custom"
@@ -19,6 +19,12 @@ set -euo pipefail
19
19
  SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
20
20
  PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
21
21
 
22
+ # Detect if running inside node_modules (consumer project install)
23
+ # If so, output to actual project root (3 levels up from scripts/)
24
+ if [[ "$SCRIPT_DIR" == *"/node_modules/spine-framework/"* ]]; then
25
+ PROJECT_ROOT="$(dirname "$(dirname "$(dirname "$SCRIPT_DIR")")")"
26
+ fi
27
+
22
28
  echo "Assembling Spine..."
23
29
 
24
30
  # Remove stale dist/ so Netlify CLI never reads its _redirects during dev
@@ -26,10 +32,10 @@ rm -rf "$PROJECT_ROOT/dist"
26
32
 
27
33
  # Step 1: Assemble functions
28
34
  echo "Assembling functions..."
29
- bash "$SCRIPT_DIR/assemble-functions.sh"
35
+ PROJECT_ROOT="$PROJECT_ROOT" bash "$SCRIPT_DIR/assemble-functions.sh"
30
36
 
31
37
  # Step 2: Assemble frontend
32
38
  echo "Assembling frontend..."
33
- bash "$SCRIPT_DIR/assemble-frontend.sh"
39
+ PROJECT_ROOT="$PROJECT_ROOT" bash "$SCRIPT_DIR/assemble-frontend.sh"
34
40
 
35
41
  echo "Spine assembly complete"