devicely 2.1.5 → 2.1.6
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/lib/server.js +7 -5
- package/package.json +1 -1
- package/scripts/shell/android_device_control.sh +0 -848
- package/scripts/shell/connect_android_usb_multi_final.sh +0 -289
- package/scripts/shell/connect_android_wireless.sh +0 -58
- package/scripts/shell/connect_android_wireless_multi_final.sh +0 -476
- package/scripts/shell/connect_ios_usb_multi_final.sh +0 -4225
- package/scripts/shell/connect_ios_wireless_multi_final.sh +0 -4167
- package/scripts/shell/create_production_scripts.sh +0 -38
- package/scripts/shell/install_uiautomator2.sh +0 -93
- package/scripts/shell/ios_device_control.sh +0 -220
- package/scripts/shell/organize_project.sh +0 -59
- package/scripts/shell/pre-publish-check.sh +0 -238
- package/scripts/shell/publish-to-npm.sh +0 -366
- package/scripts/shell/publish.sh +0 -100
- package/scripts/shell/setup.sh +0 -121
- package/scripts/shell/start.sh +0 -59
- package/scripts/shell/sync-to-npm-package-final.sh +0 -60
- package/scripts/shell/test-local-package.sh +0 -95
- package/scripts/shell/verify-shell-protection.sh +0 -73
package/lib/server.js
CHANGED
|
@@ -72,14 +72,16 @@ function findConfigFile(filename) {
|
|
|
72
72
|
function findScriptFile(filename) {
|
|
73
73
|
const fs = require('fs');
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
const filenameWithoutExt = filename.replace(/\.sh$/, '');
|
|
76
|
+
|
|
77
|
+
// List of paths to try in order (prioritize compiled binaries)
|
|
76
78
|
const pathsToTry = [
|
|
79
|
+
// NPM package: compiled binary (no .sh extension) - PRODUCTION
|
|
80
|
+
path.join(__dirname, '../scripts/shell/', filenameWithoutExt),
|
|
81
|
+
// NPM package: .sh file (if not compiled)
|
|
82
|
+
path.join(__dirname, '../scripts/shell/', filename),
|
|
77
83
|
// Development location (project root)
|
|
78
84
|
path.join(__dirname, '../../', filename),
|
|
79
|
-
// NPM global install location - from lib/ to scripts/shell/
|
|
80
|
-
path.join(__dirname, '../scripts/shell/', filename),
|
|
81
|
-
// Try without .sh extension (compiled binaries)
|
|
82
|
-
path.join(__dirname, '../scripts/shell/', filename.replace(/\.sh$/, '')),
|
|
83
85
|
// Try in lib directory itself (backup)
|
|
84
86
|
path.join(__dirname, filename),
|
|
85
87
|
];
|