create-nx-workspace 22.6.0 → 22.6.1
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
|
@@ -27,7 +27,7 @@ function spawnAndWait(command, args, cwd) {
|
|
|
27
27
|
ESLINT_USE_FLAT_CONFIG: process.env.ESLINT_USE_FLAT_CONFIG ?? 'true',
|
|
28
28
|
},
|
|
29
29
|
shell: true,
|
|
30
|
-
windowsHide:
|
|
30
|
+
windowsHide: true,
|
|
31
31
|
});
|
|
32
32
|
childProcess.on('exit', (code, signal) => {
|
|
33
33
|
if (code === null)
|
|
@@ -46,7 +46,7 @@ function execAndWait(command, cwd, silenceErrors = false) {
|
|
|
46
46
|
(0, child_process_1.exec)(command, {
|
|
47
47
|
cwd,
|
|
48
48
|
env: { ...process.env, NX_DAEMON: 'false' },
|
|
49
|
-
windowsHide:
|
|
49
|
+
windowsHide: true,
|
|
50
50
|
maxBuffer: 1024 * 1024 * 10, // 10MB — default 1MB can be exceeded by verbose PM output
|
|
51
51
|
}, (error, stdout, stderr) => {
|
|
52
52
|
if (error) {
|
|
@@ -9,7 +9,7 @@ const child_process_1 = require("child_process");
|
|
|
9
9
|
function deduceDefaultBase() {
|
|
10
10
|
const nxDefaultBase = 'main';
|
|
11
11
|
try {
|
|
12
|
-
return ((0, child_process_1.execSync)('git config --get init.defaultBranch', { windowsHide:
|
|
12
|
+
return ((0, child_process_1.execSync)('git config --get init.defaultBranch', { windowsHide: true })
|
|
13
13
|
.toString()
|
|
14
14
|
.trim() || nxDefaultBase);
|
|
15
15
|
}
|
package/src/utils/git/git.js
CHANGED
|
@@ -42,7 +42,7 @@ async function checkGitVersion() {
|
|
|
42
42
|
*/
|
|
43
43
|
function isGitAvailable() {
|
|
44
44
|
try {
|
|
45
|
-
(0, child_process_1.execSync)('git --version', { stdio: 'ignore' });
|
|
45
|
+
(0, child_process_1.execSync)('git --version', { stdio: 'ignore', windowsHide: true });
|
|
46
46
|
return true;
|
|
47
47
|
}
|
|
48
48
|
catch {
|
|
@@ -55,7 +55,7 @@ function isGitAvailable() {
|
|
|
55
55
|
*/
|
|
56
56
|
function isGhCliAvailable() {
|
|
57
57
|
try {
|
|
58
|
-
(0, child_process_1.execSync)('gh --version', { stdio: 'ignore' });
|
|
58
|
+
(0, child_process_1.execSync)('gh --version', { stdio: 'ignore', windowsHide: true });
|
|
59
59
|
return true;
|
|
60
60
|
}
|
|
61
61
|
catch {
|
|
@@ -285,7 +285,7 @@ function shouldRecordStats() {
|
|
|
285
285
|
// Use npm to check registry - this works regardless of which package manager invoked us
|
|
286
286
|
const stdout = (0, node_child_process_1.execSync)('npm config get registry', {
|
|
287
287
|
encoding: 'utf-8',
|
|
288
|
-
windowsHide:
|
|
288
|
+
windowsHide: true,
|
|
289
289
|
});
|
|
290
290
|
const url = new URL(stdout.trim());
|
|
291
291
|
// don't record stats when testing locally
|
|
@@ -217,7 +217,7 @@ function getPackageManagerVersion(packageManager, cwd = process.cwd()) {
|
|
|
217
217
|
const version = (0, node_child_process_1.execSync)(`${packageManager} --version`, {
|
|
218
218
|
cwd,
|
|
219
219
|
encoding: 'utf-8',
|
|
220
|
-
windowsHide:
|
|
220
|
+
windowsHide: true,
|
|
221
221
|
}).trim();
|
|
222
222
|
pmVersionCache.set(packageManager, version);
|
|
223
223
|
return version;
|