@schandlergarcia/sf-web-components 1.9.81 → 1.9.82

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/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.9.82] - 2026-04-06
9
+
10
+ ### Fixed
11
+ - **Reset script wasn't cleaning Apex classes** — Path detection found a nested `force-app/main/default` directory inside the webapp (created by the demo agent when deploying Apex) instead of the real SFDX project root above it. Fixed by extracting the SFDX path from the webapp's own absolute path instead of searching child directories.
12
+
8
13
  ## [1.9.81] - 2026-04-06
9
14
 
10
15
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schandlergarcia/sf-web-components",
3
- "version": "1.9.81",
3
+ "version": "1.9.82",
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",
@@ -759,21 +759,14 @@ fi
759
759
 
760
760
  SFDX_DEFAULT=""
761
761
 
762
- # Walk up from webapp root to find force-app/main/default
763
- check="$ROOT"
764
- for i in 1 2 3 4 5; do
765
- if [ -d "$check/force-app/main/default" ]; then
766
- SFDX_DEFAULT="$check/force-app/main/default"
767
- break
768
- fi
769
- parent="$(dirname "$check")"
770
- # Check if we're already inside force-app/main/default
771
- if [[ "$check" == */force-app/main/default/* ]]; then
772
- SFDX_DEFAULT="${check%%/force-app/main/default/*}/force-app/main/default"
773
- break
774
- fi
775
- check="$parent"
776
- done
762
+ # The webapp lives inside force-app/main/default/uiBundles/..., so extract
763
+ # the SFDX default directory from our own path first. Only fall back to
764
+ # searching child directories if the pattern doesn't match (standalone app).
765
+ ROOT_ABS="$(cd "$ROOT" && pwd)"
766
+
767
+ if [[ "$ROOT_ABS" == */force-app/main/default/* ]]; then
768
+ SFDX_DEFAULT="${ROOT_ABS%%/force-app/main/default/*}/force-app/main/default"
769
+ fi
777
770
 
778
771
  if [ -n "$SFDX_DEFAULT" ]; then
779
772
  metadata_cleaned=0