build-strap 5.0.2 → 5.0.3
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 +2 -2
- package/src/brew.js +2 -2
- package/src/env.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "build-strap",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "Node scripts for building things",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"authors": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"cross-spawn": "^7.0.3",
|
|
23
23
|
"fs-extra": "^10.0.0",
|
|
24
24
|
"get-port": "^6.0.0",
|
|
25
|
-
"glob": "^
|
|
25
|
+
"glob": "^8.0.1",
|
|
26
26
|
"is-reachable": "^5.1.1",
|
|
27
27
|
"js-yaml": "^4.1.0",
|
|
28
28
|
"lodash-es": "^4.17.21",
|
package/src/brew.js
CHANGED
|
@@ -39,8 +39,8 @@ export const ensureBrewInstalled = async () => {
|
|
|
39
39
|
}
|
|
40
40
|
await spawn('/bin/bash', [
|
|
41
41
|
'-c',
|
|
42
|
-
'$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)',
|
|
43
|
-
], { stdio: 'inherit' });
|
|
42
|
+
'"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',
|
|
43
|
+
], { shell: true, stdio: 'inherit' });
|
|
44
44
|
if (!(await cmdExists('brew'))) {
|
|
45
45
|
if (!(await brewPathExists())) {
|
|
46
46
|
throw new Error('Could not find brew executable, add it to your path manually');
|
package/src/env.js
CHANGED
|
@@ -68,6 +68,10 @@ export const readShellEnvVar = async (name, { refreshEnv = true, envFile = shell
|
|
|
68
68
|
try {
|
|
69
69
|
return (await spawn(shell, ['-c', `${refreshEnv ? `source ${envFile} && ` : ''}printenv ${name}`], {
|
|
70
70
|
captureOutput: true,
|
|
71
|
+
env: {
|
|
72
|
+
...process.env,
|
|
73
|
+
DISABLE_AUTO_UPDATE: 'true',
|
|
74
|
+
},
|
|
71
75
|
})).stdout.trim();
|
|
72
76
|
}
|
|
73
77
|
catch {
|