@nrwl/workspace 13.6.0 → 13.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/workspace",
3
- "version": "13.6.0",
3
+ "version": "13.6.1",
4
4
  "description": "Smart, Fast and Extensible Build System",
5
5
  "repository": {
6
6
  "type": "git",
@@ -81,10 +81,10 @@
81
81
  "minimatch": "3.0.4",
82
82
  "enquirer": "~2.3.6",
83
83
  "tslib": "^2.3.0",
84
- "@nrwl/cli": "13.6.0",
85
- "@nrwl/devkit": "13.6.0",
86
- "@nrwl/jest": "13.6.0",
87
- "@nrwl/linter": "13.6.0"
84
+ "@nrwl/cli": "13.6.1",
85
+ "@nrwl/devkit": "13.6.1",
86
+ "@nrwl/jest": "13.6.1",
87
+ "@nrwl/linter": "13.6.1"
88
88
  },
89
89
  "nx-migrations": {
90
90
  "migrations": "./migrations.json"
@@ -6,13 +6,25 @@ const devkit_1 = require("@nrwl/devkit");
6
6
  const app_root_1 = require("@nrwl/tao/src/utils/app-root");
7
7
  const node_based_file_hasher_1 = require("./node-based-file-hasher");
8
8
  const fs_1 = require("fs");
9
+ const child_process_1 = require("child_process");
9
10
  function createFileHasher() {
11
+ // special case for unit tests
12
+ if (app_root_1.appRootPath === '/root') {
13
+ return new node_based_file_hasher_1.NodeBasedFileHasher();
14
+ }
10
15
  try {
16
+ // checking the folder first, cause it is faster
11
17
  (0, fs_1.statSync)((0, devkit_1.joinPathFragments)(app_root_1.appRootPath, '.git')).isDirectory();
12
18
  return new git_based_file_hasher_1.GitBasedFileHasher();
13
19
  }
14
20
  catch (err) {
15
- return new node_based_file_hasher_1.NodeBasedFileHasher();
21
+ try {
22
+ (0, child_process_1.execSync)('git rev-parse --is-inside-work-tree', { stdio: 'ignore' });
23
+ return new git_based_file_hasher_1.GitBasedFileHasher();
24
+ }
25
+ catch (_a) {
26
+ return new node_based_file_hasher_1.NodeBasedFileHasher();
27
+ }
16
28
  }
17
29
  }
18
30
  exports.defaultFileHasher = createFileHasher();
@@ -1 +1 @@
1
- {"version":3,"file":"file-hasher.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/core/hasher/file-hasher.ts"],"names":[],"mappings":";;;AAAA,mEAA6D;AAC7D,yCAAiD;AACjD,2DAA2D;AAC3D,qEAA+D;AAE/D,2BAA8B;AAE9B,SAAS,gBAAgB;IACvB,IAAI;QACF,IAAA,aAAQ,EAAC,IAAA,0BAAiB,EAAC,sBAAW,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QAC/D,OAAO,IAAI,0CAAkB,EAAE,CAAC;KACjC;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,IAAI,4CAAmB,EAAE,CAAC;KAClC;AACH,CAAC;AAEY,QAAA,iBAAiB,GAAG,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"file-hasher.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/core/hasher/file-hasher.ts"],"names":[],"mappings":";;;AAAA,mEAA6D;AAC7D,yCAAiD;AACjD,2DAA2D;AAC3D,qEAA+D;AAE/D,2BAA8B;AAC9B,iDAAyC;AAEzC,SAAS,gBAAgB;IACvB,8BAA8B;IAC9B,IAAI,sBAAW,KAAK,OAAO,EAAE;QAC3B,OAAO,IAAI,4CAAmB,EAAE,CAAC;KAClC;IACD,IAAI;QACF,gDAAgD;QAChD,IAAA,aAAQ,EAAC,IAAA,0BAAiB,EAAC,sBAAW,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QAC/D,OAAO,IAAI,0CAAkB,EAAE,CAAC;KACjC;IAAC,OAAO,GAAG,EAAE;QACZ,IAAI;YACF,IAAA,wBAAQ,EAAC,qCAAqC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;YACrE,OAAO,IAAI,0CAAkB,EAAE,CAAC;SACjC;QAAC,WAAM;YACN,OAAO,IAAI,4CAAmB,EAAE,CAAC;SAClC;KACF;AACH,CAAC;AAEY,QAAA,iBAAiB,GAAG,gBAAgB,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.eslintConfigPrettierVersion = exports.eslintVersion = exports.typescriptESLintVersion = exports.tslintVersion = exports.prettierVersion = exports.typescriptVersion = exports.angularCliVersion = exports.nxVersion = void 0;
4
- exports.nxVersion = '13.6.0';
4
+ exports.nxVersion = '13.6.1';
5
5
  exports.angularCliVersion = '~13.1.0';
6
6
  exports.typescriptVersion = '~4.4.3';
7
7
  exports.prettierVersion = '^2.5.1';