@schandlergarcia/sf-web-components 1.9.15 → 1.9.16

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": "@schandlergarcia/sf-web-components",
3
- "version": "1.9.15",
3
+ "version": "1.9.16",
4
4
  "description": "Reusable Salesforce web components library with Tailwind CSS v4 and shadcn/ui",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -37,12 +37,22 @@ echo ""
37
37
  echo "→ Removing custom dashboards…"
38
38
 
39
39
  removed=0
40
+
41
+ # Detect if we're in a webapp directory (inside SFDX project structure)
42
+ # If so, also clean up SFDX project root paths
43
+ SFDX_ROOT=""
44
+ if [[ "$ROOT" == */force-app/main/default/webapplications/* ]]; then
45
+ # Extract SFDX project root (go up to the directory containing force-app)
46
+ SFDX_ROOT="$(cd "$ROOT" && cd ../../../../../../.. && pwd)"
47
+ echo " ℹ Detected SFDX project structure"
48
+ fi
49
+
40
50
  # Remove from src/pages/
41
51
  for f in src/pages/*Dashboard*.tsx src/pages/*Dashboard*.jsx; do
42
52
  # Don't remove BlankDashboard
43
53
  if [ -f "$f" ] && [[ "$(basename "$f")" != "BlankDashboard"* ]]; then
44
54
  rm "$f"
45
- echo " ✓ Removed $(basename "$f")"
55
+ echo " ✓ Removed $(basename "$f") from webapp"
46
56
  removed=$((removed + 1))
47
57
  fi
48
58
  done
@@ -52,12 +62,37 @@ if [ -d "src/components/pages" ]; then
52
62
  for f in src/components/pages/*Dashboard*.tsx src/components/pages/*Dashboard*.jsx; do
53
63
  if [ -f "$f" ] && [[ "$(basename "$f")" != "BlankDashboard"* ]]; then
54
64
  rm "$f"
55
- echo " ✓ Removed $(basename "$f")"
65
+ echo " ✓ Removed $(basename "$f") from webapp"
56
66
  removed=$((removed + 1))
57
67
  fi
58
68
  done
59
69
  fi
60
70
 
71
+ # If we're in SFDX structure, also check project root paths
72
+ if [ -n "$SFDX_ROOT" ]; then
73
+ # Remove from SFDX_ROOT/src/pages/
74
+ if [ -d "$SFDX_ROOT/src/pages" ]; then
75
+ for f in "$SFDX_ROOT/src/pages/"*Dashboard*.tsx "$SFDX_ROOT/src/pages/"*Dashboard*.jsx; do
76
+ if [ -f "$f" ] && [[ "$(basename "$f")" != "BlankDashboard"* ]]; then
77
+ rm "$f"
78
+ echo " ✓ Removed $(basename "$f") from SFDX root"
79
+ removed=$((removed + 1))
80
+ fi
81
+ done
82
+ fi
83
+
84
+ # Remove from SFDX_ROOT/src/components/pages/
85
+ if [ -d "$SFDX_ROOT/src/components/pages" ]; then
86
+ for f in "$SFDX_ROOT/src/components/pages/"*Dashboard*.tsx "$SFDX_ROOT/src/components/pages/"*Dashboard*.jsx; do
87
+ if [ -f "$f" ] && [[ "$(basename "$f")" != "BlankDashboard"* ]]; then
88
+ rm "$f"
89
+ echo " ✓ Removed $(basename "$f") from SFDX root"
90
+ removed=$((removed + 1))
91
+ fi
92
+ done
93
+ fi
94
+ fi
95
+
61
96
  if [ "$removed" -eq 0 ]; then
62
97
  echo " (no custom dashboards found)"
63
98
  fi