@schandlergarcia/sf-web-components 1.9.35 → 1.9.36
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
|
@@ -15,7 +15,17 @@
|
|
|
15
15
|
#
|
|
16
16
|
set -euo pipefail
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
# Detect if running from node_modules (installed package) or directly (dev mode)
|
|
19
|
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
20
|
+
|
|
21
|
+
if [[ "$SCRIPT_DIR" == */node_modules/@schandlergarcia/sf-web-components/scripts ]]; then
|
|
22
|
+
# Running from installed package - go up to webapp root
|
|
23
|
+
ROOT="$(cd "$SCRIPT_DIR/../../../.." && pwd)"
|
|
24
|
+
else
|
|
25
|
+
# Running from package source - go up one level to package root
|
|
26
|
+
ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
27
|
+
fi
|
|
28
|
+
|
|
19
29
|
cd "$ROOT"
|
|
20
30
|
|
|
21
31
|
echo ""
|