nx 19.2.0 → 19.2.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/bin/init-local.js CHANGED
@@ -77,9 +77,6 @@ function rewriteTargetsAndProjects(args) {
77
77
  return newArgs;
78
78
  }
79
79
  exports.rewriteTargetsAndProjects = rewriteTargetsAndProjects;
80
- function wrapIntoQuotesIfNeeded(arg) {
81
- return arg.indexOf(':') > -1 ? `"${arg}"` : arg;
82
- }
83
80
  function isKnownCommand(command) {
84
81
  const commands = [
85
82
  ...Object.keys(nx_commands_1.commandsObject
@@ -14,7 +14,6 @@ const workspace_context_1 = require("../src/utils/workspace-context");
14
14
  const logger_1 = require("../src/utils/logger");
15
15
  (async () => {
16
16
  const start = new Date();
17
- let errored = false;
18
17
  try {
19
18
  (0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
20
19
  if (isMainNxPackage() && (0, fileutils_1.fileExists)((0, path_1.join)(workspace_root_1.workspaceRoot, 'nx.json'))) {
@@ -39,13 +38,12 @@ const logger_1 = require("../src/utils/logger");
39
38
  }
40
39
  }
41
40
  catch (e) {
42
- errored = true;
43
41
  logger_1.logger.verbose(e);
44
42
  }
45
43
  finally {
46
44
  const end = new Date();
47
45
  logger_1.logger.verbose(`Nx postinstall steps took ${end.getTime() - start.getTime()}ms`);
48
- process.exit(errored ? 1 : 0);
46
+ process.exit(0);
49
47
  }
50
48
  })();
51
49
  function isMainNxPackage() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "19.2.0",
3
+ "version": "19.2.1",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -70,7 +70,7 @@
70
70
  "yargs-parser": "21.1.1",
71
71
  "node-machine-id": "1.1.12",
72
72
  "ora": "5.3.0",
73
- "@nrwl/tao": "19.2.0"
73
+ "@nrwl/tao": "19.2.1"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "@swc-node/register": "^1.8.0",
@@ -85,16 +85,16 @@
85
85
  }
86
86
  },
87
87
  "optionalDependencies": {
88
- "@nx/nx-darwin-x64": "19.2.0",
89
- "@nx/nx-darwin-arm64": "19.2.0",
90
- "@nx/nx-linux-x64-gnu": "19.2.0",
91
- "@nx/nx-linux-x64-musl": "19.2.0",
92
- "@nx/nx-win32-x64-msvc": "19.2.0",
93
- "@nx/nx-linux-arm64-gnu": "19.2.0",
94
- "@nx/nx-linux-arm64-musl": "19.2.0",
95
- "@nx/nx-linux-arm-gnueabihf": "19.2.0",
96
- "@nx/nx-win32-arm64-msvc": "19.2.0",
97
- "@nx/nx-freebsd-x64": "19.2.0"
88
+ "@nx/nx-darwin-x64": "19.2.1",
89
+ "@nx/nx-darwin-arm64": "19.2.1",
90
+ "@nx/nx-linux-x64-gnu": "19.2.1",
91
+ "@nx/nx-linux-x64-musl": "19.2.1",
92
+ "@nx/nx-win32-x64-msvc": "19.2.1",
93
+ "@nx/nx-linux-arm64-gnu": "19.2.1",
94
+ "@nx/nx-linux-arm64-musl": "19.2.1",
95
+ "@nx/nx-linux-arm-gnueabihf": "19.2.1",
96
+ "@nx/nx-win32-arm64-msvc": "19.2.1",
97
+ "@nx/nx-freebsd-x64": "19.2.1"
98
98
  },
99
99
  "nx-migrations": {
100
100
  "migrations": "./migrations.json",
@@ -98,10 +98,23 @@ function updateGitIgnore(root) {
98
98
  const ignorePath = (0, path_1.join)(root, '.gitignore');
99
99
  try {
100
100
  let contents = (0, fs_1.readFileSync)(ignorePath, 'utf-8');
101
+ const lines = contents.split('\n');
102
+ let sepIncluded = false;
101
103
  if (!contents.includes('.nx/cache')) {
102
- contents = [contents, '', '.nx/cache'].join('\n');
103
- (0, fs_1.writeFileSync)(ignorePath, contents, 'utf-8');
104
+ if (!sepIncluded) {
105
+ lines.push('\n');
106
+ sepIncluded = true;
107
+ }
108
+ lines.push('.nx/cache');
109
+ }
110
+ if (!contents.includes('.nx/workspace-data')) {
111
+ if (!sepIncluded) {
112
+ lines.push('\n');
113
+ sepIncluded = true;
114
+ }
115
+ lines.push('.nx/workspace-data');
104
116
  }
117
+ (0, fs_1.writeFileSync)(ignorePath, lines.join('\n'), 'utf-8');
105
118
  }
106
119
  catch { }
107
120
  }