create-nx-workspace 20.0.0 → 20.0.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nx-workspace",
3
- "version": "20.0.0",
3
+ "version": "20.0.2",
4
4
  "private": false,
5
5
  "description": "Smart Monorepos · Fast CI",
6
6
  "repository": {
@@ -22,7 +22,7 @@ function spawnAndWait(command, args, cwd) {
22
22
  ESLINT_USE_FLAT_CONFIG: process.env.ESLINT_USE_FLAT_CONFIG ?? 'true',
23
23
  },
24
24
  shell: true,
25
- windowsHide: true,
25
+ windowsHide: false,
26
26
  });
27
27
  childProcess.on('exit', (code) => {
28
28
  if (code !== 0) {
@@ -36,7 +36,7 @@ function spawnAndWait(command, args, cwd) {
36
36
  }
37
37
  function execAndWait(command, cwd) {
38
38
  return new Promise((res, rej) => {
39
- (0, child_process_1.exec)(command, { cwd, env: { ...process.env, NX_DAEMON: 'false' }, windowsHide: true }, (error, stdout, stderr) => {
39
+ (0, child_process_1.exec)(command, { cwd, env: { ...process.env, NX_DAEMON: 'false' }, windowsHide: false }, (error, stdout, stderr) => {
40
40
  if (error) {
41
41
  const logFile = (0, path_1.join)(cwd, 'error.log');
42
42
  (0, fs_1.writeFileSync)(logFile, `${stdout}\n${stderr}`);
@@ -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: true })
12
+ return ((0, child_process_1.execSync)('git config --get init.defaultBranch', { windowsHide: false })
13
13
  .toString()
14
14
  .trim() || nxDefaultBase);
15
15
  }
@@ -7,7 +7,7 @@ const default_base_1 = require("./default-base");
7
7
  const output_1 = require("../output");
8
8
  function checkGitVersion() {
9
9
  try {
10
- let gitVersionOutput = (0, child_process_1.execSync)('git --version', { windowsHide: true })
10
+ let gitVersionOutput = (0, child_process_1.execSync)('git --version', { windowsHide: false })
11
11
  .toString()
12
12
  .trim();
13
13
  return gitVersionOutput.match(/[0-9]+\.[0-9]+\.+[0-9]+/)?.[0];
@@ -39,7 +39,7 @@ async function initializeGitRepo(directory, options) {
39
39
  }
40
40
  : {}),
41
41
  },
42
- windowsHide: true,
42
+ windowsHide: false,
43
43
  };
44
44
  return new Promise((resolve, reject) => {
45
45
  (0, child_process_1.spawn)('git', args, spawnOptions).on('close', (code) => {
@@ -121,7 +121,7 @@ function shouldRecordStats() {
121
121
  try {
122
122
  const stdout = (0, node_child_process_1.execSync)(pmc.getRegistryUrl, {
123
123
  encoding: 'utf-8',
124
- windowsHide: true,
124
+ windowsHide: false,
125
125
  });
126
126
  const url = new URL(stdout.trim());
127
127
  // don't record stats when testing locally
@@ -11,7 +11,7 @@ function showNxWarning(workspaceName) {
11
11
  (0, child_process_1.execSync)('nx --version', {
12
12
  cwd: pathToRunNxCommand,
13
13
  stdio: ['ignore', 'ignore', 'ignore'],
14
- windowsHide: true,
14
+ windowsHide: false,
15
15
  });
16
16
  }
17
17
  catch (e) {
@@ -101,7 +101,7 @@ function getPackageManagerVersion(packageManager, cwd = process.cwd()) {
101
101
  const version = (0, child_process_1.execSync)(`${packageManager} --version`, {
102
102
  cwd,
103
103
  encoding: 'utf-8',
104
- windowsHide: true,
104
+ windowsHide: false,
105
105
  }).trim();
106
106
  pmVersionCache.set(packageManager, version);
107
107
  return version;