squeezr-ai 1.16.19 → 1.16.20
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/bin/squeezr.js +2 -2
- package/package.json +1 -1
package/bin/squeezr.js
CHANGED
|
@@ -112,7 +112,7 @@ function printEnvRefreshHint(port, mitmPort) {
|
|
|
112
112
|
* after squeezr start/setup/update (child processes can't modify parent env).
|
|
113
113
|
*/
|
|
114
114
|
function installShellWrapper() {
|
|
115
|
-
if (process.platform === 'win32') return
|
|
115
|
+
if (process.platform === 'win32') return installPowerShellWrapper()
|
|
116
116
|
if (isWSL() || process.platform === 'linux' || process.platform === 'darwin') return installBashWrapper()
|
|
117
117
|
}
|
|
118
118
|
|
|
@@ -169,7 +169,7 @@ ${endMarker}`
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
function
|
|
172
|
+
function installPowerShellWrapper() {
|
|
173
173
|
try {
|
|
174
174
|
const psProfilePath = execSync('powershell -NoProfile -Command "[Environment]::GetFolderPath(\'MyDocuments\') + \'\\WindowsPowerShell\\Microsoft.PowerShell_profile.ps1\'"', { encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] }).trim()
|
|
175
175
|
const psProfileDir = path.dirname(psProfilePath)
|
package/package.json
CHANGED